You are viewing the documentation for metbit 7.2.0. Change release context
metbit.pretreatment
NMR and preprocessing module in metbit 7.2.0.
import metbit.pretreatmentClasses
Scaler
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