[mlpack] 54/149: Make the Mahalanobis distance a true metric by default.
Barak A. Pearlmutter
barak+git at pearlmutter.net
Sat May 2 09:11:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch svn-trunk
in repository mlpack.
commit 0ae549eba49050a8d47491a6a2e5f53c590c8920
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date: Fri Oct 31 20:59:56 2014 +0000
Make the Mahalanobis distance a true metric by default.
git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@17274 9d5b8971-822b-0410-80eb-d18c1038ef23
---
src/mlpack/core/metrics/mahalanobis_distance.hpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/mlpack/core/metrics/mahalanobis_distance.hpp b/src/mlpack/core/metrics/mahalanobis_distance.hpp
index 99b4249..23518dd 100644
--- a/src/mlpack/core/metrics/mahalanobis_distance.hpp
+++ b/src/mlpack/core/metrics/mahalanobis_distance.hpp
@@ -40,9 +40,11 @@ namespace metric {
* which is faster to evaluate.
*
* @tparam TakeRoot If true, takes the root of the output. It is slightly
- * faster to leave this at the default of false.
+ * faster to leave this at the default of false, but this means the metric may
+ * not satisfy the triangle inequality and may not be usable for methods that
+ * expect a true metric.
*/
-template<bool TakeRoot = false>
+template<bool TakeRoot = true>
class MahalanobisDistance
{
public:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list