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
Metadata
Release files for model-arena 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| model_arena-0.0.4.tar.gz | 4.1 kB | Without provenance | Details for model_arena-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| model_arena-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for model_arena-0.0.4-py3-none-any.whl |
Total release size: 9.5 kB
Release files / model_arena-0.0.4.tar.gz
| Download URL | model_arena-0.0.4.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25fb29944c0d721f29636b12fab0333bf9be204c9ca06ed497267e0a1159669d
|
|
BLAKE2b-256 checksum How to use checksums |
06a63faa304a90f30eebd3e1624af18130570e2eade175b5f0d2aa6af510e220
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / model_arena-0.0.4-py3-none-any.whl
| Download URL | model_arena-0.0.4-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6340d0b0f90932c8f95b967270eae73e212401fb1efce4d60654948239aefc91
|
|
BLAKE2b-256 checksum How to use checksums |
e67c1e83e8c31eaa790d3d6c5abf3064f938c118f5bd96a0c6b43e5ca5491479
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for model-arena 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.