(p, t)
| 157 | |
| 158 | # calculate accuracy |
| 159 | def mse(p, t): |
| 160 | p = np.array(p) |
| 161 | t = np.array(t) |
| 162 | return np.mean((p - t)**2) |
| 163 | |
| 164 | print('train mse:', mse(train_predictions, train_targets)) |
| 165 | print('test mse:', mse(test_predictions, test_targets)) |
no outgoing calls
no test coverage detected