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) -> Modelevaluate() -> Modelpredict(data: Union[str, pd.DataFrame]) -> np.ndarrayexport(path: str) -> Modelsummary() -> Modelplot() -> Modelreport() -> 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mlsimplified-1.0.0.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlsimplified-1.0.0.tar.gz.
File metadata
- Download URL: mlsimplified-1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d324ab1e948a9d841fd9b55501a557d0a4165e2ddaf029e56c2e2bd83f66dd5
|
|
| MD5 |
805f1d8a6d83a97c7bc89c321fd2bba2
|
|
| BLAKE2b-256 |
2f6bff3771d84bca3407004239eebc9bd66256c16cab750ebb3189752c863591
|
File details
Details for the file mlsimplified-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mlsimplified-1.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ec6172c73d09a79f1b935463b6391bb0e184cbf3c4b81278dbd709ea68c73b4
|
|
| MD5 |
afb20ddb6e5f669366201a99107316d2
|
|
| BLAKE2b-256 |
d70fcf688c659d472cb586a39b700c1047815a3197cb4a9c006d12617a710c68
|