(predict, actual)
| 26 | |
| 27 | #Mean Squared Error |
| 28 | def mse(predict, actual): |
| 29 | predict = np.array(predict) |
| 30 | actual = np.array(actual) |
| 31 | |
| 32 | difference = predict - actual |
| 33 | square_diff = np.square(difference) |
| 34 | |
| 35 | score = square_diff.mean() |
| 36 | return score |
| 37 | |
| 38 | #Root Mean Squared Error |
| 39 | def rmse(predict, actual): |
nothing calls this directly
no outgoing calls
no test coverage detected