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)[source]

Bases: mlinsights.sklapi.sklearn_base.SkBase

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

source on GitHub

Stores the parameters.

source on GitHub

__init__(**kwargs)[source]

Stores the parameters.

source on GitHub

fit(X, y=None, **kwargs)[source]

Trains a model.

Parameters
  • X – features

  • y – targets

Returns

self

source on GitHub

fit_transform(X, y=None, **kwargs)[source]

Trains and transforms the data.

Parameters
  • X – features

  • y – targets

Returns

self

source on GitHub

transform(X)[source]

Transforms the data.

Parameters

X – features

Returns

predictions

source on GitHub