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/
travis-ci has joined #mlpack
< travis-ci> mlpack/mlpack#1774 (master - 276e268 : Marcus Edel): The build passed.
travis-ci has left #mlpack []
mikeling has joined #mlpack
govg has quit [Ping timeout: 240 seconds]
govg has joined #mlpack
vivekp has quit [Ping timeout: 240 seconds]
vivekp has joined #mlpack
vivekp has quit [Ping timeout: 255 seconds]
vivekp has joined #mlpack
zoq has quit [Quit: Reconnecting]
zoq has joined #mlpack
witness_ has joined #mlpack
govg has quit [Ping timeout: 245 seconds]
govg has joined #mlpack
dineshraj01 has joined #mlpack
< dineshraj01> Hi guys, I am really having a hard time understanding mlpack code. Generic programming is used extensively, but I don't seem to understand what each and every typename is and what it does. Although I am reading the comments in the code, but still not sure about the complete structure. Any tips as to what approach I should use to better understand the code?
< rcurtin> hi dineshraj01, there are typically three techniques that are used:
< rcurtin> * SFINAE (substitution failure is not an error)
< rcurtin> * policy-based design (splitting each class into a bunch of template parameters)
< rcurtin> * class traits
< rcurtin> you are lucky, I just found some tutorial links for each of those things:
< rcurtin> on the other hand, I can also give you a quick answer for the code you are looking at :)
mikeling has quit [Quit: Connection closed for inactivity]
< dineshraj01> thanks @rcurtin for sharing the links
< rcurtin> sure, I hope they are helpful
aditya_ has joined #mlpack
aditya has joined #mlpack
< dineshraj01> yeah and actually, I was lookiing at the ns_model in neighbour search wherein boost::variant has been used with visitor and an issue on github says, the same needs to be done for the rsmodel and ramodel. Since, there were so many parameters like TreeType, TreeStatType,tree traversals and others. Since I couldn't visulaize the overall flow, I was just blank minded as to how to refactor the code.
< dineshraj01> and what exactly are these models in range_search, neighbour search??? comments say it provides easy way to searlize the model itself, abstracts away the model...but i still don't get it :(
< rcurtin> I'm not sure what you mean by "these models"
< rcurtin> do you mean NSModel?
< rcurtin> or RSModel
< rcurtin> the reason those classes exist is that it's not clear how to provide a unified interface for serializing models of different types
< rcurtin> the command-line programs can have use many different NeighborSearch or RangeSearch types, because of the many template parameters
< rcurtin> so the NSModel class exists to encapsulate all of these types inside of a single class that can be serialized
< rcurtin> and then from the command-line program we can always serialize an NSModel instance, and we don't have to decide which NeighborSearch<...> type to serialize
dinesh_ has joined #mlpack
dineshraj01 has quit [Ping timeout: 256 seconds]
dineshraj01 has joined #mlpack
dinesh_ has quit [Ping timeout: 240 seconds]
dineshraj01 has quit [Ping timeout: 258 seconds]
dineshraj01 has joined #mlpack
dinesh_ has joined #mlpack
< dinesh_> okay. thanks for the explanation @rcurtin
palashahuja has joined #mlpack
dinesh__ has joined #mlpack
palash has joined #mlpack
palashahuja has quit [Ping timeout: 248 seconds]
dinesh__ has quit [Ping timeout: 252 seconds]
dineshraj01 has quit [Ping timeout: 240 seconds]
dinesh_ has quit [Ping timeout: 276 seconds]
dineshraj01 has joined #mlpack
dinesh_ has joined #mlpack
dinesh__ has joined #mlpack
palash has quit [Ping timeout: 256 seconds]
aditya has quit [Ping timeout: 252 seconds]
aditya_ has quit [Ping timeout: 264 seconds]
ank_95_ has joined #mlpack
< rcurtin> I found a nice writeup by an mlpack user today on getting mlpack set up on Ubuntu: http://mccormickml.com/2017/02/01/getting-started-with-mlpack/
vinayakvivek has joined #mlpack
< zoq> Really nice tutorial, there is one part I wouldn't agree on "it appears that mlpack has a lot of dependencies on, e.g., other linear algebra libraries"
ank_95_ has quit [Quit: Connection closed for inactivity]
vinayakvivek has quit [Quit: Connection closed for inactivity]