Introduction to Baseline Optimal
Between the raw data and the optimal results in machine learning projects, there is an exhausting, iterative process. We go back and forth to experiment with various combinations of feature engineering, processing methods, and models along with their hyperparameters. At the end of the day, we hope our efforts pay off.
🤞 God bless data scientists. 🤞
Manual experimentation is a good practice. However, you may have found that we often produce messy, repetitive code throughout the process, and it takes a long while for us to figure out that an attempt doesn't work out. Sometimes we may overcomplicate data transformation and processing to get promising but unncessary metric scores.
Given these problems, the baseline_optimal package automates the workflow by employing Optuna's Bayesian optimization, significantly reducing the need for manual experimentation. You provide the raw data, and the modules do the heavy lifting.
Installation
You can install the baseline_optimal package and its dependencies using pip:
pip install baseline_optimal
After installation, you can import the package in Python:
import baseline_optimal
Documentation
Access the the entire documentation through GitHub Pages.
Check out baseline_optimal modules available and their respective documentation as well as example.
Check out machine learning algorithms supported and hyperparameters considered.
| Algorithm | Source | Hyperparameters |
|---|---|---|
DecisionTreeClassifier |
sklearn.tree |
max_featuresmax_depthmin_samples_split |
RandomForestClassifier |
sklearn.ensemble |
n_estimatorsmax_featuresmax_depthmin_samples_split |
AdaBoostClassifier |
sklearn.ensemble |
n_estimatorslearning_rate |
XGBClassifier |
xgboost |
n_estimatorslearning_ratemax_depth |
Why "Baseline" Optimal
The current version supports feature selection, missing value imputation, scaling and encoding as data transformation and processing steps. The pipeline performance is evaluated based on choices of these components along with multiple machine learning algorithms. With help of Optuna, the package gives you the optimal workflow provided the raw data.
The results are "baseline" optimal because the workflow attempts only the most basic methods. No feature engineering or dimensionality reduction, so on and so forth. It aims to answer the lazy question that, "If I do nothing, how far can I get?" By using this package, if you get satisfting results then congradulations! If not, then you know where the baseline is and you might want to do better than that based on your domain knowledge.
🤞 Good luck. 🤞
Metadata
Release files for baseline-optimal 0.0.7
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 | |
|---|---|---|---|---|
| baseline_optimal-0.0.7.tar.gz | 8.1 kB | Without provenance | Details |
Release files / baseline_optimal-0.0.7.tar.gz
| Download URL | baseline_optimal-0.0.7.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
047bb823b77551e162c0076a8e3681e8bdb621648e5584dfec6186d65c792cc0
|
|
BLAKE2b-256 checksum How to use checksums |
5870026a5d69115b77603f06cb6d3e711f4f8bd3fc92099565a691a17517535b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for baseline-optimal 0.0.7
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.