Skip to main content

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


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)

Uploaded Source

Built Distributions

plsre-0.0.2-py3.6.egg (4.7 kB view hashes)

Uploaded Source

plsRe-0.0.2-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page