This release is a pre-release and may not be stable for production use.
enhancesa
Enhancesa is a collection of tools for a better and more simplified statistical analysis in Python. It primarily aids in manual analysis and prediction tasks that use packages like Statsmodels and Scikit-learn in their workflow.
For example, Enhancesa provides answers to questions like: Which subset of features gives me the lowest error rate in an ordinary least squares model? What are estimates of population mean and standard deviation using bootstrap resampling? And etc.
Upcoming features
- Partial least squares (PLS) regression
- Principal components regression (PCR)
- Subset selection plots
- Additional test statistics in bootstrap resampling
Motivation
Enhancesa is a result of solutions to exercises in the book Introduction to Statistical Learning by the Tibshirani et al. When going through the exercises, I found Python, unlike R, lacking in providing convenient functionalities. At this stage, this package is simply a collection of functions I used in my solutions to exercises in the book.
Installation
Enhancesa can be installed from the PyPI package repository.
$ pip install enhancesa
Quick glimpse
>>> import numpy as np
>>> import enhancesa as esa
>>> # Create some dummy data
>>> x = np.random.normal(size=100)
>>> # Compute test statistics with bootstrap resampling
>>> esa.bootstrap(x, iters=1000)
Estimated mean: -0.025309
Estimated SE: 0.095531
dtype: float64
Find out more about the full set of features in the documentation.
Issues & improvements
- Possible to further reduce dependencies.
boostrapmethod can be improved by adding estimates of more test statistics of interest.- Use Poetry for package and dependency management, which uses
pyproject.tomlrecommended by PEP 518. enhancesa.SubsetSelectwill giveNotImplementederror ifXinput is a Numpy array.
License
This package is licensed under an MIT license.
Release files for enhancesa 0.1a0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| enhancesa-0.1a0.tar.gz | 29.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| enhancesa-0.1a0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 44.0 kB
Release files / enhancesa-0.1a0.tar.gz
| Download URL | enhancesa-0.1a0.tar.gz |
|---|---|
| Size | 29.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53343414a59ad8372479019e8c7ac7bdd5b9133b7a4da509b92be0ecb2f83285
|
|
BLAKE2b-256 checksum How to use checksums |
9702b7d01220021a5363ff3c661814d3477994aa89402f293920a383622d7e96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Release files / enhancesa-0.1a0-py3-none-any.whl
| Download URL | enhancesa-0.1a0-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9dd7fd205b6b56a2d710dba2477be02355ae32d184c6d79361aaeeae49b70175
|
|
BLAKE2b-256 checksum How to use checksums |
a074d0a4a45b4fb6c7e2316caf3bd90bbbf7e17a26b7981c7fce052a1656bc6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|