def mapk(actual, predicted, k=10):
    return np.mean([apk(a,p,k) for a,p in zip(actual, predicted)])
Update aliases.
dataset/ETHPy150Open benhamner/Metrics/Python/ml_metrics/average_precision.py/mapk--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/commands/command.py/Command.set_aliases