Hello developpers community, I have a trained PLSRegression model using [sklearn library](scikit-learn.org)
I want to know how to implement the command pls_model.predict(x_train)
in case of the PLSRegression parameter scale=True
Please, I need the answer because I want to save pls_model.coef_
in a file and load it in an environment that contains only Java, so I should use an equation to predict manually
manually, I've used this equation :
intercept = (numpy.mean(y_train) - numpy.dot(numpy.mean(x_train),pls_model.coef_))
predicted_values = x_test @ pls_model.coef_ + intercept
But, it works only if the PLSRegression parameter scale=False
I want to know how to implement it in case of scale=True