Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Python/ml_metrics/average_precision.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Python/ml_metrics/custom/kdd_average_precision.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down