lleaves.compiler.ast.nodes module
- class lleaves.compiler.ast.nodes.DecisionNode(idx: int, split_feature: int, threshold: int, decision_type: lleaves.compiler.utils.DecisionType, left_idx: int, right_idx: int)
Bases:
Node
- add_children(left, right)
- cat_threshold: List[int] = None
- decision_type: DecisionType
- finalize_categorical(cat_threshold)
- idx: int
- left_idx: int
- right_idx: int
- split_feature: int
- threshold: int
- validate()
- class lleaves.compiler.ast.nodes.Forest(trees: List[lleaves.compiler.ast.nodes.Tree], features: list, n_classes: int, objective_func: str, objective_func_config: str, raw_score: bool = False, average_output: bool = False)
Bases:
object
- average_output: bool = False
- features: list
- property n_args
- n_classes: int
- objective_func: str
- objective_func_config: str
- raw_score: bool = False