tiresia
Installation
pip install tiresia
Description
tiresia is just a wrapper around scikit-learn GridSearchCV. The idea is to simplify the model testing workflow. With tiresia you can choose which models to test and to exclude and provide a param_grid for the ones you want to explore deeper, while keeping the parameters of the less interesting ones on default.
Example
from tiresia.predictor import AutoPredictor
from sklearn.datasets import make_regression, make_classification
from sklearn.model_selection import train_test_split
from sklearn.metrics import roc_auc_score, r2_score
test_type = "regressor"
if test_type == "classifier":
train, target = make_classification(5000, 20)
elif test_type == "regressor":
train, target = make_regression(5000, 20)
x_train, x_test, y_train, y_test = train_test_split(train, target, test_size=0.3)
autopred = AutoPredictor(estimator_type=test_type,
scoring=r2_score,
greater_is_better=True)
autopred.fit(x_train, y_train, x_test, y_test)
predictions = autopred.predictions
results = autopred.results
print(results)
REGRESSOR r2_score
18 LassoCV 1.000
12 HuberRegressor 1.000
23 LinearSVR 1.000
22 LinearRegression 1.000
21 LassoLarsIC 1.000
20 LassoLarsCV 1.000
29 RANSACRegressor 1.000
17 Lasso 1.000
16 LarsCV 1.000
15 Lars 1.000
14 KernelRidge 1.000
28 PassiveAggressiveRegressor 1.000
31 Ridge 1.000
32 RidgeCV 1.000
33 SGDRegressor 1.000
35 TransformedTargetRegressor 1.000
2 BayesianRidge 1.000
24 MLPRegressor 0.998
6 ElasticNetCV 0.992
11 HistGradientBoostingRegressor 0.957
10 GradientBoostingRegressor 0.925
5 ElasticNet 0.881
8 ExtraTreesRegressor 0.853
27 OrthogonalMatchingPursuitCV 0.827
30 RandomForestRegressor 0.824
1 BaggingRegressor 0.794
0 AdaBoostRegressor 0.751
36 TweedieRegressor 0.743
13 KNeighborsRegressor 0.686
3 DecisionTreeRegressor 0.486
26 OrthogonalMatchingPursuit 0.387
7 ExtraTreeRegressor 0.386
34 SVR 0.357
19 LassoLars 0.353
25 NuSVR 0.285
9 GaussianProcessRegressor 0.038
4 DummyRegressor -0.003
Metadata
Release files for tiresia 0.0.11
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 |
|---|---|---|---|---|
| tiresia-0.0.11.tar.gz | 4.7 kB | Without provenance | Details for tiresia-0.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tiresia-0.0.11-py3-none-any.whl | Python 3 | none | any | Details for tiresia-0.0.11-py3-none-any.whl |
Total release size: 10.0 kB
Release files / tiresia-0.0.11.tar.gz
| Download URL | tiresia-0.0.11.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af115596e277a7fbd13a52b127415dafca69435c5beac074f63bf1aff2e83c41
|
|
BLAKE2b-256 checksum How to use checksums |
7d987be29b756f00e70f70e78aef24846a862080a676db69eb7f940ccbd741da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
|
Release files / tiresia-0.0.11-py3-none-any.whl
| Download URL | tiresia-0.0.11-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d3eb48713bbe1226b2d88536c72edae6aa1eb1742c65f4bfde5d3e0d5d8f31b
|
|
BLAKE2b-256 checksum How to use checksums |
566319f716c9a2e5fd7da83fe1a8d1f99a2411bfc67400230434ae6003ec7010
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
|
Security for tiresia 0.0.11
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.