Skip to main content

Simple porting of the LEAPS package on python. Not optimized yet.

Project description

PYLEAPS

This package wants to be a simple porting of the regsubset function from R. Unlike leaps in R, the package is not optimized yet, and requires extra work to improve code readability. For now, I have implemented forward/backward/best subset selection for linear regression, building on top of the excellent statsmodels package.

In addition, for now, the user needs to manually code the categorical variable contrasts. This will be fixed in the future.

The package can be easily installed through pip. Check out https://pypi.org/project/pyleaps/ for details

TO INSTALL

pip install pyleaps

The relevant dependencies should automatically get installed, in case they are not present in the environment

COLLABORATION

Any help/collaboration is very welcome. Just let me know what kind of edits you propose and I will be very happy to discuss them.

TO DOs

This section contains a list of future edits:

  1. Improve general code readability
  2. Figure out a way to speed up best subset section. So far, it is way slower than the R counterpart.

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

pyleaps-0.0.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

pyleaps-0.0.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pyleaps-0.0.2.tar.gz.

File metadata

  • Download URL: pyleaps-0.0.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.11

File hashes

Hashes for pyleaps-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fdcdcbe0d95036ac8b0245256b6ba91af0ef8cd5c9c51058530f2100f80fbca1
MD5 37032f6cb56fff88869660982e10b45c
BLAKE2b-256 9b07501461f5a83d25dbc34a4e88ac31e6909f41abce43172ceed89db7164f69

See more details on using hashes here.

File details

Details for the file pyleaps-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyleaps-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.11

File hashes

Hashes for pyleaps-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e40897db2668ade1d68c72e1b4519155eb001780e3a235006767f6c6ae996ae7
MD5 387f426977b8a0cf307bc9792235fa6a
BLAKE2b-256 94b7bdf9764cc974fcb8b898cb430674eb0615f78ea03140db9033eb953e2ea8

See more details on using hashes here.

Supported by

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