cameron.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/
jbc_ has quit [Ping timeout: 244 seconds]
jbc_ has joined #mlpack
brij has quit [Ping timeout: 256 seconds]
< naywhayare>
george___: you're right, that distance is a metric; I was thinking about it wrong
< naywhayare>
can you tell me more about the issue you were having? you could report it as a bug on Trac and I could spend some more time digging into what's wrong, if you like
< george___>
sure, apologies in advance if I describe things in a difficult to understand way
< george___>
I am using knn search to solve an n-body problem with a topological interaction, meaning that my particles are to interact with only their K nearest neighbors
< george___>
in order to use mlpack, I wrote an instance of the metric class, which calculates the distance on the torus
< george___>
everything seemed to work correctly, except when clumps of particles reached the boundary of the torus, where it became clear that particles would not interact with other particles if they were across the edge of the torus
< george___>
I think this is because of the binary space partitioning, but I haven't thought enough about the actual KNN search algorithms to know this is true
< george___>
for instance, if you imagine splitting space in half, many particles might get stuck on the wrong side of the tree
< george___>
imagining the torus (I might be wrong about this)
< george___>
I can make and send a short program that demonstrates this (i.e. my metric class and a computation of neighbors)
< george___>
incidentally, if I set the number of neighbors to find to the maximum (i.e. I have 200 particles and I find the 199 nearest neighbors)
< george___>
this works and I can take the first 25 of these
< george___>
but if I search for the 25 closest, I don't get the correct answer
< george___>
for particles near an edge
< naywhayare>
george___: yeah, if you can send a short demonstration program I can dig to the bottom of what's wrong pretty easily
< george___>
incidentally, I tried to use cover tree, but could not quite get it to work, I think because I don't understand C++/mlpack well enough
< george___>
ok, I'll make that, how should I send it to you?
< naywhayare>
I won't be able to play with it until Monday at the earliest; I'm out of town right now, until tomorrow night
< naywhayare>
thanks :) when I wrote the allknn implementation some time back I took care to write it in a flexible way to allow other metrics, so I am interested in solving any bugs people encounter :)
< george___>
yeah, thanks for looking into this!
brij has joined #mlpack
< naywhayare>
sure, no problem
< naywhayare>
you can hang out in IRC and I'll update you on what I find, or I'll do it through trac
zoq has quit [Ping timeout: 250 seconds]
zoq has joined #mlpack
islamfm has joined #mlpack
< george___>
I submitted a ticket, thanks for any help!
< george___>
If you are able to easily modify my code so that it uses CoverTree rather than BinarySpaceTree, let me know how you did it (I think I was insufficiently knowledgable to easily figure this out, as my efforts to use CoverTree were not successful)