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/arokem/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_
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.3.tar.gz
(92.2 kB
view details)
Built Distribution
File details
Details for the file fracridge-0.3.tar.gz
.
File metadata
- Download URL: fracridge-0.3.tar.gz
- Upload date:
- Size: 92.2 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 | a10c754c2e5d6ff3ce0812830866874eb37a695f13cf7a0740aae8eec7ba4c5c |
|
MD5 | e82f10b2faff17aca227859128499fa1 |
|
BLAKE2b-256 | 43b833d9a38d7fc748568c6f5491ab73a893095d80a90de7d43afe2b740c8ef9 |
File details
Details for the file fracridge-0.3-py3-none-any.whl
.
File metadata
- Download URL: fracridge-0.3-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 | e88c9ae3f8da5b87b1be443aa55dd3e1e403f78fe9793861a304c46bc835d938 |
|
MD5 | 7bf33763d69465c212a2d265fdc6cc01 |
|
BLAKE2b-256 | b1717bed81ccd06e7078ffe62250130e028bc2baa5b4310bfca3975103c23be3 |