lale.lib.lale.optimize_suffix module

class lale.lib.lale.optimize_suffix.OptimizeSuffix(*, prefix=None, suffix=None, optimizer=None, optimizer_args=None)

Bases: PlannedIndividualOp

OptimizeSuffix 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
  • prefix (union type, not for optimizer, default None) –

    Trained Lale operator or pipeline, by default None.

    • operator of None

    • or None

  • suffix (union type, not for optimizer, default None) –

    Lale operator or pipeline, which is to be optimized. If (default) None is specified, LogisticRegression is used.

    • operator of None

    • or None

  • 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