module sklapi.sklearn_base_transform
#
Short summary#
module mlinsights.sklapi.sklearn_base_transform
Implements a transform which follows the smae API as every scikit-learn transform.
Classes#
class |
truncated documentation |
---|---|
Pattern of a learner which follows the same API que scikit-learn. |
Methods#
method |
truncated documentation |
---|---|
Stores the parameters. |
|
Trains a model. |
|
Trains and transforms the data. |
|
Transforms the data. |
Documentation#
Implements a transform which follows the smae API as every scikit-learn transform.
- class mlinsights.sklapi.sklearn_base_transform.SkBaseTransform(**kwargs)#
Bases:
SkBase
Pattern of a learner which follows the same API que scikit-learn.
Stores the parameters.
- __init__(**kwargs)#
Stores the parameters.
- fit(X, y=None, **kwargs)#
Trains a model.
- Parameters:
X – features
y – targets
- Returns:
self
- fit_transform(X, y=None, **kwargs)#
Trains and transforms the data.
- Parameters:
X – features
y – targets
- Returns:
self
- transform(X)#
Transforms the data.
- Parameters:
X – features
- Returns:
predictions