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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlon-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 4a4ff573a04335c290ff238edd24db6395d8f73fca1a5ff350bb33719a4e1160
MD5 5d363db2cc5d6df9e5db2bb82a874bbc
BLAKE2b-256 ea1248eea0654129973bb49b34333d6e1dc4286592aaf93db226f6a03251ea30

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mlon-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71a121ca9db776706dceda112d44fd0cff5517cf311798654af663ae5292f06c
MD5 ab55b6d7308ec1ac1801fa628e7c5972
BLAKE2b-256 5983ddb17db757301317d5aa40d001b64178a372745c84e8e23369ed2a00dbbe

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