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.1.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.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlsimplified-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 be95c4d04d4af985c6bc650e57a6f61f7b7387fcc72878d7ab11d9a5ce273467
MD5 1c75c5c24b9aea4cf1a107d6deef372e
BLAKE2b-256 99bb3d9b639d6ff84cf66f9adbd0ad6904c9f0f11a93f862b62f384c42813849

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mlsimplified-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e70c638352f2e4bee2d7242255d161cb1ba3fb7ee5e3b260e03e1debfb2103da
MD5 7ff538e7bef77a5c35fc6cd8b424ce80
BLAKE2b-256 794f7892f606421022d1495a82d28cdc779e2335ea090a60656eb1af1086754b

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