lale.lib.lale.optimize_last module¶
- class lale.lib.lale.optimize_last.OptimizeLast(*, estimator=None, last_optimizer=None, optimizer_args=None)¶
Bases:
PlannedIndividualOp
OptimizeLast is a wrapper around other optimizers, which runs the given optimizer
This documentation is auto-generated from JSON schemas.
against the suffix, after transforming the data according to the prefix, and then stitches the result together into a single trained pipeline.
Examples
- Parameters
estimator (union type, not for optimizer, default None) –
Planned Lale individual operator or pipeline.
operator
or None
lale.lib.sklearn.LogisticRegression
last_optimizer (union type, not for optimizer, default None) –
Lale optimizer. If (default) None is specified, Hyperopt is used.
operator of None
or None
optimizer_args (union type, optional, not for optimizer, default None) –
Parameters to be passed to the optimizer
dict
or None
- fit(X, y=None, **fit_params)¶
Train the operator.
Note: The fit method is not available until this operator is trainable.
Once this method is available, it will have the following signature:
- Parameters
X (any type) –
y (any type) –
- predict(X, **predict_params)¶
Make predictions.
Note: The predict method is not available until this operator is trained.
Once this method is available, it will have the following signature:
- Parameters
X (any type) –
- Returns
result
- Return type
any type