Skip to main content

A comprehensive utility package for machine learning development

Project description

MLON

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)

Documentation

For detailed documentation and examples, visit [documentation link].

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mlon-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ada3f17ee18630f4609483ca5a2da19016bf5c39e4dc496f5668dd396c16f50a
MD5 5b34fb55040d5e4de062421b3eb61cdb
BLAKE2b-256 87c4aab8857be21a8e8b99b3abaf8156edd86df73f02c7d1e337d0d53e6f06eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mlon-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f27dbe092e6a57f66c67b80ca5d4a7a039f645baf105fe81bd86032537c3caf5
MD5 c653a595ec4ef5c8891333346fa70799
BLAKE2b-256 e359833b4c0168aaea78a8ed4363a3f5104eadbb842e4b40fa07df1480dee241

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