A simple package for Partial Least-Sqaures Regression
Project description
plsre Documentation
Installation
pip install plsre
Usage
from plsre import PlsRegression as PR
# Perform Partial Least_Squared Regression training
X = np.array([[0., 0., 1.], [1.,0.,0.], [2.,2.,2.], [2.,5.,4.]])
Y = np.array([[0.1, -0.2], [0.9, 1.1], [6.2, 5.9], [11.9, 12.3]])
P, Q, W, T,B = PR.plsr_train(X,Y)
# Perform Prediction using different optimization
print(PR.plsr_predict(X,Y,P,Q,W,B))
print(PR.plsr_predict_numba(X,Y,P,Q,W,B))
print(PR.plsr_predict_numpy(X,Y,P,Q,W,B))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
plsRe-0.0.2.tar.gz
(2.4 kB
view hashes)
Built Distributions
plsre-0.0.2-py3.6.egg
(4.7 kB
view hashes)
plsRe-0.0.2-py3-none-any.whl
(3.6 kB
view hashes)