View source on GitHub |
Objective for classification.
Inherits From: AbstractObjective
tfdf.py_tree.objective.ClassificationObjective(
label: str,
classes: Optional[List[str]] = None,
num_classes: Optional[int] = None
)
Used in the notebooks
Used in the tutorials |
---|
Args | |
---|---|
label
|
Objective label name. |
classes
|
List of possible class values. |
num_classes
|
Number of classes. |
Attributes | |
---|---|
classes
|
|
has_integer_labels
|
|
label
|
|
num_classes
|
|
task
|
Task value. |
Methods
__eq__
__eq__(
other
)
Return self==value.