mljar / mljar-supervised

Python package for AutoML on Tabular Data with Feature Engineering, Hyper-Parameters Tuning, Explanations and Automatic Documentation
https://mljar.com
MIT License
3k stars 401 forks source link

Add support for new metric: Mean Absolute Percentage Error #310

Closed pplonski closed 3 years ago

pplonski commented 3 years ago

I will use metric from scikit-learn https://scikit-learn.org/stable/modules/generated/sklearn.metrics.mean_absolute_percentage_error.html

pplonski commented 3 years ago

Hi @girardea, I've added support to the MAPE metric. The code update is in the dev branch. To install the newest code please run:

pip install -U git+https://github.com/mljar/mljar-supervised.git@dev

To use MAPE metric please set eval_metric="mape", like below:

automl = AutoML(eval_metric="mape")
automl.fit(X, y)

The code updates will go to the 0.9.0 version.

girardea commented 3 years ago

That's great news! Will test it right away!