You are viewing the documentation for metbit 1.2.5. Change release context
metbit.pretreatment
Preprocess data matrix.
import metbit.pretreatmentClasses
Scaler
A scaler to scale data matrix
Methods
__init__(self, scaler: str='pareto')
fit(self, x: np.ndarray)
Fit scaler model. :param x: variable matrix for scaling and parameter setup :return: Scaler object and scaled X
scale(self, x: np.ndarray)
Scale the x based on the parameters obtained in fit :param x: variable matrix with size n samples by p variables :return: scaled x