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/
govg has joined #mlpack
code_blooded29 has joined #mlpack
< code_blooded29> I want to contribute to the best of my knowledge
code_blooded29 has quit [Quit: Page closed]
< alsc> I wonder how to enable Log::Info to cout from the programming interface
< alsc> I'm good :)
< alsc> Log::Info.ignoreInput = false;
< alsc> and hey I really like the ANN implementation!
< alsc> ^^ the above logs just in debug mode. how to make it log also when compiling release?
< zoq> alsc: In this case you have to modify core/util/log.hpp and core/util/log.cpp.
< alsc> or maybe I'll just add DEBUG as a compile option for now
< alsc> I meant as a preprocessor macro
< alsc> thanks zoq
< zoq> alsc: Okay, but you should be aware that DEBUG=OFF or RELEASE=ON enables a bunch of compiler optimizations and also disables some armadillo checks.
< rcurtin> alsc: do you mean that when you set Log::Info.ignoreInput but then compile with -DNDEBUG (or without -DDEBUG) that you get no output, but you do get output when you compile with -DDEBUG?
< zoq> rcurtin: The COMPILER_HAS_DEPRECATED_ATTR check also fails on appveyor but it continues ...
< zoq> Not sure but maybe the build is just fine
< alsc> rcurtin: yes exactly
< alsc> but I can make sure later
< rcurtin> zoq: ah, do you mean that Kumaranath's errors actually didn't cause a problem and CMake may have configured correctly?
< rcurtin> I think you may be right... let's see what he says
< rcurtin> alsc: hmm, that's not how it should work... Log::Info should work even if not compiling in debug mode
< alsc> rcurtin zoq I can confirm that I had to define DEBUG in release mode to see the log
< alsc> compiled with the master branch
< rcurtin> and you are using Log::Info and not Log::Debug?
< rcurtin> the way it "should" be is that if you set Log::Info.ignoreInput = false, then you should get [INFO ] messages (if the code outputs any)
< rcurtin> but you will only get [DEBUG] messages if you compile with -DDEBUG
< alsc> yeah I am actually running ANN that prints lots of
< alsc> [INFO ] SGD: iteration 1990656, objective 49842.7.
< alsc> it's how the code is. I have just set Log::Info.ignoreInput = false; at a random initial line of my main()
< rcurtin> right, and you say that [INFO ] messages only show up if you compile with -DDEBUG
< rcurtin> let me try to reproduce that (but after lunch), that definitely does not sound like intended behavior
< alsc> yup
< alsc> bon appetit :)
alsc has quit [Quit: leaving]
alsc has joined #mlpack
alsc has quit [Quit: alsc]
alsc has joined #mlpack
alsc has quit [Quit: alsc]