mlpack IRC logs, 2017-03-05

Logs for the day 2017-03-05 (starts at 0:00 UTC) are shown below.

March 2017
Sun
Mon
Tue
Wed
Thu
Fri
Sat
 
 
 
1
2
3
4
5
6
7
8
9
10
--- Log opened Sun Mar 05 00:00:29 2017
00:01 < zoq> hm, depends; vim, sublime text, gdb
00:03 < zoq> How does your setup look like?
00:03 < shihao> command line debugging is hard...
00:04 < shihao> I like sublime text, but I don't know how to use command line debugging.
00:04 < shihao> I just output what I want to see in terminal.... so stupid :)
00:04 < zoq> There is this tool: https://github.com/cs01/gdbgui I'd like to test
00:05 < chvsp> zoq: I was just curious whether gdb can be used with cmake, I mean adding the debug prints...?
00:05 < shihao> It looks cool!
00:06 < zoq> build with: cmake -D DEBUG=ON -D PROFILE=ON ../ (You can specify options to compile with debugging information and profiling information:)
00:07 < chvsp> Oh. Will try it out.
00:07 < zoq> shihao: I agree, the idea is pretty cool, using the browser :)
00:07 < chvsp> by the way, gdbgui gives a Visual Studio debugger feel as far as the interface is concerned
00:09 < kris1> zoq: oh yes. it works now.
00:09 < zoq> chvsp: Do you use Visual Studio?
00:09 < zoq> kris1: great
00:10 < chvsp> Used to use Visual Studio. It was touted to have the "best" debugger. But after being exposed to Linux and command line, I never went back. :D
00:12 < shihao> I am about to have my first PR. It feels good :)
00:12 < shihao> zoq: Is there anything not to hard I can work on?
00:17 < zoq> chvsp: I see, not sure there is an Visual Studio alternative for Linux, that has kinda the same look and feel.
00:17 < zoq> shihao: Not sure, maybe there is an interesting issue on Github, you can also search through the codebase and perhaps you find something that could be improved. Another way is to come up with an interesting method you like to implement.
00:18 < shihao> zoq: ok, thanks!
00:22 -!- chvsp [cb6ef205@gateway/web/freenode/ip.203.110.242.5] has quit [Ping timeout: 260 seconds]
00:22 < kris1> zoq: This is a stupid question. but if i change anything in some module. I know i have to do make. but is cmake also required no right.
00:24 < kris1> but if add something new to i would have to add that to the cmakelist.txt so i guess you would have to.
00:24 < kris1> Yes so thing is that when i do cmake ../ and make from build it builds everything again
00:26 < zoq> If you modify the CMake file, you rebuild everything, but make should detect that and should call cmake for you.
00:26 < zoq> Also not sure you already know that, you can tell make to use use multiple cores: make -jX, where X is the number of cores.
00:27 < kris1> but if you add new file you would have to modify the CMake file.
00:28 < kris1> ok i got it
00:28 < zoq> yeah, that's true
00:29 < kris1> if i edit cmake file and then call make it would rebuild the whole thing.
00:29 < kris1> that seems a bit excessive dosen't it.
00:31 < zoq> Kinda yes, but how often do you add another file?
00:33 < zoq> But I agree building the complete code does take some time; in fact there is an open issue to optimize the build time :)
00:38 < shihao> zoq: My PR https://github.com/mlpack/mlpack/pull/913 is ready to merge. Please kindly review it and let me know if there is any problem. Thanks!
00:42 < zoq> shihao: Yeah, sure, we take a look once we get a chance; it might take longer than 24h :)
00:58 -!- shihao [407978c3@gateway/web/freenode/ip.64.121.120.195] has quit [Quit: Page closed]
01:16 -!- sumedhghaisas [~sumedh@188.74.64.244] has joined #mlpack
01:35 -!- vinayakvivek [uid121616@gateway/web/irccloud.com/x-ytzgzmvyiadtdszd] has quit [Quit: Connection closed for inactivity]
01:36 -!- mikeling [uid89706@gateway/web/irccloud.com/x-xdeahjqiddqpshoo] has joined #mlpack
01:44 -!- sumedhghaisas_ [~sumedh@188.74.64.245] has joined #mlpack
01:48 -!- sumedhghaisas [~sumedh@188.74.64.244] has quit [Ping timeout: 260 seconds]
01:48 -!- sumedhghaisas__ [~sumedh@188.74.64.245] has joined #mlpack
01:48 -!- sumedhghaisas_ [~sumedh@188.74.64.245] has quit [Read error: Connection reset by peer]
02:46 -!- kris1 [~kris@103.232.241.5] has quit [Quit: Leaving.]
02:46 -!- kris1 [~kris@103.232.241.5] has joined #mlpack
02:47 -!- tejank10 [3b6067ec@gateway/web/freenode/ip.59.96.103.236] has joined #mlpack
02:53 -!- kris1 [~kris@103.232.241.5] has quit [Ping timeout: 260 seconds]
03:26 -!- trapz [~jb^c@pool-173-48-120-163.bstnma.fios.verizon.net] has joined #mlpack
03:57 -!- trapz [~jb^c@pool-173-48-120-163.bstnma.fios.verizon.net] has quit [Quit: trapz]
06:09 -!- vinayakvivek [uid121616@gateway/web/irccloud.com/x-jirpowvfjkfqqlrv] has joined #mlpack
06:56 -!- Thyrix [2d4c4a21@gateway/web/freenode/ip.45.76.74.33] has joined #mlpack
07:14 -!- kesslerfrost [~textual@2405:204:18c:2092:65db:47bf:a639:2aa3] has joined #mlpack
07:15 -!- diehumblex [uid209517@gateway/web/irccloud.com/x-lsxrrzmcsvvpjqsl] has joined #mlpack
07:15 -!- mayank [73f8f80d@gateway/web/freenode/ip.115.248.248.13] has joined #mlpack
07:30 -!- kesslerfrost [~textual@2405:204:18c:2092:65db:47bf:a639:2aa3] has quit [Ping timeout: 246 seconds]
07:33 -!- kesslerfrost [~textual@2405:204:18c:2092:94a9:82a:4e7f:3b14] has joined #mlpack
07:36 -!- kesslerf_ [~textual@2405:204:18c:2092:88d9:f581:a87d:426a] has joined #mlpack
07:40 -!- kesslerfrost [~textual@2405:204:18c:2092:94a9:82a:4e7f:3b14] has quit [Ping timeout: 246 seconds]
07:42 -!- iamb_ [7ab11ae8@gateway/web/freenode/ip.122.177.26.232] has joined #mlpack
07:42 -!- iamb_ [7ab11ae8@gateway/web/freenode/ip.122.177.26.232] has quit [Client Quit]
07:50 -!- kessler__ [~textual@2405:204:18c:2092:b55b:1e9c:44f:a1da] has joined #mlpack
07:53 -!- kesslerf_ [~textual@2405:204:18c:2092:88d9:f581:a87d:426a] has quit [Ping timeout: 246 seconds]
07:54 -!- tejank10 [3b6067ec@gateway/web/freenode/ip.59.96.103.236] has quit [Quit: Page closed]
07:55 -!- kesslerfrost [~textual@2405:204:18c:2092:d41d:4da3:12e7:aac3] has joined #mlpack
07:58 -!- arunreddy [~arunreddy@149-169-244-204.nat.asu.edu] has quit [Ping timeout: 252 seconds]
07:59 -!- kessler__ [~textual@2405:204:18c:2092:b55b:1e9c:44f:a1da] has quit [Ping timeout: 246 seconds]
08:00 -!- kesslerf_ [~textual@2405:204:18c:2092:d071:51d6:a768:8a40] has joined #mlpack
08:01 -!- kesslerfrost [~textual@2405:204:18c:2092:d41d:4da3:12e7:aac3] has quit [Ping timeout: 246 seconds]
08:06 -!- arunreddy [~arunreddy@149-169-244-204.nat.asu.edu] has joined #mlpack
08:12 -!- hxidkd [a8eb4fb9@gateway/web/freenode/ip.168.235.79.185] has joined #mlpack
08:12 -!- hxidkd [a8eb4fb9@gateway/web/freenode/ip.168.235.79.185] has quit [Client Quit]
08:13 -!- kesslerfrost [~textual@2405:204:18c:2092:10f2:ae3b:802a:b3a2] has joined #mlpack
08:15 -!- aman11dh [95a9d592@gateway/web/freenode/ip.149.169.213.146] has quit [Ping timeout: 260 seconds]
08:16 -!- kesslerf_ [~textual@2405:204:18c:2092:d071:51d6:a768:8a40] has quit [Ping timeout: 246 seconds]
08:17 -!- arunreddy [~arunreddy@149-169-244-204.nat.asu.edu] has quit [Ping timeout: 246 seconds]
08:22 -!- kesslerfrost [~textual@2405:204:18c:2092:10f2:ae3b:802a:b3a2] has quit [Ping timeout: 246 seconds]
08:23 -!- arunreddy [~arunreddy@149-169-133-74.nat.asu.edu] has joined #mlpack
08:41 -!- qdqds [6725c94b@gateway/web/freenode/ip.103.37.201.75] has quit [Ping timeout: 260 seconds]
08:47 -!- govg [~govg@unaffiliated/govg] has quit [Ping timeout: 256 seconds]
09:03 -!- drewtran [4b8e60c6@gateway/web/freenode/ip.75.142.96.198] has quit [Quit: Page closed]
09:06 -!- kesslerfrost [~textual@2405:204:18c:2092:bc48:6af6:e3b:4432] has joined #mlpack
09:13 -!- kesslerf_ [~textual@2405:204:18c:2092:2c13:5e5f:eb18:5295] has joined #mlpack
09:16 -!- kesslerfrost [~textual@2405:204:18c:2092:bc48:6af6:e3b:4432] has quit [Ping timeout: 246 seconds]
09:36 -!- kesslerf_ is now known as kesslerrost
09:36 -!- kesslerrost is now known as kesslerfrost
10:22 -!- dashwood [9d3206cd@gateway/web/freenode/ip.157.50.6.205] has joined #mlpack
10:23 < dashwood> i have a question...in the linear_regression_main.cpp
10:23 < dashwood> PROGRAM_INFO("...");
10:23 < dashwood> PARAM_MATRIX_IN("training", "Matrix containing training set X (regressors).", "t"); PARAM_MATRIX_IN("training_responses", "Optional matrix containing y " "(responses). If not given, the responses are assumed to be the last row " "of the input file.", "r");
10:23 < dashwood> what are these functions exactly?
10:23 < dashwood> could someone explain?
10:46 -!- sumedhghaisas__ [~sumedh@188.74.64.245] has quit [Ping timeout: 260 seconds]
10:50 < dashwood> guys?
10:52 -!- chvsp [cb6ef207@gateway/web/freenode/ip.203.110.242.7] has joined #mlpack
11:37 < Thyrix> dashwood: macros to parse parameters of main()
11:41 < Thyrix> just take it as a special grammar in mlpack is ok
11:43 -!- kesslerfrost [~textual@2405:204:18c:2092:2c13:5e5f:eb18:5295] has quit [Quit: kesslerfrost]
12:04 -!- dashwood [9d3206cd@gateway/web/freenode/ip.157.50.6.205] has quit [Quit: Page closed]
12:07 -!- trapz [~jb^c@pool-173-48-120-163.bstnma.fios.verizon.net] has joined #mlpack
12:16 -!- trapz [~jb^c@pool-173-48-120-163.bstnma.fios.verizon.net] has quit [Quit: trapz]
12:18 -!- Vidyut_ [3d0c4bd1@gateway/web/freenode/ip.61.12.75.209] has joined #mlpack
12:19 -!- Vidyut_ [3d0c4bd1@gateway/web/freenode/ip.61.12.75.209] has left #mlpack []
12:19 -!- Raman [3d0c4bd1@gateway/web/freenode/ip.61.12.75.209] has joined #mlpack
12:20 < Raman> Hey!
12:20 < Raman> Can anyone help me get started?
12:21 -!- trapz [~jb^c@pool-173-48-120-163.bstnma.fios.verizon.net] has joined #mlpack
12:53 < Thyrix> Raman: Hi, which idea do your prefer?
13:13 -!- snd_ [67e16744@gateway/web/freenode/ip.103.225.103.68] has joined #mlpack
13:37 -!- trapz [~jb^c@pool-173-48-120-163.bstnma.fios.verizon.net] has quit [Quit: trapz]
13:41 -!- sheogorath27 [sheogorath@gateway/shell/firrre/x-qhfqwaxdapwulrqy] has joined #mlpack
13:45 -!- savan77 [67016476@gateway/web/freenode/ip.103.1.100.118] has joined #mlpack
13:47 -!- Thyrix [2d4c4a21@gateway/web/freenode/ip.45.76.74.33] has quit [Quit: Page closed]
13:51 -!- sumedhghaisas__ [~sumedh@pat-131-251.wlan.net.ed.ac.uk] has joined #mlpack
13:55 -!- savan77 [67016476@gateway/web/freenode/ip.103.1.100.118] has quit [Quit: Page closed]
14:04 -!- Raman [3d0c4bd1@gateway/web/freenode/ip.61.12.75.209] has quit [Ping timeout: 260 seconds]
14:17 -!- thyrix [2d4c4a21@gateway/web/freenode/ip.45.76.74.33] has joined #mlpack
14:37 -!- __gk_1wm_su_-_-- [~111111111@91.219.238.174] has joined #mlpack
14:38 -!- __gk_1wm_su_-_-- [~111111111@91.219.238.174] has left #mlpack []
15:06 -!- chvsp [cb6ef207@gateway/web/freenode/ip.203.110.242.7] has quit [Ping timeout: 260 seconds]
15:24 -!- chvsp [cb6ef208@gateway/web/freenode/ip.203.110.242.8] has joined #mlpack
15:28 -!- xsdfas [0e8b5206@gateway/web/freenode/ip.14.139.82.6] has joined #mlpack
15:30 -!- xsdfas [0e8b5206@gateway/web/freenode/ip.14.139.82.6] has quit [Client Quit]
15:33 -!- snd_ [67e16744@gateway/web/freenode/ip.103.225.103.68] has quit [Ping timeout: 260 seconds]
15:46 -!- kris1 [~kris@103.232.241.5] has joined #mlpack
15:53 < kris1> can't figure this out
15:53 < kris1> https://gist.github.com/kris-singh/c0b3a01509b20f10841fae117b8e3baa
16:14 -!- thyrix [2d4c4a21@gateway/web/freenode/ip.45.76.74.33] has quit [Quit: Page closed]
16:41 -!- chvsp [cb6ef208@gateway/web/freenode/ip.203.110.242.8] has quit [Ping timeout: 260 seconds]
16:48 -!- mentekid [~mentekid@cpc92878-cmbg18-2-0-cust813.5-4.cable.virginm.net] has joined #mlpack
16:49 -!- kris1 [~kris@103.232.241.5] has left #mlpack []
16:53 -!- mentekid [~mentekid@cpc92878-cmbg18-2-0-cust813.5-4.cable.virginm.net] has quit [Ping timeout: 240 seconds]
16:57 -!- chvsp [cb6ef206@gateway/web/freenode/ip.203.110.242.6] has joined #mlpack
17:07 -!- govg [~govg@unaffiliated/govg] has joined #mlpack
17:09 -!- vivekp [~vivek@unaffiliated/vivekp] has quit [Ping timeout: 246 seconds]
17:16 -!- chvsp_ [cb6ef215@gateway/web/freenode/ip.203.110.242.21] has joined #mlpack
17:16 -!- chvsp [cb6ef206@gateway/web/freenode/ip.203.110.242.6] has quit [Ping timeout: 260 seconds]
17:32 -!- chvsp_ [cb6ef215@gateway/web/freenode/ip.203.110.242.21] has quit [Quit: Page closed]
17:42 -!- kris1 [~kris@103.232.241.5] has joined #mlpack
17:52 -!- vivekp [~vivek@unaffiliated/vivekp] has joined #mlpack
17:59 -!- chvsp [cb6ef214@gateway/web/freenode/ip.203.110.242.20] has joined #mlpack
18:04 < kris1> This is a good article just wanted to share it.
18:04 < kris1> http://eli.thegreenplace.net/2014/sfinae-and-enable_if/
18:11 < kris1> typename std::enable_if<HasParametersCheck<T, P&(T::*)()>::value, size_t>::type. So this statment basically means that if the Typename has the Parameteres type it would evaluate to true and basically this would be equivalent to typename size_t. Am i correct
18:13 < kris1> tyename size_t funct(T* layer)
18:23 -!- snd [76b919a1@gateway/web/freenode/ip.118.185.25.161] has joined #mlpack
18:33 -!- snd [76b919a1@gateway/web/freenode/ip.118.185.25.161] has quit [Ping timeout: 260 seconds]
18:34 -!- mayank [73f8f80d@gateway/web/freenode/ip.115.248.248.13] has quit [Ping timeout: 260 seconds]
18:34 -!- snd [76b919a1@gateway/web/freenode/ip.118.185.25.161] has joined #mlpack
18:39 -!- chvsp [cb6ef214@gateway/web/freenode/ip.203.110.242.20] has quit [Quit: Page closed]
18:51 -!- tejank10 [3b6067ec@gateway/web/freenode/ip.59.96.103.236] has joined #mlpack
18:52 -!- shihao [407978c3@gateway/web/freenode/ip.64.121.120.195] has joined #mlpack
19:21 -!- tejank10 [3b6067ec@gateway/web/freenode/ip.59.96.103.236] has quit [Ping timeout: 260 seconds]
19:32 < kris1> zoq: can you help me out with this one i am stuck. https://gist.github.com/kris-singh/c0b3a01509b20f10841fae117b8e3baa
19:36 < kris1> i don't understand 2 things. 1. in operator function we call LayerFanIN(layer). but shouldn't we call it like LayerFanIn<sometype>(layer). 2. The error with P the compiler says it type can be deduced why is that according to your previous explnation it would.
19:37 < kris1> Thanks in advance. Please have a look when you have time.
19:37 -!- kris1 [~kris@103.232.241.5] has left #mlpack []
20:17 < arunreddy> ls
20:17 < arunreddy> clear
20:17 < arunreddy> ls
20:18 < arunreddy> bash
20:18 < arunreddy> vi ~/.bashrc
20:18 < arunreddy> sorry.
20:20 -!- drewtran [4b8e60c6@gateway/web/freenode/ip.75.142.96.198] has joined #mlpack
20:34 -!- drewtran [4b8e60c6@gateway/web/freenode/ip.75.142.96.198] has quit [Ping timeout: 260 seconds]
20:35 < govg> Hahaha.
20:35 < govg> arunreddy: Forgot which terminal it was?
20:35 -!- chvsp [cb6ef216@gateway/web/freenode/ip.203.110.242.22] has joined #mlpack
20:41 < arunreddy> yup. may be i should theme my wechat for it standout. :)
20:42 < arunreddy> *weechat
20:48 < govg> How come you use vi and not vim?
20:48 < govg> Or is it aliased :)
21:03 -!- snd [76b919a1@gateway/web/freenode/ip.118.185.25.161] has quit [Ping timeout: 260 seconds]
21:26 -!- drewtran [4b8e60c6@gateway/web/freenode/ip.75.142.96.198] has joined #mlpack
21:51 < arunreddy> ls
21:52 < arunreddy> govg:yeah, it is aliased. saves some time!
21:59 -!- Papad [2506a3d5@gateway/web/freenode/ip.37.6.163.213] has joined #mlpack
22:01 < Papad> Hello everyone
22:01 < Papad> Ι installed mlpack and the tcp for communicating with gym environment
22:02 < Papad> I tried to modify the example using mlpack classes
22:03 < Papad> I added -lmlpack flag in cmake
22:03 < Papad> But when I try to compile it return undefined reference
22:04 < Papad> Does anyone know the solution to this problem?
22:04 -!- Papad [2506a3d5@gateway/web/freenode/ip.37.6.163.213] has quit [Quit: Page closed]
22:12 < arunreddy> papad: did you point the server to the localhost(127.0.0.1) ?
22:25 -!- vinayakvivek [uid121616@gateway/web/irccloud.com/x-jirpowvfjkfqqlrv] has quit [Quit: Connection closed for inactivity]
22:33 -!- mayank [73f8f80d@gateway/web/freenode/ip.115.248.248.13] has joined #mlpack
22:33 < mayank> i built mlpack, and it created the /include folder within the build folder. i used g++ -I/directory, but cannot link the hpp files to their cpp files. any suggestions ?
22:46 < arunreddy> mayank: did you build it using make ?
22:46 < mayank> yes
22:46 < mayank> after cmake ../
22:47 < arunreddy> what do you mean by cannot link hpp files to their cpp files?
22:48 < arunreddy> mayank:
22:49 < mayank> i found a folder named "include" inside build. It contained all the header files for mlpack. I included this path while compiling a sample code.
22:50 < mayank> It showed that the functions inside the code were unreferenced. That means it could not find their cpp implementations.
22:51 < mayank> Those implementations are in another folder. I am not able to link the hpp file in "include" to their implementations in "src" folder.
22:51 < arunreddy> mayank: Make sure the libmlpack is in your LIBRARY_PATH when compiling..
22:57 < zoq> mayank: You have to link against mlpack, either include the mlpack directory in your LIBRARY_PATH as arunreddy said or specify the path:
22:57 < zoq> so either:
22:57 < zoq> g++ example.cpp -std=c++11 -I/path/to/mlpack/build/include/ -lmlpack
22:57 < zoq> or
22:57 < zoq> g++ example.cpp -std=c++11 -I/path/to/mlpack/build/include/ /path/to/mlpack/build/lib/libmlpack.so
22:58 < mayank> if i make some change to a cpp implementation, how will that be reflected in libmlpack.so
23:00 < zoq> Not sure what you mean; are you talking about changing an mlpack file or your own external code?
23:01 < mayank> changing an mlpack file. inside the src directory
23:01 < arunreddy> zoq: Hey, if you are not sleepy: https://gist.github.com/arunreddy/4e67cb4a34a97d8f53f76fe673188214
23:02 < zoq> Just call 'make' again and you end up with an updated version including libmlpack.so.
23:02 < arunreddy> zoq: If you are hitting bed, take a look later.
23:03 < mayank> thanks a lot zoq and arunreddy
23:03 -!- mayank [73f8f80d@gateway/web/freenode/ip.115.248.248.13] has quit [Quit: Page closed]
23:18 < zoq> hm, I think the error message isn't for LogisticRegression<StandardSGD<LogisticRegressionFunction>> lr(sgd);? In that case it should fail because of a missing template for LogisticRegressionFunction it should be LogisticRegressionFunction<>?
23:18 < rcurtin> ooh, I forgot to check the SO question for answers
23:18 < rcurtin> (sorry to jump in late, I just got to a computer now)
23:19 < rcurtin> http://stackoverflow.com/questions/42585722/are-gcc-and-clang-not-properly-inferring-template-alias-types/42586005#42586005
23:19 < rcurtin> I think maybe I will try and look at the standard after I try and dig myself out from the huge backlog of emails and issues
23:20 < rcurtin> but if Barry is right there then I guess we have to be explicit about the template argument
23:20 < zoq> or just use variadic template :)
23:20 < rcurtin> or adapt the code to use variadic ...
23:20 < rcurtin> yeah, exactly! :)
23:21 < arunreddy> zoq: The error message is for the default case. When using LogisticRegression<> lr(sgd);
23:24 < arunreddy> rcurtin, zoq: Do you want me to make changes to the SGD and use Variadic templates?
23:24 < rcurtin> arunreddy: sure, but let's keep that in a separate PR if that's ok, it makes it a lot easier to review and merge (in my opinion at least)
23:25 < zoq> arunreddy: Can you test it with LogisticRegression<StandardSGD<LogisticRegressionFunction<> >> lr(sgd); instead of LogisticRegression<StandardSGD<LogisticRegressionFunction>> lr(sgd);?
23:26 < zoq> I think if that dosn't work, that's probably another error that can't be solved without modifiying the code (e.g. by using variadic templates)
23:27 -!- kris1 [~kris@103.232.241.5] has joined #mlpack
23:27 < arunreddy> zoq: It fails again, Updated the gist here.. https://gist.github.com/arunreddy/4e67cb4a34a97d8f53f76fe673188214
23:28 < arunreddy> rcurtin: If we are going to use variadic templates, there are going to be changes at different areas of the codebase. Regularized SVD, Logistic Regression and RNN.
23:28 < rcurtin> arunreddy: I'm confused... why are you specifying StandardSGD as a template parameter to the LogisticRegression class?
23:29 < rcurtin> instead the template parameter for LogisticRegression is the MatType (which should be arma::mat in your case)
23:29 < rcurtin> and the optimizer type should be specified to the Train() function
23:29 < rcurtin> i.e. lr.Train<StandardSGD<...>>(sgd)
23:29 < rcurtin> or even lr.Train<decltype(sgd)>(sgd)
23:29 < rcurtin> (I think I have the syntax right in the second one, but I'm not sure)
23:30 < zoq> I think he like to use:
23:30 < zoq> template<template<typename> class OptimizerType>
23:30 < zoq> LogisticRegression(
23:30 < zoq> OptimizerType<LogisticRegressionFunction<MatType>>& optimizer);
23:30 < zoq> That's another constructor
23:31 < arunreddy> rcurtin: I am working on the test "LogisticRegressionSGDRegularizationSimpleTest"
23:31 < arunreddy> Line 550 in https://github.com/mlpack/mlpack/blob/master/src/mlpack/tests/logistic_regression_test.cpp
23:31 < rcurtin> zoq: right, sorry, I misread the snippet
23:32 < zoq> rcurtin: ah, I see what you mean, the first template MatType
23:32 < arunreddy> as zoq: pointed out, it uses a different constructor.
23:32 < rcurtin> this should be
23:32 < rcurtin> LogisticRegression<> lr<decltype(sgd)>(sgd);
23:32 < rcurtin> I think?
23:32 < zoq> yes, that's the correct one
23:33 < zoq> totally missed: template<typename MatType = arma::mat>
23:34 < arunreddy> Am I missing something here?
23:34 < arunreddy> LogisticRegression<> lr<decltype(sgd)>(sgd);
23:35 < arunreddy> logistic_regression_test.cpp:512:26: error: expected ';' at end of declaration
23:35 < arunreddy> LogisticRegression<> lr<decltype(sgd)>(sgd);
23:35 < arunreddy> y
23:36 < rcurtin> I'm not sure what the exact syntax is for instantiating a template class with a template constructor
23:36 < rcurtin> I'm not actually sure that's a thing I've ever done
23:36 < rcurtin> maybe searching around stackoverflow might give you the answer for what the correct syntax is...
23:37 < arunreddy> ok.
23:42 < zoq> kris1: Checkout out my comment in https://gist.github.com/kris-singh/c0b3a01509b20f10841fae117b8e3baa
23:46 < kris1> zoq: i asked a few doubts earlier if you clear them out it would be great. Thanks for the gist i was thinking along the same lines.
23:50 < zoq> kris1: You are right about the enable_if construct, and just took a quick look at the website and I think it looks good; http://shaharmike.com/cpp/sfinae/ is the one linked on the gsoc page
23:52 < kris1> zoq: i still don't get this  1. in operator function we call LayerFanIN(layer). but shouldn't we call it like LayerFanIn<sometype>(layer). 
23:52 < zoq> About LayerFanIn<sometype>(layer) yes, that's basically what we did, you could also use: LayerFanIn<decltype(layer->OutputParameter()>(layer);
23:52 < chvsp> rcurtin: Kindly have a look at my PR. I have made the necessary changes so that arff file loader is case insensitive and added a test as well
23:53 < zoq> kris1: If we pass layer->OutputParameter() as second parameter, the compiler has to figure out the type for us.
23:54 < zoq> kris1: So that P is the type of layer->OutputParameter().
23:54 < rcurtin> chvsp: I have a thousand emails to answer, I will look at it when I get to it
23:55 < rcurtin> no need to remind me, it is already in the queue
23:55 < rcurtin> "a thousand" may be an exaggeration but it sure does feel that way
23:55 < chvsp> rcurtin: I understand... :)
--- Log closed Mon Mar 06 00:00:02 2017