A simple baseline machine learning toolkit for tabular datasets.
Project description
DataSage ML
DataSage ML is an open-source Python machine learning toolkit I designed and released to simplify baseline model development for structured datasets. It automates preprocessing, feature encoding, model benchmarking, and model selection, enabling faster experimentation for analysts, learners, and early-stage teams.
pip install datasage-ml
Features
- Load CSV files or pandas DataFrames
- Detect numeric and categorical columns automatically
- Handle missing values
- Encode categorical variables safely
- Train baseline classification models
- Compare model performance
- Select the best model by F1 score
- Generate predictions
- Save the best trained model
Installation for local development
python -m venv .venv
.venv\\Scripts\\activate
pip install -e .\[dev]
For PowerShell, if the extras command gives issues, use:
pip install -e .
pip install pytest build twine
Demo Usage
from datasage\_ml import AutoClassifier
clf = AutoClassifier(target="churn")
clf.fit("data/customer\_churn.csv")
print(clf.leaderboard())
clf.save\_best("best\_model.pkl")
Run the example
python examples\\demo\_classification.py
Run tests
python -m pytest
GitHub push
git init
git add .
git commit -m "Initial commit: add DataSage ML package"
git branch -M main
git remote add origin https://github.com/Jubril-Olasunkanmi/datasage-ml.git
git push -u origin main
Project Structure
datasage-ml/
├── src/
│ └── datasage\_ml/
│ ├── \_\_init\_\_.py
│ └── classifier.py
├── examples/
│ └── demo\_classification.py
├── data/
│ └── customer\_churn.csv
├── tests/
│ └── test\_classifier.py
├── pyproject.toml
├── README.md
├── LICENSE
├── CONTRIBUTING.md
├── requirements.txt
└── .gitignore
Author
Ammar Jubril
Technology Consultant | Data Science | Machine Learning | Financial Engineering
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datasage_ml-0.1.1.tar.gz.
File metadata
- Download URL: datasage_ml-0.1.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05d3892c694748f0e806696eac8901399484fb55242a0690ade3c5b2b8ed000e
|
|
| MD5 |
46570bc55a43d32d5e5642cb069c6130
|
|
| BLAKE2b-256 |
af3ab9d08285333f74d3e227b11892c817bdeb6ebc1c88361ad20c30c8224ab3
|
File details
Details for the file datasage_ml-0.1.1-py3-none-any.whl.
File metadata
- Download URL: datasage_ml-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf1606053238b88b62998bd2e1190083487d1c66aa2146ad690b85746457577f
|
|
| MD5 |
f0fb54831ab2cc16feef539dfdcc9008
|
|
| BLAKE2b-256 |
fe43ed7451eed2b10dd8153c4c25e79bbfbad4083d664ac94c3352483553b4d5
|