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...
< pbrunet_> here is a pastebinhttp://pastebin.com/Zs9as2f2
< pbrunet_> here is a pastebin : http://pastebin.com/Zs9as2f2
< rcurtin> what version of mlpack is this?
< rcurtin> ah, I think this is 1.0.12
< 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.
travis-ci has left #mlpack []
pbrunet_ has quit [Ping timeout: 268 seconds]
travis-ci has joined #mlpack
< travis-ci> mlpack/mlpack#314 (master - 29b89eb : ryan): The build is still failing.
travis-ci has left #mlpack []