Skip to main content

Several Metrics To Evaluate Machine Learning Models

Project description

Model Metrics and Excel Saver

This Python package provides functions to calculate common model evaluation metrics and save the results along with predictions to an Excel file. It's designed to streamline the process of assessing and recording model performance.

Features

  • Comprehensive Metrics: Calculates R-squared (R2), Root Mean Squared Error (RMSE), Mean Absolute Percentage Error (MAPE), Kling-Gupta Efficiency (KGE), Nash-Sutcliffe Efficiency (NSE), Wave Hedges Distance (WHD), Vicis Symmetric Distance (VSD), and Willmott's Agreement Index (WAI).
  • Excel Export: Organizes and saves the computed metrics and actual vs. predicted values into a well-structured Excel file for convenient analysis and sharing.
  • Easy Integration: Simple and intuitive API for straightforward integration into your machine learning workflows.

Installation

Install the package using pip:

pip install IM_Metrics

#Import Necessary Functions:

from IM_Metrics import Save_Metrics

metrics_filename = 'Results of KRidge.xlsx'
Save_Metrics(y_train, y_train_pred, y_test, y_test_pred,metrics_filename)

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

im_metrics-2.2.0.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

IM_Metrics-2.2.0-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page