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
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
Built Distribution
File details
Details for the file fracridge-1.1.tar.gz
.
File metadata
- Download URL: fracridge-1.1.tar.gz
- Upload date:
- Size: 32.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd043b9a89fd4c68cab6bbf1d73e7faba30997c16ac917dddb5b7d9c470f52c7 |
|
MD5 | 1f15888096dac99e94e767fc3f7282af |
|
BLAKE2b-256 | 206c575ddd254bd1cb445a2e56b0003dcd3b57c08254292d689396a11988df49 |
File details
Details for the file fracridge-1.1-py3-none-any.whl
.
File metadata
- Download URL: fracridge-1.1-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17761669ac7c1031e013768fd28a1a8585e4452c198c9ac05ddfc15cf23d4a60 |
|
MD5 | 1ac86bfae68980766b4282328627665a |
|
BLAKE2b-256 | a21e35f5d6bdb0af67497afbe54296bfe796d6a3b4af7ea694d03f7b8d6061b5 |