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

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


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

Uploaded Source

Built Distribution

fracridge-1.2.1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fracridge-1.2.1.tar.gz
  • Upload date:
  • Size: 46.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for fracridge-1.2.1.tar.gz
Algorithm Hash digest
SHA256 c1c3b3e67e230639449575c5c6cafa68d816a704a9034a837b891ca1327a45ea
MD5 953a41609a0ae85e58017731992e167d
BLAKE2b-256 3c753ad007da4b1040e19cd2f58192d091574a7961f7165b9c9dbd669ae98dda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fracridge-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.5 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/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for fracridge-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e41d2ab0faa84e68d8ca81fe7690a2b0ca8c9f5bda538b792edd1bfcff64fb9c
MD5 153a20d59167ea8b6fd7725d6fd455a6
BLAKE2b-256 8ec94d232cd3160f59392e3d969cb7e52e4f032a86ee93299ff6efff5d7fc8ff

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