CrossValidationTargetEncoder class

Definition

Generic cross validation target encoder.

CrossValidationTargetEncoder(target_encoder_cls: typing.Type[azureml.automl.runtime.featurizer.transformer.automltransformer.AutoMLTransformer], logger: typing.Union[logging.Logger, NoneType] = None, task: str = 'classification', num_folds: int = 5, **kwargs: typing.Any) -> None
Inheritance
sklearn.base.BaseEstimator
CrossValidationTargetEncoder

Methods

fit

Instantiate and train on the input data.

transform(X: typing.Union[numpy.ndarray, pandas.core.series.Series, pandas.core.arrays.categorical.Categorical, azureml.dataprep.api.dataflow.Dataflow]) -> numpy.ndarray

Return target encoded data for current input data.

fit

Instantiate and train on the input data.

Parameters

X

The data to transform.

y

Target values.

Returns

The instance object: self.

transform(X: typing.Union[numpy.ndarray, pandas.core.series.Series, pandas.core.arrays.categorical.Categorical, azureml.dataprep.api.dataflow.Dataflow]) -> numpy.ndarray

Return target encoded data for current input data.

transform(X: typing.Union[numpy.ndarray, pandas.core.series.Series, pandas.core.arrays.categorical.Categorical, azureml.dataprep.api.dataflow.Dataflow]) -> numpy.ndarray

Parameters

X

The data to transform.

Returns

Target encoded values from current X column.