Task: Implement the Jaccard Index
Implement jaccard_index(y_true, y_pred) for two binary NumPy arrays of the same length (1 = positive).
Jaccard=#{i:ytrue,i=1 or ypred,i=1}#{i:ytrue,i=1 and ypred,i=1}
- Return the value rounded to 3 decimals.
- If the union is empty (both arrays all zeros), return
0.0.