Skip to main content

reggy

PyPI Tests

Python package for regularized regressions.

Supported regularization terms:

Installation

$ pip install reggy

Usage

A simple example with LASSO regularization:

import reggy
import numpy as np


alpha = 0.3
beta = 1.7

X = np.random.normal(size=(100, 1))
y = np.random.normal(X * beta + alpha, size=(100, 1))

model = reggy.RegReg(X, y, family=reggy.gaussian_family, regularizers=[(0.5, reggy.lasso)])
model.fit()

print(model.intercept_, model.coef_)
## [[0.22491232]] [[0.9219889]]

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reggy-0.2.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reggy-0.2.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file reggy-0.2.0.tar.gz.

File metadata

  • Download URL: reggy-0.2.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for reggy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b3cd74704dc33f426d5473989c11b1c1b13973ec6e7e8bfbfbd00bbfd2df8cc2
MD5 0b67f2af911eef60db28e616391503f0
BLAKE2b-256 268f5ad02d44f198098539d4256c555857f3edce10067e91536e3abe07609bdb

See more details on using hashes here.

File details

Details for the file reggy-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: reggy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for reggy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 781574b03667c0f46baf5ec29a4a31aecca2b4ae99e67ab5ac7083349cdee320
MD5 6c45cc9e3d78c547ad457be1ec89d96b
BLAKE2b-256 bd71b15e29621895f5cb10fefc435845b1237e7e5aec6c7ada42ff189b2306ec

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page