def standardize(self): """ Standardize Kriging samples and create regression matrix. Returns: None """ Kriging.standardize(self)
def standardize(self): """ Standardize Kriging samples and create regression matrix. Returns: None """ Kriging.standardize(self) # Calculate PLS coeff _pls = pls(self.n_princomp) if self.standardization is True: coeff_pls = _pls.fit(self.KrigInfo["X_norm"].copy(), self.KrigInfo['y'].copy()).x_rotations_ else: coeff_pls = _pls.fit(self.KrigInfo["X"].copy(), self.KrigInfo['y'].copy()).x_rotations_ self.KrigInfo["plscoeff"] = coeff_pls