DoNothing

class mastml.legos.util_legos.DoNothing[source]

Bases: sklearn.base.BaseEstimator, sklearn.base.TransformerMixin

Class for having a “null” transform where the output is the same as the input. Needed by MAST-ML as a placeholder if certain workflow aspects are not performed.

Args:

None

Methods:

fit: does nothing, just returns object instance. Needed to maintain same structure as scikit-learn classes

Args:

X: (numpy array), array of X features

transform: passes the input back out, in this case the array of X features

Args:

X: (numpy array), array of X features

Returns:

X: (numpy array), array of X features

Methods Summary

fit(X[, y])
transform(X)

Methods Documentation

fit(X, y=None)[source]
transform(X)[source]