Skip to main content

Ridge regression with fraction regularization

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

"Fractional ridge regression: a fast, interpretable reparameterization of ridge regression", Rokem & Kay (in preparation)

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

Uploaded Source

Built Distribution

fracridge-0.6-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fracridge-0.6.tar.gz
  • Upload date:
  • Size: 30.5 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

Hashes for fracridge-0.6.tar.gz
Algorithm Hash digest
SHA256 0ce75f14b132ca8ea7402f58070a210aad9f4240f4f21071fab3a325a8a9d747
MD5 2304cfa11ebdadd9edfb04e9b3d0d7d0
BLAKE2b-256 30ecc7e8146897787d8db0a3a934925ce964153a9870cd01f0fbaff0c27e6a3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fracridge-0.6-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

Hashes for fracridge-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 9485a0f39e7653c4023e030c6f535ab87f6aaa0c32c79d514177c753e3921f1a
MD5 44b704776523832e6d139ad2d97ea7b3
BLAKE2b-256 3bdb6952e71319d349d851fddf6a4e9a607cd5187e083a51a268e90eb6377e84

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