Skip to main content

A production-ready machine learning library for quick model training and prediction

Project description

MLSimplified

A production-ready machine learning library that makes training and using ML models as easy as writing a sentence.

Installation

pip install mlsimplified

Quick Start

from mlsimplified import Model

# Create and train a model in one line
model = Model("data.csv", target="label")
model.train().evaluate().predict("test.csv").export("model.pkl")

Features

  • Automatic problem type detection (classification/regression)
  • Smart data preprocessing and cleaning
  • Built-in model selection
  • One-line training and prediction
  • Automatic evaluation and reporting
  • Built-in visualization
  • Production-ready error handling
  • Efficient memory management

Usage

Basic Usage

from mlsimplified import Model

# Initialize with your data
model = Model("your_data.csv", target="target_column")

# Train the model
model.train()

# Make predictions
predictions = model.predict("new_data.csv")

# Export the model
model.export("model.pkl")

Advanced Usage

from mlsimplified import Model

# Initialize with custom parameters
model = Model("data.csv", target="label")

# Train with custom test size
model.train(test_size=0.3)

# Get model insights
model.summary()  # View model information
model.plot()     # Visualize feature importance
model.report()   # Generate evaluation report

# Chain operations
model.train().evaluate().predict("test.csv").export("model.pkl")

API Reference

Model Class

Initialization

Model(data: Union[str, pd.DataFrame], target: str)

Methods

  • train(test_size: float = 0.2, random_state: int = 42) -> Model
  • evaluate() -> Model
  • predict(data: Union[str, pd.DataFrame]) -> np.ndarray
  • export(path: str) -> Model
  • summary() -> Model
  • plot() -> Model
  • report() -> Model

Dependencies

  • pandas>=1.3.0
  • numpy>=1.21.0
  • scikit-learn>=1.0.0
  • matplotlib>=3.4.0
  • seaborn>=0.11.0
  • joblib>=1.0.0
  • setuptools>=65.5.1

License

MIT

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

mlsimplified-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

mlsimplified-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlsimplified-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for mlsimplified-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7af1477033c2d3a94e2bdcfed2456e8996ba956aa4e951e2f181f66cea94a729
MD5 014d6bdc2fe935a75ca98fde0061e4ec
BLAKE2b-256 e74dc436c4bc78f8cb911241356d8a32e3806489ec047fcecd5bd56d3d977f4c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mlsimplified-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for mlsimplified-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5789ba8f7759a74dd743df999466e832e4828dc34b3392a56fb8105e693c091
MD5 c7665b61a7d6c7912f71fc32de6af8b4
BLAKE2b-256 e123478bac1e58bb598def0478c49041f13ba41d74c5ce6b5f18e55c85f8def3

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