verne.freenode.net changed the topic of #mlpack to: http://www.mlpack.org/ -- We don't respond instantly... but we will respond. Give it a few minutes. Or hours. -- Channel logs: http://www.mlpack.org/irc/
pbrunet_ has joined #mlpack
< pbrunet_>
hi, As I try to compile a code with Kmean in MLPack, I have some compilation issue, can someone help me on this? I try to use the Mahalanobis distance but g++ and clang++ complain about Evalute called on "const this"
< pbrunet_>
I looked in KMeans.hpp and the metric is not const so I don't understand why compilers say it is const :s
< rcurtin>
pbrunet_: can you paste the errors? the functions in the KMeans class aren't const either, so there shouldn't be an issue...
< rcurtin>
probably some function deeper down is marked as const and shouldn't be...
< rcurtin>
for some reason, in 1.0.12, the KMeans::Cluster() function is marked const
< rcurtin>
so you can modify kmeans.hpp and kmeans_impl.hpp and remove the "const" from the function signature to fix the issue, or upgrade to git master, where the kmeans code doesn't have that issue
< rcurtin>
sorry for the inconvenience... :(
travis-ci has joined #mlpack
< travis-ci>
mlpack/mlpack#313 (master - d1dfaa8 : Ryan Curtin): The build is still failing.