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/
govg has quit [Ping timeout: 245 seconds]
govg has joined #mlpack
govg has quit [Ping timeout: 260 seconds]
govg has joined #mlpack
SinisterMJ has joined #mlpack
< SinisterMJ>
Hi, I need help loading a linear regression model back from harddrive, I just can't get it to work, please.
< SinisterMJ>
anyone here?
govg has quit [Quit: leaving]
govg has joined #mlpack
< zoq>
SinisterMJ: Hello, are you using the same mlpack version to load the existing model file?
< zoq>
Sure, hopefully I didn't missed anything :)
< SinisterMJ>
I will try it when my build system is done with it ;) Thanks a ton!
< jenkins-mlpack>
Starting build #2123 for job mlpack - svn checkin test (previous build: SUCCESS)
< naywhayare>
SinisterMJ: I think I'm the only person answering mlpack questions on stack overflow, and I check it less often than I check here or the mlpack mailing list :)
< SinisterMJ>
:) Yeah, on SO there was not even a MLPack tag or similar, so I knew I was busted there
< jenkins-mlpack>
Marcus Edel: Right now, we can't load a vector, so we load a matrix and extract the last column.
< SinisterMJ>
Funny enough, the latest trunk has another compilation error with VS. Error23error C2864: 'mlpack::tree::XTreeSplit<DescentType,StatisticType,MatType>::MAX_OVERLAP' : only static const integral data members can be initialized within a class\mlpack\src\mlpack\core\tree\rectangle_tree\x_tree_split.hpp33
< SinisterMJ>
This error doesn't touch me, and I fixed it for me by making it non-static, but still fyi
< naywhayare>
thanks
< naywhayare>
I'm testing the fix before committing it
< naywhayare>
the windows build server is down at the moment and I haven't had a chance to look into it
< naywhayare>
so, that fix actually does not work under gcc; I'm going to open a ticket for the issue, and when I am less busy, hopefully I will have a chance to fix it
< naywhayare>
but you have a workaround for now, which is good
< SinisterMJ>
Okay, that actually did not work. I have added "const double MAX_OVERLAP = 0.2;" to x_tree_split_impl.hpp, now that part works. But I get Linker errors now in the AugLagrangianFunction.
< naywhayare>
linker errors about MAX_OVERLAP or something else?
govg has joined #mlpack
< SinisterMJ>
Something else
< SinisterMJ>
sec
< SinisterMJ>
Error71error LNK2005: "public: double __thiscall mlpack::optimization::AugLagrangianFunction<class mlpack::optimization::LRSDPFunction>::Evaluate(class arma::Mat<double> const &)const " (?Evaluate@?$AugLagrangianFunction@VLRSDPFunction@optimization@mlpack@@@optimization@mlpack@@QBENABV?$Mat@N@arma@@@Z) already defined in mlpack.lib(lrsdp.obj)\mlpack\Build-VS\src\mlpack\tests\mlpack.lib(lrsdp_function.obj)
govg has quit [Remote host closed the connection]
< naywhayare>
I have to get lunch, but hopefully I will have an answer for you later on
< zoq>
naywhayare: You are right MAX_OVERLAP dosn't work with clang. I put MAX_OVERLAP outside the class to get it working, but I think there is a better way (constexpr). It looks like we already taked about it :) http://www.mlpack.org/irc/mlpack.20140819.html
< naywhayare>
actually, maybe I have it figured out before lunch
< naywhayare>
SinisterMJ: can you try adding this to lrsdp_function.hpp?
< naywhayare>
it seems to work on gcc, but I have to go now so I don't have more time to test it right now
< naywhayare>
zoq: ah, we did... I'll get back to you about this after lunch :)
< zoq>
naywhayare: sure
govg has joined #mlpack
SinisterMJ has quit [Ping timeout: 246 seconds]
SinisterMJ has joined #mlpack
govg has quit [Quit: leaving]
< naywhayare>
zoq: for now switching to constexpr probably won't work since we don't require C++11 at the moment (since Udit never finished the variant of Adaboost that would require C++11 features)
< naywhayare>
SinisterMJ: did you have a chance to try the fix I suggested?
< SinisterMJ>
Sorry, I am in a hotel on a reaally crappy internet
< naywhayare>
oh, right, we need to declare the Evaluate specialization too
< naywhayare>
I'll incorporate that fix (the two specialization declarations in lrsdp_function.hpp) shortly
< naywhayare>
zoq: the only problem with removing the static is that MAX_OVERLAP is used in static functions of XTreeSplit
< naywhayare>
I guess for now the best thing is to just put it outside the class... I will eventually be refactoring that whole thing when I have time
< zoq>
naywhayare: Maybe I missed something but is there a good reason for the parameter/design, because it's used in one function?
< naywhayare>
this is code Andrew wrote that I haven't had a good chance to go through, and I think he did it in a hurry since it was very close to the deadline
< naywhayare>
I think his goal was to allow the user to choose this MAX_OVERLAP parameter, but specify a default value
< naywhayare>
I think the better way to do it may be to make the class non-static and actually hold a maxOverlap member which defaults in the constructor to 0.2
< naywhayare>
but I'm not sure that RectangleTree will work with a non-static XTreeSplit function at this point
< zoq>
naywhayare: yeah, that sounds like a good plan
< naywhayare>
for now I'll commit a quick fix to make it a const double outside of the class, but I'll leave the ticket open until it can be refactored like I suggested or some other equally better solution
< zoq>
okay good
< zoq>
Thanks!
< naywhayare>
okay, fix committed in r17188 and updated the ticket
< naywhayare>
SinisterMJ: I committed the specializations in r17189; thanks for your help in tracking down these two issues!
< SinisterMJ>
Thanks to you guys!
< SinisterMJ>
Saves me loads of time to implement this on my own ;)
< naywhayare>
:)
< naywhayare>
if you have more issues, feel free to report them here, on trac, the mailing list, or wherever :)
< naywhayare>
let me take a minute and get the Windows build slave back online
< SinisterMJ>
Will do, but currently everything seems to work fine. My data doesnt fit with the predictions, but I doubt its your issue ;)
< naywhayare>
which might help prevent future issues like this...
< jenkins-mlpack>
Starting build #2124 for job mlpack - svn checkin test (previous build: SUCCESS)
< naywhayare>
okay, I have the x64 and x32 slaves back online, although the x32 slave isn't configured right and will just fail on everything
< naywhayare>
the x64 slave should work fine though