[mlpack-svn] r16255 - mlpack/trunk/src/mlpack/core/metrics
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Feb 10 08:57:45 EST 2014
Author: rcurtin
Date: Mon Feb 10 08:57:44 2014
New Revision: 16255
Log:
Actually print the kernel.
Modified:
mlpack/trunk/src/mlpack/core/metrics/ip_metric_impl.hpp
Modified: mlpack/trunk/src/mlpack/core/metrics/ip_metric_impl.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/core/metrics/ip_metric_impl.hpp (original)
+++ mlpack/trunk/src/mlpack/core/metrics/ip_metric_impl.hpp Mon Feb 10 08:57:44 2014
@@ -53,12 +53,14 @@
2 * kernel.Evaluate(a, b));
}
-// Convert Object To String
+// Convert object to string.
template<typename KernelType>
-std::string IPMetric<KernelType>::ToString() const{
+std::string IPMetric<KernelType>::ToString() const
+{
std::ostringstream convert;
convert << "IPMetric [" << this << "]" << std::endl;
- convert << " Kernel address: " << localKernel << std::endl;
+ convert << " Kernel: " << std::endl;
+ convert << util::Indent(kernel.ToString(), 2);
return convert.str();
}
More information about the mlpack-svn
mailing list