(predict, actual)
| 37 | |
| 38 | #Root Mean Squared Error |
| 39 | def rmse(predict, actual): |
| 40 | predict = np.array(predict) |
| 41 | actual = np.array(actual) |
| 42 | |
| 43 | difference = predict - actual |
| 44 | square_diff = np.square(difference) |
| 45 | mean_square_diff = square_diff.mean() |
| 46 | score = np.sqrt(mean_square_diff) |
| 47 | return score |
| 48 | |
| 49 | #Root Mean Square Logarithmic Error |
| 50 | def rmsle(predict, actual): |
nothing calls this directly
no outgoing calls
no test coverage detected