New! Use Simple ML for Sheets to apply machine learning to the data in your Google Sheets
Read More
Module: tfdf.py_tree.condition
Stay organized with collections
Save and categorize content based on your preferences.
Conditions / splits for non-leaf nodes.
A condition (e.g. a>0.5) is evaluated to a binary value (e.g. True if a=5).
Condition evaluations control the branching of an example in a tree.
Classes
class AbstractCondition
: Generic condition.
class CategoricalIsInCondition
: Condition of the form "attribute in [...set of items...]".
class CategoricalSetContainsCondition
: Condition of the form "attribute intersect [...set of items...]!=empty".
class IsMissingInCondition
: Condition of the form "attribute is missing".
class IsTrueCondition
: Condition of the form "attribute is true".
class NumericalHigherThanCondition
: Condition of the form "attribute >= threhsold".
class NumericalSparseObliqueCondition
: Condition of the form "attributes * weights >= threshold".
class SimpleColumnSpec
: Simplified representation of a column spec.
Functions
column_spec_bitmap_to_items(...)
: Converts a mask-bitmap into a list of elements.
column_spec_items_to_bitmap(...)
: Converts a list of elements into a mask-bitmap.
core_condition_to_condition(...)
: Converts a condition from the core to python format.
set_core_node(...)
: Sets a core node (proto format) from a python value.
Other Members |
ColumnType
|
Instance of google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[],null,["# Module: tfdf.py_tree.condition\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/decision-forests/blob/main/tensorflow_decision_forests/component/py_tree/condition.py) |\n\nConditions / splits for non-leaf nodes.\n\nA condition (e.g. a\\\u003e0.5) is evaluated to a binary value (e.g. True if a=5).\nCondition evaluations control the branching of an example in a tree.\n\nClasses\n-------\n\n[`class AbstractCondition`](../../tfdf/py_tree/condition/AbstractCondition): Generic condition.\n\n[`class CategoricalIsInCondition`](../../tfdf/py_tree/condition/CategoricalIsInCondition): Condition of the form \"attribute in \\[...set of items...\\]\".\n\n[`class CategoricalSetContainsCondition`](../../tfdf/py_tree/condition/CategoricalSetContainsCondition): Condition of the form \"attribute intersect \\[...set of items...\\]!=empty\".\n\n[`class IsMissingInCondition`](../../tfdf/py_tree/condition/IsMissingInCondition): Condition of the form \"attribute is missing\".\n\n[`class IsTrueCondition`](../../tfdf/py_tree/condition/IsTrueCondition): Condition of the form \"attribute is true\".\n\n[`class NumericalHigherThanCondition`](../../tfdf/py_tree/condition/NumericalHigherThanCondition): Condition of the form \"attribute \\\u003e= threhsold\".\n\n[`class NumericalSparseObliqueCondition`](../../tfdf/py_tree/condition/NumericalSparseObliqueCondition): Condition of the form \"attributes \\* weights \\\u003e= threshold\".\n\n[`class SimpleColumnSpec`](../../tfdf/inspector/SimpleColumnSpec): Simplified representation of a column spec.\n\nFunctions\n---------\n\n[`column_spec_bitmap_to_items(...)`](../../tfdf/py_tree/condition/column_spec_bitmap_to_items): Converts a mask-bitmap into a list of elements.\n\n[`column_spec_items_to_bitmap(...)`](../../tfdf/py_tree/condition/column_spec_items_to_bitmap): Converts a list of elements into a mask-bitmap.\n\n[`core_condition_to_condition(...)`](../../tfdf/py_tree/condition/core_condition_to_condition): Converts a condition from the core to python format.\n\n[`set_core_node(...)`](../../tfdf/py_tree/condition/set_core_node): Sets a core node (proto format) from a python value.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Other Members ------------- ||\n|------------|--------------------------------------------------------------------------|\n| ColumnType | Instance of `google.protobuf.internal.enum_type_wrapper.EnumTypeWrapper` |\n\n\u003cbr /\u003e"]]