Test your function
w2_unittest.test_compute_accuracy(compute_accuracy, pred, y)
Wrong output.
Expected: 0.953063647155511.
Got: 0.9527592609502937.
3 Tests passed
1 Tests failed
w2_unittest.test_compute_accuracy(compute_accuracy, pred, y)
Wrong output.
Expected: 0.953063647155511.
Got: 0.9527592609502937.
3 Tests passed
1 Tests failed
There was a similar issue couple of days ago - the learner hard-coded start of the sentence value. Maybe yours is the same?
Cheers