def predHits(truth, pred1, pred2, pred3):
    hits_1 = 0
    hits_3 = 0
    pred1 = np.rint(pred1).astype(np.int32)
    pred2 = np.rint(pred2).astype(np.int32)
    pred3 = np.rint(pred3).astype(np.int32)
    for i in range(len(truth)):
        if (truth[i] == pred1[i]):
            hits_1 = (hits_1 + 1)
        if ((truth[i] == pred1[i]) or (truth[i] == pred2[i]) or (truth[i] == pred3[i])):
            hits_3 = (hits_3 + 1)
    top_1 = (hits_1 / len(truth))
    top_3 = (hits_3 / len(truth))
    return (top_1, top_3)
def predHits(truth, pred1, pred2, pred3):
    hits_1 = 0
    hits_3 = 0
    pred1 = np.rint(pred1).astype(np.int32)
    pred2 = np.rint(pred2).astype(np.int32)
    pred3 = np.rint(pred3).astype(np.int32)
    for i in range(len(truth)):
        if (truth[i] == pred1[i]):
            hits_1 = (hits_1 + 1)
        if ((truth[i] == pred1[i]) or (truth[i] == pred2[i]) or (truth[i] == pred3[i])):
            hits_3 = (hits_3 + 1)
    top_1 = (hits_1 / len(truth))
    top_3 = (hits_3 / len(truth))
    return (top_1, top_3)