module sklapi.sklearn_base_transform#

Inheritance diagram of mlinsights.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.

source on GitHub

Classes#

class

truncated documentation

SkBaseTransform

Pattern of a learner which follows the same API que scikit-learn.

Methods#

method

truncated documentation

__init__

Stores the parameters.

fit

Trains a model.

fit_transform

Trains and transforms the data.

transform

Transforms the data.

Documentation#

Implements a transform which follows the smae API as every scikit-learn transform.

source on GitHub

class mlinsights.sklapi.sklearn_base_transform.SkBaseTransform(**kwargs)#

Bases: SkBase

Pattern of a learner which follows the same API que scikit-learn.

source on GitHub

Stores the parameters.

source on GitHub

__init__(**kwargs)#

Stores the parameters.

source on GitHub

fit(X, y=None, **kwargs)#

Trains a model.

Parameters:
  • X – features

  • y – targets

Returns:

self

source on GitHub

fit_transform(X, y=None, **kwargs)#

Trains and transforms the data.

Parameters:
  • X – features

  • y – targets

Returns:

self

source on GitHub

transform(X)#

Transforms the data.

Parameters:

X – features

Returns:

predictions

source on GitHub