def test_evaluation_error():
 max_rating = 5.0
 min_rating = 1.0
 y_real = np.array([0.0, 1.0, 0.0, 2.0, 3.0])
 y_pred = np.array([0.0, 1.0, 0.0, 2.0, 3.0])
 (mae, nmae, rmse) = evaluation_error(y_real, y_pred, max_rating, min_rating)
 assert_equals(mae, 0.0)
 assert_equals(nmae, 0.0)
 assert_equals(rmse, 0.0)

def test_evaluation_error ( ) : max_rating = 5.0 min_rating = 1.0 y_real = np . array ( [ 0.0 , 1.0 , 0.0 , 2.0 , 3.0 ] ) y_pred = np . array ( [ 0.0 , 1.0 , 0.0 , 2.0 , 3.0 ] ) ( mae , nmae , rmse ) = evaluation_error ( y_real , y_pred , max_rating , min_rating ) assert_equals ( mae , 0.0 ) assert_equals ( nmae , 0.0 ) assert_equals ( rmse , 0.0 )
check the error evaluation .