The Python Oracle

scikit-learn: How to calculate root-mean-square error (RMSE) in percentage?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Island

--

Chapters
00:00 Scikit-Learn: How To Calculate Root-Mean-Square Error (Rmse) In Percentage?
01:49 Accepted Answer Score 6
02:07 Thank you

--

Full question
https://stackoverflow.com/questions/4517...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python3x #pandas #scikitlearn #randomforest

#avk47



ACCEPTED ANSWER

Score 6


Your implementation of calculate_mape is not working because you are expecting the check_arrays function, which was removed in sklearn 0.16. check_array is not what you want.

This StackOverflow answer gives a working implementation.