Skip to main content

A model extension package

Project description

Models Package

1- Ridge Regression: Extends SKLearns Ridge regression by adding p-values, featureSelection and alpha optimisation.

Example Usage:

Import

from model_arena.Regression import RidgeRegression

Create a RidgeRegression object

rm = RidgeRegression()

Run the feature selection method as above to limit to the most important variables.

Stores the order of variables to the object

rm.featureSelection(X,y)

Find the value of alpha minimising MSE for these features

rm.findBestAlpha(X[rm.bestMeanCVModel],y)

Print the alpha

print('Alpha = {}'.format(rm.alpha))

Fit the model with the best features and the alpha

rm.fit(X[rm.bestMeanCVModel],y)

Display a summary including p-values

rm.summary(X[rm.bestMeanCVModel],y)

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

model_arena-0.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

model_arena-0.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file model_arena-0.0.1.tar.gz.

File metadata

  • Download URL: model_arena-0.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

File hashes

Hashes for model_arena-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f9be489dda29c0db71c85c6dadc724d98ad1d231777efc6ca3b70699fca8ab87
MD5 5b4221a3a59a0cc5dc32c95446337161
BLAKE2b-256 7cc2ce22b35884f39636db4c56d9fd216cbf2a29e5e25fea682985b937bb6396

See more details on using hashes here.

File details

Details for the file model_arena-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: model_arena-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4

File hashes

Hashes for model_arena-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 601757fdeb52e6857ee2ed9ebf4760095eed79fdb81635260f71cdbbf913905c
MD5 f0d6a5fa79d2a45dbf9ec28ce0ba0d0a
BLAKE2b-256 bfefee51c833a82737f82d682423c4750a22958284335301285d88ee94413643

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