Skip to main content

EazyML provides a suite of APIs for training, testing and optimizing machine learning models with built-in AutoML capabilities, hyperparameter tuning, and cross-validation.

Project description

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, ranks them by performance metrics, and recommends the best model for your use case.

Features

  • Global Feature Importance: Get insights into the most impactful features in your dataset.
  • Confidence Scoring: Enhance predictive reliability with confidence scores.

eazyml-automl is perfect for users looking to streamline the development 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 build a predictive model based on the provided dataset and options. Perform prediction on the given test data based on model options.

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

# Initialize the EazyML library with the access key.
_ = ez_init()

# Load the training data (make sure the file path is correct).
train_file_path = "path_to_your_training_data.csv"  # Replace with the correct file path
train_data = pd.read_csv(train_file_path)

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

# Set the options for building the model
build_options = {"model_type": "predictive"}

# Call the eazyml function to build the model
build_response = ez_build_model(train_data, outcome, options=build_options)

# build_response is a dictionary. Note: Do not print/view the response as it contains sensitive or encrypted model information in model_info.
build_response.keys()

# Expected output (this will vary depending on the data and model):            
# 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.pkl'
pickle.dump(build_response, open(build_model_response_path, 'wb'))

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

# Load output from ez_build_model. This should be the pickle file where model information is stored.
build_model_response_path = 'model_response.pkl'
build_model_response = pickle.load(open(build_model_response_path, 'rb'))
model_info = build_model_response["model_info"]

# Choose the model to use for prediction from the available performance options in the response.
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)

# Check the keys of the prediction response. It will be a dictionary.
pred_response.keys()

# Example Output Keys(this will vary depending on your model and data):
# dict_keys(['success', 'message', 'pred_df'])

You can find more information in the documentation.

Useful links, other packages from EazyML family

  • 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.


Maintained by EazyML
© 2025 EazyML. All rights reserved.

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

eazyml_automl-0.0.60.tar.gz (46.6 MB view details)

Uploaded Source

Built Distribution

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

eazyml_automl-0.0.60-py2.py3-none-any.whl (47.4 MB view details)

Uploaded Python 2Python 3

File details

Details for the file eazyml_automl-0.0.60.tar.gz.

File metadata

  • Download URL: eazyml_automl-0.0.60.tar.gz
  • Upload date:
  • Size: 46.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for eazyml_automl-0.0.60.tar.gz
Algorithm Hash digest
SHA256 e999d5218b837a5c31a681e7ac40aa15791e0f6a63e315c4e78a6a38c3d2d23a
MD5 a556ecbc7d229b7bf1896f60c8ef35c4
BLAKE2b-256 7b6be458503559b411c792ef70ca19465ffddf41744c06e6f51b7eb5e12aa6d4

See more details on using hashes here.

File details

Details for the file eazyml_automl-0.0.60-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for eazyml_automl-0.0.60-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5c969e367df404349c9dff66a673c5bdf862932f99a807c6eefdfa0398255047
MD5 fe3ccfe0a47acf0af3586e12f03ff6d1
BLAKE2b-256 f9270719dafe1cf03d62f4bccf593a4e24706dfb82f41e1bc831aca2a7e6a0bc

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