Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAPE error ploting in regression model result #13

Closed
malaaam opened this issue Apr 17, 2019 · 1 comment
Closed

MAPE error ploting in regression model result #13

malaaam opened this issue Apr 17, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@malaaam
Copy link

malaaam commented Apr 17, 2019

Hi,
I am Mahabub working as a data scientist in ALSTOM Transport, France. I have seen your package which is very nice and useful. Thanks for that.

I have an additional query is that , in the regression model result, the errors measures are Adjusted R square, RMSE and MAE. But as per the requirement of my project I also want to calculate and show MAPE in this plot.
So, could you please advice how can I include MAPE on the same graph?

@laresbernardo
Copy link
Owner

laresbernardo commented Apr 17, 2019

Hey @malaaam Glad you are using my library!

Please, can you tell me why do you want MAPE specifically, additionally or instead the other metrics shown in the plot? I'm curious...

On the other hand, if you need to get the metric (MAPE), you can access it with lares::mape(real_values, predicted_values) or with the pre-calculated results$metrics data frame that returns the lares::h2o_automl function (I guess it's what you are using).

Additionally, if you wish to plot the results with that metric shown, you can check the mplot_lineal function and simply copy/paste it as a new local function, changing the metrics you wish to plot in the inner labels object.

On my side, I guess I could let the user select which metrics are shown in the plot by adding a new parameter to the function... something like metrics=c("RMSE","MAPE","R2")

Hope that works out for you ;)

@laresbernardo laresbernardo added the enhancement New feature or request label Apr 17, 2019
@laresbernardo laresbernardo self-assigned this Apr 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants