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

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

Uploaded Source

Built Distribution

fracridge-1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fracridge-1.0.tar.gz
  • Upload date:
  • Size: 30.7 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-1.0.tar.gz
Algorithm Hash digest
SHA256 aacb97af3332fb2a3bbd5ebbb0aebbe634ad0559e8d5f927273453c325cebde2
MD5 2d16f84cc8b41dfb666ec8973fb6c3b7
BLAKE2b-256 9771322bbbb4df2537c0165b50f90e30b04cc5ebf80bead234e39ebc2d314b19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fracridge-1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ceb0f41464ed9e56c1ea79fa6ab8b8cb4ea78d3c28f61d830f3706aca1a81c8
MD5 f826787d62b4b3a0bc1c559d4bffdb16
BLAKE2b-256 ea0e50a394f4ce9fd42062a52737a90be64c9061f87f80d00efc68c6f6992e38

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