New! Use Simple ML for Sheets to apply machine learning to the data in your Google Sheets
Read More
tfdf.py_tree.condition.AbstractCondition
Stay organized with collections
Save and categorize content based on your preferences.
Generic condition.
tfdf.py_tree.condition.AbstractCondition(
missing_evaluation: Optional[bool], split_score: Optional[float] = None
)
Attributes |
missing_evaluation
|
Result of the evaluation of the condition if the feature
is missing. If None, a feature cannot be missing or a specific method run
during inference to handle missing values.
|
split_score
|
|
Methods
features
View source
@abc.abstractmethod
features() -> List[tfdf.inspector.SimpleColumnSpec
]
List of features used to evaluate the condition.
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.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tfdf.py_tree.condition.AbstractCondition\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#L34-L67) |\n\nGeneric condition.\n\n#### View aliases\n\n\n**Main aliases**\n\n[`tfdf.py_tree.node.AbstractCondition`](https://www.tensorflow.org/decision_forests/api_docs/python/tfdf/py_tree/condition/AbstractCondition)\n\n\u003cbr /\u003e\n\n tfdf.py_tree.condition.AbstractCondition(\n missing_evaluation: Optional[bool], split_score: Optional[float] = None\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `missing_evaluation` | Result of the evaluation of the condition if the feature is missing. If None, a feature cannot be missing or a specific method run during inference to handle missing values. |\n| `split_score` | \u003cbr /\u003e \u003cbr /\u003e |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `features`\n\n[View source](https://github.com/tensorflow/decision-forests/blob/main/tensorflow_decision_forests/component/py_tree/condition.py#L58-L62) \n\n @abc.abstractmethod\n features() -\u003e List[../../../tfdf/inspector/SimpleColumnSpec]\n\nList of features used to evaluate the condition."]]