Fractional Ridge Regression
Project description
fracridge
Is an implementation of fractional ridge regression (FRR).
Installation:
MATLAB
Download and copy the files from the [https://github.com/nrdg/fracridge/tree/master/matlab](MATLAB directory) into your MATLAB path.
Python
To install the release version:
pip install fracridge
Or to install the development version:
pip install -r requirements.txt
pip install .
Usage
MATLAB
[coef,alphas] = fracridge(X,fracs,y,tol,mode)
Python
There's a functional API:
from fracridge import fracridge
coefs, alphas = fracridge(X, y, fracs)
Or a sklearn-compatible OO API:
from fracridge import FracRidge
fr = FracRridge(fracs=fracs)
fr.fit(X, y)
coefs = fr.coef_
alphas = fr.alpha_
Online documentation
https://nrdg.github.io/fracridge/
How to cite
Please cite our preprint: "Fractional ridge regression: a fast, interpretable reparameterization of ridge regression" (2020), Rokem & Kay, https://arxiv.org/abs/2005.03220
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
fracridge-1.2.1.tar.gz
(46.7 kB
view hashes)
Built Distribution
fracridge-1.2.1-py3-none-any.whl
(12.5 kB
view hashes)
Close
Hashes for fracridge-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e41d2ab0faa84e68d8ca81fe7690a2b0ca8c9f5bda538b792edd1bfcff64fb9c |
|
MD5 | 153a20d59167ea8b6fd7725d6fd455a6 |
|
BLAKE2b-256 | 8ec94d232cd3160f59392e3d969cb7e52e4f032a86ee93299ff6efff5d7fc8ff |