lleaves.compiler.ast.parser module

class lleaves.compiler.ast.parser.Feature(is_categorical)

Bases: object

Represents one feature (= column) that is passed to the tree function or forest function.

lleaves.compiler.ast.parser.is_categorical_feature(feature_info: str)
Parameters:

feature_info – one entry from the model.txt ‘feature_infos’ field

lleaves.compiler.ast.parser.parse_to_ast(model_path)