def mapk(actual, predicted, k=10):
    return np.mean([apk(a,p,k) for a,p in zip(actual, predicted)])
Computes the mean average precision at k.
dataset/ETHPy150Open benhamner/Metrics/Python/ml_metrics/average_precision.py/mapk