Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

emdupre/pyls

 
 

pyls

A Python3 implementation of Partial Least Squares Correlation, or PLS.

Status

Build Status codecov

Requirements

Python >=3.5

See requirements.txt for more info on required modules.

Installation

Using git clone and python setup.py install should do the trick.

Usage

Currently both BehavioralPLS and MeanCenteredPLS are implemented. Example usage:

>>> import pyls

>>> rs = np.random.RandomState(123)
>>> X = rs.rand(20, 10000)
>>> Y = rs.rand(20, 10)
>>> opts = dict(n_perm=100, n_boot=50, n_split=50, seed=rs)
>>> bpls = pyls.BehavioralPLS(X, Y, **opts)

>>> groups = [10, 10]
>>> bpls2 = pyls.BehavioralPLS(X, Y, groups=groups, **opts)

# by default, it assumes there is only one condition but we can set more
>>> groups, n_cond = [5, 5], 2
>>> bpls3 = pyls.BehavioralPLS(X, Y, groups=groups, n_cond=n_cond, **opts)

About

A Python3 implementation of PLS

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%