Your question is Python RMSE Function. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Waabi evaluates prediction accuracy by comparing predicted driving values with observed values. Given two sequences, calculate their root mean square error (RMSE).
RMSE is defined as:
RMSE = sqrt(sum((predicted[i] - actual[i])²) / n)
Implement rmse(predicted, actual) and return the result as a floating-point number.
predicted, a non-empty list of numbers, and actual, a non-empty list of numbers.n.def rmse(predicted, actual):