From 2f0ca879f5451e0d76385252af8cfaef0f51f9b2 Mon Sep 17 00:00:00 2001 From: Jah-yee Date: Tue, 3 Mar 2026 06:25:28 +0800 Subject: [PATCH] fix: correct typo prescision to precision Issue #53: Fix simple typo in documentation - average_precision.py: prescision -> precision - kdd_average_precision.py: prescision -> precision This PR has been tested locally. --- Python/ml_metrics/average_precision.py | 4 ++-- Python/ml_metrics/custom/kdd_average_precision.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Python/ml_metrics/average_precision.py b/Python/ml_metrics/average_precision.py index e18297d..228e4e8 100644 --- a/Python/ml_metrics/average_precision.py +++ b/Python/ml_metrics/average_precision.py @@ -4,7 +4,7 @@ def apk(actual, predicted, k=10): """ Computes the average precision at k. - This function computes the average prescision at k between two lists of + This function computes the average precision at k between two lists of items. Parameters @@ -42,7 +42,7 @@ def mapk(actual, predicted, k=10): """ Computes the mean average precision at k. - This function computes the mean average prescision at k between two lists + This function computes the mean average precision at k between two lists of lists of items. Parameters diff --git a/Python/ml_metrics/custom/kdd_average_precision.py b/Python/ml_metrics/custom/kdd_average_precision.py index c3d8cd6..0d8e71f 100644 --- a/Python/ml_metrics/custom/kdd_average_precision.py +++ b/Python/ml_metrics/custom/kdd_average_precision.py @@ -7,7 +7,7 @@ def kdd_apk(actual, predicted, k=10): This modified version uses the number of actual clicks as the denominator, regardless of k. - This function computes the average prescision at k between two lists of + This function computes the average precision at k between two lists of items. Parameters @@ -48,7 +48,7 @@ def kdd_mapk(actual, predicted, k=10): This modified version uses the number of actual clicks as the denominator, regardless of k. - This function computes the mean average prescision at k between two lists + This function computes the mean average precision at k between two lists of lists of items. Parameters