Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

root mean squared error in machine learning formula

from sklearn.metrics import mean_squared_error
from math import sqrt

actual_values = [3, -0.5, 2, 7]
predicted_values = [2.5, 0.0, 2, 8]

mean_squared_error(actual_values, predicted_values)
# taking root of mean squared error
root_mean_squared_error = sqrt(mean_squared_error)
Source by www.studytonight.com #
 
PREVIOUS NEXT
Tagged: #root #squared #error #machine #learning #formula
ADD COMMENT
Topic
Name
2+5 =