Helpers API
lefts.helpers.tabular_model(estimator_class, features, target)
Wraps a sklearn-compatible estimator constructor into a Lefts model factory.
The returned factory can be passed directly to leaf(model_constructor=...).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
estimator_class
|
A callable that constructs a sklearn-compatible estimator (must implement .fit(X, y) and .predict(X)).
Use |
required | |
features
|
list[str]
|
Column names to use as model inputs. |
required |
target
|
str
|
Column name of the target variable. |
required |