Skip to main content

EazyML Responsible-AI: Modeling

Python PyPI package Code Style

EazyML

eazyml-automl is a comprehensive python package designed to simplify machine learning workflows for data scientists, engineers, and developers. With AutoML capabilities, EazyML enables automated feature selection, model training, hyperparameter optimization, and cross-validation, all with minimal code. The package trains multiple models in the background, rank orders them by performance metrics, and recommends the best model for your use case.

Features

  • Global Feature Importance: Get insights into the most impactful features influencing the target variable.
  • Confidence Scoring: Enhance predictive reliability of your models with confidence scores.
  • Hyperparameter Tuning: Enhance performance of your predictive operations with optimal models.

eazyml-automl is perfect for users looking to streamline the development and operationalization of robust and efficient machine learning models.

Installation

User installation

The easiest way to install EazyML modeling is using pip:

pip install -U eazyml-automl

Dependencies

EazyML Modeling requires :

  • werkzeug
  • unidecode
  • pandas
  • scikit-learn
  • nltk
  • pyyaml
  • requests

Usage

Initialize and train predictive models on the given training data. Perform predictions on the given test data. Customize training and inference using options parameter. Please refer to the API documentation and boilerplate notebooks for details.

Imports

import pandas as pd
import joblib
from eazyml import ez_init, ez_build_model, ez_predict

Initialize and Read Data

# Initialize the EazyML automl library.
_ = ez_init()

# Load training data (Replace with the correct data path).
train_data_path = "path_to_your_training_data.csv"
train_data = pd.read_csv(train_data_path)

Train and Save Model

# Define the outcome (target variable)
outcome = "target"  # Replace with your target variable name

# Customize options for building models
build_options = {"model_type": "predictive"}

# Call EazyML API to train models
build_response = ez_build_model(train_data, outcome, options=build_options)

# build_response is a dictionary object with following keys.
# print(build_response.keys())
# dict_keys(['success', 'message', 'model_performance', 'global_importance', 'model_info'])

# Save the response for later use (e.g., for predictions with ez_predict).
build_model_response_path = 'model_response.joblib'
joblib.dump(build_response, build_model_response_path)

Use Saved Model to Predict

# Load test data.
test_data_path = "path_to_your_test_data.csv"
test_data = pd.read_csv(test_data_path)

# This shows how to use a saved model, but you might as well use the build_response object directly in case you have both build and predict operations in the same notebook for your experiments.
build_model_response_path = 'model_response.joblib'
build_model_response = joblib.load(build_model_response_path)
model_info = build_model_response["model_info"]

# Choose the model for prediction from the key "model_performance" in the build_model_response object above. The default model is the top-performing model if no value is provided.
pred_options = {"model": "Random Forest with Information Gain"}

# Call the eazyml function to predict
pred_response = ez_predict(test_data, model_info, options=pred_options)

# prediction response is a dictionary object with following keys.
# print(pred_response.keys())
# dict_keys(['success', 'message', 'pred_df'])

You can find more information in the documentation.

  • Documentation

  • Homepage

  • If you have questions or would like to discuss a use case, please contact us here

  • Here are the other packages from EazyML suite:

    • eazyml-automl: eazyml-automl provides a suite of APIs for training, optimizing and validating machine learning models with built-in AutoML capabilities, hyperparameter tuning, and cross-validation.
    • eazyml-data-quality: eazyml-data-quality provides APIs for comprehensive data quality assessment, including bias detection, outlier identification, and drift analysis for both data and models.
    • eazyml-counterfactual: eazyml-counterfactual provides APIs for optimal prescriptive analytics, counterfactual explanations, and actionable insights to optimize predictive outcomes to align with your objectives.
    • eazyml-insight: eazyml-insight provides APIs to discover patterns, generate insights, and mine rules from your datasets.
    • eazyml-xai: eazyml-xai provides APIs for explainable AI (XAI), offering human-readable explanations, feature importance, and predictive reasoning.
    • eazyml-xai-image: eazyml-xai-image provides APIs for image explainable AI (XAI).

License

This project is licensed under the Proprietary License.

Release files for eazyml-automl 0.0.84

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eazyml-automl 0.0.84
File Size Uploaded
eazyml_automl-0.0.84.tar.gz 16.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for eazyml-automl 0.0.84
File Interpreter ABI Platform
eazyml_automl-0.0.84-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 33.4 MB

Release files / eazyml_automl-0.0.84.tar.gz

Download URL eazyml_automl-0.0.84.tar.gz
Size 16.4 MB
Tags Source
SHA-256 checksum
How to use checksums
6fa89382d9772fbf0060db6042f29558a4631da49db79b44b867af8f6e7ebc62
BLAKE2b-256 checksum
How to use checksums
54b50a1958c7feec096d8ed7dee31a17b714a350f38b9d29e9fe8cd370dca61f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / eazyml_automl-0.0.84-py2.py3-none-any.whl

Download URL eazyml_automl-0.0.84-py2.py3-none-any.whl
Size 16.9 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
36b5e00a4c3ccb74ecd0fabae6c872312c8a9782a4e7c307910519ad4984920e
BLAKE2b-256 checksum
How to use checksums
cf8b4e35ab0bef9feb98c3f0ee9ac2c0c0b8fb3fb74e0486d56ecdd1f9fbd6d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

0.0.92

2 release files

0.0.91

2 release files

0.0.90

2 release files

0.0.88

2 release files

0.0.87

2 release files

0.0.86

2 release files

0.0.85

2 release files

This release

0.0.84 This release

2 release files

0.0.83

2 release files

0.0.82

2 release files

0.0.81

2 release files

0.0.80

2 release files

0.0.79

2 release files

0.0.78

1 release file

0.0.77

2 release files

0.0.76

2 release files

0.0.68

2 release files

0.0.67

2 release files

0.0.65

2 release files

0.0.60

2 release files

0.0.58

1 release file

0.0.57

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page