In the first week’s lab on anomaly detection (exercise 2), I have tried both loop and vectorised implementation to find the most appropriate epsilon. I keep getting an assertion error even if I simply copy paste the code from hints:
I have completed the code with loop implementation. Can you provide some hint to do a vectorised implementation.
np.sum(np.logical_and(pred_labels == 1, true_labels == 1)) - is this a correct vectorised implementation?