Skip to main content

Mathematical Implementation of ML algorithms from scratch

Project description

MathCoreML

Lightweight utilities and example models for small-scale machine learning experiments.

Overview

MathCoreML is a compact Python library designed for learning, teaching, and rapid prototyping of small machine learning workflows.
The project emphasizes clarity, simplicity, and minimal dependencies, making it suitable for educational use and lightweight experiments.

It provides:

  • Simple CSV data exploration utilities
  • Basic data cleaning helpers
  • Minimal reference implementations of classic ML models

Features

📊 Data Utilities

  • CSVStore
    • Easy CSV loading
    • Basic statistics (min, max, mean, counts)
    • Quick summaries and simple visualizations
  • CleanData
    • IQR-based outlier detection
    • Lightweight data-cleaning helpers

🤖 Models

  • Linear Regression
  • Logistic Regression

These implementations are intentionally minimal and readable, aimed at education and experimentation rather than production-scale systems.


Installation

Install from PyPI (once published):

pip install mathcoreml

For local development:

python -m venv .venv
source .venv/bin/activate
pip install -e .

Quick Start

Example usage with CSVStore (provide your own CSV file):

from MathCoreML.utils.CSVStore import CSVStore
from MathCoreML.utils.CleanData import CleanData

store = CSVStore('/absolute/path/to/your_dataset.csv')
print('Rows:', len(store))
print('Max Age:', store.max_of('Age'))

store.quick_summary()

Package Structure

MathCoreML/
├── src/
│   └── mathcoreml/
│       ├── Models/
│       │   ├── linearRegression.py
│       │   └── logisticRegression.py
│       └── utils/
│           ├── csvstore.py
│           ├── cleandata.py
│           └── modelevaluator.py
└── pyproject.toml

Notes

Designed for clarity and learning, not as a replacement for full ML frameworks.

Public API is limited to modules inside MathCoreML.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

mathcoreml-0.1.0.tar.gz (13.2 kB view details)

Uploaded Source

Built Distribution

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

mathcoreml-0.1.0-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mathcoreml-0.1.0.tar.gz
  • Upload date:
  • Size: 13.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for mathcoreml-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c8161201b461e6cbe0c53047c8abccba3499af4ef5badc1851316f10b35d9a39
MD5 72f5f53f996edb2108e42e2fee31fef0
BLAKE2b-256 ec5daf789e5f9d2e301e6b9a0292e29baff7147ba1cdb672f54ae2393700d569

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mathcoreml-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for mathcoreml-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38f3a7608fb9c0b807c0097b3739184bcb5b06349b2d53755f0a9eb80f15eddd
MD5 2a6cc8975024c2e6f986e06e6a42143c
BLAKE2b-256 8b2b964009ad44b6f38937f97348914aea8ecaa72239a068683b658042d53b00

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