Skip to main content

Minimalist ML toolkit wrapping sklearn for quick prototyping. Just `import rms` and go.

Project description

RegressionMadeSimple (RMS)

PyPI Downloads License Python Version

A minimalist machine learning wrapper for lazy/skilled devs who want to skip the boilerplate. Built as a clean backdoor to scikit-learn.


🚀 Quickstart

import regressionmadesimple as rms

# Load dataset
df = rms.Preworks.readcsv("./your_data.csv")

# Train a linear regression model
model = rms.Linear(dataset=df, colX="feature", colY="target")

# Predict new values
predicted = model.predict([[5.2], [3.3]])

# Plot prediction vs. test
model.plot_predict([[5.2], [3.3]], predicted).show()

📦 Features

  • 🧠 Wraps sklearn's most-used regression model(s) in a friendly API
  • 📊 Built-in Plotly visualizations -- planned later support for matplotlib (? on this)
  • 🔬 Designed for quick prototyping and educational use
  • 🧰 Utility functions via preworks:
    • readcsv(path) — load CSV
    • create_random_dataset(...) — create random datasets (for demos)
  • One-liner regression setup
  • .summary() and .plot() for quick insight
  • Global config system: rms.options
  • Accepts pre-split data (X_train, y_train, etc.)
  • Easily extendable — logistic, trees, etc. coming soon
  • MIT Licensed

Project LINK

https://unknownuserfrommars.github.io/regressionmadesimple/

PS: Changelog also can be accessed from there


✅ Installation

pip install regressionmadesimple

Or install the dev version:

git clone https://github.com/Unknownuserfrommars/regressionmadesimple.git
cd regressionmadesimple
pip install -e .

📁 Project Structure

regressionmadesimple/
├── __init__.py
├── base_class.py
├── linear.py
├── logistic.py        # (soon)
├── tree.py            # (soon)
├── utils_preworks.py

🧪 Tests

Coming soon under a /tests folder using pytest


📜 License

MIT License


🛠 Author

Made with ❤️ by Unknownuserfrommars :)


🌌 Ideas for Future Versions

  • Logistic() and DecisionTree() models
  • .summary() for all models
  • Export/save models
  • Visual explainability (feature importance, SHAP)

⭐ Star this project if you like lazy ML.

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

regressionmadesimple-1.4.0.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

regressionmadesimple-1.4.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file regressionmadesimple-1.4.0.tar.gz.

File metadata

  • Download URL: regressionmadesimple-1.4.0.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for regressionmadesimple-1.4.0.tar.gz
Algorithm Hash digest
SHA256 2e3e69ccefef395707306d9b6345f7d7a617d3a313977ee2f0df540c6736d390
MD5 a1460a8e66792eaa219c05bb36b294f3
BLAKE2b-256 e2baa860b5f7a821403a1fc653f9fb1405bc8b6315ea930368dfe4d081eaadde

See more details on using hashes here.

File details

Details for the file regressionmadesimple-1.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for regressionmadesimple-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b475b3b6cb160d3f65de5cdda73bdbea99c56ac6c16ba516ec3fb0ea15355a48
MD5 b985f40c9793ea8ece27dc502efd889a
BLAKE2b-256 9d6fbe24ff52a2b7f4441263497c8371cadbbb7beef2933181846a49824f282f

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