Skip to main content

A comprehensive utility package for machine learning development

Project description

MLON

PyPI Downloads

A comprehensive utility package for machine learning development that works seamlessly with popular ML libraries like TensorFlow, scikit-learn, Keras, and PyTorch.

Features

  • Data Preprocessing

    • Missing value handling
    • Feature scaling
    • Categorical encoding
  • Model Evaluation

    • Classification metrics
    • Regression metrics
    • Confusion matrix analysis
    • Cross-validation utilities
  • Visualization

    • Confusion matrix plots
    • Learning curves
    • Feature importance plots
    • Distribution plots
    • Correlation matrices
  • Model Utilities

    • Model saving/loading
    • Hyperparameter tuning
    • Grid search and random search
    • Model size estimation
  • Cross Validation

    • K-fold cross-validation
    • Stratified k-fold
    • Custom scoring support

Installation

pip install mlon

Quick Start

from mlon import DataPreprocessor, ModelEvaluator, Visualizer, ModelUtils, CrossValidator

# Data Preprocessing
preprocessor = DataPreprocessor()
scaled_data = preprocessor.scale_features(data, method='standard')
encoded_data = preprocessor.encode_categorical(data, method='onehot')

# Model Evaluation
evaluator = ModelEvaluator()
metrics = evaluator.classification_metrics(y_true, y_pred)
conf_matrix = evaluator.get_confusion_matrix(y_true, y_pred)

# Visualization
viz = Visualizer()
viz.plot_confusion_matrix(conf_matrix)
viz.plot_learning_curve(train_scores, val_scores)

# Model Management
model_utils = ModelUtils()
model_utils.save_model(model, 'model.pkl')
best_model = model_utils.grid_search(model, param_grid, X, y)

# Cross Validation
cv = CrossValidator(n_splits=5)
scores = cv.cross_validate(model, X, y)

Requirements

  • Python 3.7+
  • NumPy
  • Pandas
  • scikit-learn
  • Matplotlib
  • Seaborn
  • Joblib

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

mlon-1.0.3.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

mlon-1.0.3-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file mlon-1.0.3.tar.gz.

File metadata

  • Download URL: mlon-1.0.3.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for mlon-1.0.3.tar.gz
Algorithm Hash digest
SHA256 0850a662ee33ec2875fd92fd62b771d24b0be95fe42b161fcfa16cb149e6c501
MD5 2bc3b0bf6fb97447729bbc422273df58
BLAKE2b-256 77ed71daedc8167a937cae2e27bd7e26ba256097f50850d7d01fb2d79d80054a

See more details on using hashes here.

File details

Details for the file mlon-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: mlon-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for mlon-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 398cb49d0ad5da458cc115eea08e3e14ea124fd8082345aaf7437c94ed2885c7
MD5 7aad01b7b86f2d63d5ec376cb93fa192
BLAKE2b-256 534857565e8f6ce8cf766dcb4e1b407e19849b127c6f6f35cde0dc0302ede9f8

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