(y_target, y_predict)
| 14 | import pickle |
| 15 | |
| 16 | def compute_accuracy(y_target, y_predict): |
| 17 | correct_prediction = np.equal(y_predict, y_target) |
| 18 | accuracy = np.sum(correct_prediction)/len(correct_prediction) |
| 19 | return accuracy |
| 20 | |
| 21 | rng = np.random |
| 22 |