|View source on GitHub|
Generic model builder.
tfdf.builder.AbstractBuilder( path: str, objective:
tfdf.py_tree.objective.AbstractObjective, model_format: Optional[
Dataspec, possibly partially constructed.
Can be called before
||Objective of the model.|
Finalize the builder work.
This method should be called last.
model_type() -> str
Unique key describing the type of the model.
tfdf.inspector.SimpleColumnSpec, categorical_values: Optional[Union[List[str], List[int]]] = None )
Register a feature and some of its possible value.
Generally, users don't need to call this function. An example of advanced exception is if a model does not refer to a specific possible categorical value, and if this value should be threader differently that the Out-of-vocabulary.
Should be called at least once on each of the model input features.
If called multiple times with
categorical_values the set of possible
values will be the union of the
||Definition of the feature.|
||Set of observed values. Only for categorical-like features.|
Gets the path to the destination yggdrasil model.