class sklearn.cross_decomposition.PLSRegression(n_components=2, scale=True, max_iter=500, tol=1e-06, copy=True) [source]
PLS regression PLSRegression implements the PLS 2 blocks regression known as PLS2 or PLS1 in case of one dimensional response. This class inherits from _PLS with mode=?A?, deflation_mode=?regression?, norm_y_weights=False and algorithm=?nipals?. Read more in the User Guide. Parameters:
n_components : int, (default 2) Number of components to keep. scale : boolean, (defa