Residual Partial Least Squares Learning
Project description
rePLS
Examples
from rePLS import rePLS, rePCR, reMLR
import numpy as np
n_samples, n_features, n_outcomes, n_confounders = 100, 10,5,2
n_components = 2
rng = np.random.RandomState(0)
Y = rng.randn(n_samples,n_outcomes)
X = rng.randn(n_samples, n_features)
Z = rng.randn(n_samples, n_confounders)
reg = rePLS(Z=Z,n_components=n_components)
reg.fit(X,Y)
Y_pred = reg.predict(X,Z)
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
repls-0.0.5.tar.gz
(7.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
rePLS-0.0.5-py3-none-any.whl
(3.9 kB
view details)
File details
Details for the file repls-0.0.5.tar.gz.
File metadata
- Download URL: repls-0.0.5.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3ef9e13e47437e2a69bc5843b8fa8be710e10ec2618f5b2628bbbcf4a810e51
|
|
| MD5 |
10f6c219360b33fe430da05dfe6d4803
|
|
| BLAKE2b-256 |
df97f8f1778b9b0932b54bd0b2a73e1984fe235c00e65a6209ce37453bcc20e4
|
File details
Details for the file rePLS-0.0.5-py3-none-any.whl.
File metadata
- Download URL: rePLS-0.0.5-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45a213c1d49e9346dee96a109ea61388af60964c3f079184e786ea53668b5127
|
|
| MD5 |
fe7ed23b2c883d716ff44a07ee598d82
|
|
| BLAKE2b-256 |
8d299f98e0c28592d68247110a25e0caa3cf0947fd838d169017184e707f2e5c
|