Skip to main content

A simple baseline machine learning toolkit for tabular datasets.

Project description

DataSage ML

DataSage ML is a simple open-source Python package for building quick baseline machine learning models on tabular datasets.

It is designed for data science beginners, analysts, and machine learning learners who want a clean starting point for classification projects.

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

GitHub: https://github.com/Jubril-Olasunkanmi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasage_ml-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasage_ml-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file datasage_ml-0.1.0.tar.gz.

File metadata

  • Download URL: datasage_ml-0.1.0.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

Hashes for datasage_ml-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9abc2f89a1667ad0bfacc9dba6ea642499b30c07d905661fdf4e48a4726a0034
MD5 bdbb9c7105b12b8288e1e0a0bbd5fc4d
BLAKE2b-256 9026ed0aa92bc547849a9ee2bf50ed94f3504ccc15e645aa2e679a9eb716a3c9

See more details on using hashes here.

File details

Details for the file datasage_ml-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: datasage_ml-0.1.0-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

Hashes for datasage_ml-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83c45d2c627b8c3ee7100405e688e5db2ec085ed63f5cf147c6b32c8e332b3e1
MD5 28890b2426562c62a5d3c8e00d0c555e
BLAKE2b-256 7129445905f020bc76fd2e8602e9cd00bdd7dd4a143c1a184ff0c31ed5de0b6f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page