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)
To Update PYPI
1- Clone from github
2- Make Changes
3- Update version number in setup.py
4- CD into the setup.py directory
5- Run the following in the CMD: python3 -m pip install --user --upgrade setuptools wheel python3 setup.py sdist bdist_wheel or python -m pip install --user --upgrade setuptools wheel python setup.py sdist bdist_wheel
6- Then the following in the CMD: python3 -m pip install --user --upgrade twine python3 -m twine upload dist/* or python -m pip install --user --upgrade twine python -m twine upload dist/*
7- Test by pip install and importing
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
Built Distribution
File details
Details for the file model_arena-0.0.3.tar.gz
.
File metadata
- Download URL: model_arena-0.0.3.tar.gz
- Upload date:
- Size: 4.1 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93492dc9079350820c66831a5f1fdd25cba70aad977363b41f04ef0244d7531b |
|
MD5 | 8113a30e774b22be0d3b0c200cf57930 |
|
BLAKE2b-256 | aec0110b9761cbb22a75aeebeb99f07785d6d87dd4b8cb9afe2f839353c783d1 |
File details
Details for the file model_arena-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: model_arena-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d02d08919cae8ade3297e52fe1e44134c1181fe40e7b57b7926f4cc454295111 |
|
MD5 | 81eefa774f91a1847c32070da832a8d4 |
|
BLAKE2b-256 | cd861ab1f415dd8b0191ab9a0e5f0cb25c2c88aaf14e706189bba209e8db86d2 |