Skip to main content

Fractional Ridge Regression

Project description

fracridge

DOI

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

If you use fracridge, please cite our paper: "Fractional ridge regression: a fast, interpretable reparameterization of ridge regression" (2020) GigaScience, Volume 9, Issue 12, December 2020, https://doi.org/10.1093/gigascience/giaa133 link.

For your convenience, here is the bibtex entry


@ARTICLE{fracridge2020,
  title    = "Fractional ridge regression: a fast, interpretable
              reparameterization of ridge regression",
  author   = "Rokem, Ariel and Kay, Kendrick",
  journal  = "Gigascience",
  volume   =  9,
  number   =  12,
  month    =  nov,
  year     =  2020
  }


Project details


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.3.1.tar.gz (47.7 kB view details)

Uploaded Source

Built Distribution

fracridge-1.3.1-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file fracridge-1.3.1.tar.gz.

File metadata

  • Download URL: fracridge-1.3.1.tar.gz
  • Upload date:
  • Size: 47.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

File hashes

Hashes for fracridge-1.3.1.tar.gz
Algorithm Hash digest
SHA256 f7f382732ace0dd8360679512e76bbf4443db311181e21445ca44d3e7d73fb85
MD5 c0c884218aa8c5769f2c6d74f741a506
BLAKE2b-256 573badc7ee3fa4ec6f98bd3dacd5d271680f10550a01499f4a59ea1a36f97010

See more details on using hashes here.

File details

Details for the file fracridge-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: fracridge-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.6

File hashes

Hashes for fracridge-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 816b0dcd9e0bb1fcba39a324da7fe12e9ff1f77da899e021d041fab315159ff5
MD5 948cc54adb40ce5de5e44589273999eb
BLAKE2b-256 2837caa035909df72420fc52b65cd4c76e97c475cf62fa561ebd49525c8b725a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page