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 https://github.com/nrdg/fracridge/tree/master/matlab into your MATLAB path.

Python

To install the release version:

pip install fracridge

Or to install the development version (and stay up-to-date by pulling from GitHub):

pip install -e .

To upgrade to newer release version:

pip install -U fracridge

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

Uploaded Source

Built Distribution

fracridge-2.0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fracridge-2.0.tar.gz
  • Upload date:
  • Size: 49.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for fracridge-2.0.tar.gz
Algorithm Hash digest
SHA256 d49fbffbd58e85da38f572e6ca2ef7563b1a6c8c4e1ab779e2dd207ac944db90
MD5 a1a57c9ba5cf032c098f5a39a1fa0875
BLAKE2b-256 33df90ff50ee327ead8bae4bb4bd3fcc1a9f04f1d33158452527f30875cf978a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fracridge-2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for fracridge-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48ef1687aaf220f6c4835f223dcf32af72706ff0b9539ef1fb8d2278c482a006
MD5 c680c4d0bf66a420cd366741dcfe609c
BLAKE2b-256 10b506fd8c80ae2b8a440f35324508fd482c185eed02afa111840df62c22bc43

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