Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mean computation in Mahalanobis distance #471

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Next Next commit
Fix typo: Mahalonobis -> Mahalanobis
  • Loading branch information
j0ma committed Jul 12, 2023
commit fb242cc9b8e60a382db0cc3730a8d892ec26d172
4 changes: 2 additions & 2 deletions metrics/mahalanobis/mahalanobis.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
_DESCRIPTION = """
Compute the Mahalanobis Distance

Mahalonobis distance is the distance between a point and a distribution.
Mahalanobis distance is the distance between a point and a distribution.
And not between two distinct points. It is effectively a multivariate equivalent of the Euclidean distance.
It was introduced by Prof. P. C. Mahalanobis in 1936
and has been used in various statistical applications ever since
Expand All @@ -47,7 +47,7 @@
X: List of datapoints to be compared with the `reference_distribution`.
reference_distribution: List of datapoints from the reference distribution we want to compare to.
Returns:
mahalanobis: The Mahalonobis distance for each datapoint in `X`.
mahalanobis: The Mahalanobis distance for each datapoint in `X`.
Examples:

>>> mahalanobis_metric = evaluate.load("mahalanobis")
Expand Down