Ridge regression with fraction regularization
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
"Fractional ridge regression: a fast, interpretable reparameterization of ridge regression", Rokem & Kay (in preparation)
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-0.6.tar.gz
(30.5 kB
view details)
Built Distribution
File details
Details for the file fracridge-0.6.tar.gz
.
File metadata
- Download URL: fracridge-0.6.tar.gz
- Upload date:
- Size: 30.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ce75f14b132ca8ea7402f58070a210aad9f4240f4f21071fab3a325a8a9d747 |
|
MD5 | 2304cfa11ebdadd9edfb04e9b3d0d7d0 |
|
BLAKE2b-256 | 30ecc7e8146897787d8db0a3a934925ce964153a9870cd01f0fbaff0c27e6a3a |
File details
Details for the file fracridge-0.6-py3-none-any.whl
.
File metadata
- Download URL: fracridge-0.6-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9485a0f39e7653c4023e030c6f535ab87f6aaa0c32c79d514177c753e3921f1a |
|
MD5 | 44b704776523832e6d139ad2d97ea7b3 |
|
BLAKE2b-256 | 3bdb6952e71319d349d851fddf6a4e9a607cd5187e083a51a268e90eb6377e84 |