IRC logs of #shogun for Friday, 2019-02-01

--- Log opened Fri Feb 01 00:00:52 2019
-!- durovo1 [~durovo@7b.78.2ea9.ip4.static.sl-reverse.com] has joined #shogun00:01
-!- durovo [~durovo@79.73.2ea9.ip4.static.sl-reverse.com] has quit [Remote host closed the connection]00:01
-!- besser82 [~besser82@fedora/besser82] has quit [Quit: Freedom, Friends, Features, First [fedoraproject.org]]00:46
-!- besser82 [~besser82@fedora/besser82] has joined #shogun00:48
-!- mode/#shogun [+o besser82] by ChanServ00:48
-shogun-buildbot:#shogun- Build nightly_default #204 is complete: Success [build successful] - http://buildbot.shogun-toolbox.org:8080/#builders/17/builds/20409:11
-!- braceletboy [67157d53@gateway/web/freenode/ip.103.21.125.83] has joined #shogun10:19
-!- besser82 [~besser82@fedora/besser82] has quit [Quit: Freedom, Friends, Features, First [fedoraproject.org]]10:24
-!- besser82 [~besser82@fedora/besser82] has joined #shogun10:25
-!- mode/#shogun [+o besser82] by ChanServ10:25
-!- braceletboy35 [67157d53@gateway/web/cgi-irc/kiwiirc.com/ip.103.21.125.83] has joined #shogun10:48
-!- braceletboy35 [67157d53@gateway/web/cgi-irc/kiwiirc.com/ip.103.21.125.83] has left #shogun []10:50
-!- braceletboy [67157d53@gateway/web/freenode/ip.103.21.125.83] has left #shogun []10:50
-!- braceletboy35 [67157d53@gateway/web/cgi-irc/kiwiirc.com/ip.103.21.125.83] has joined #shogun10:52
-!- braceletboy35 is now known as braceletboy10:52
braceletboywuwei[m] are you around?11:00
wuwei[m]braceletboy: hi11:00
braceletboyWhat's the difference between the get_real_matrix and get() functions?11:01
braceletboy**gets11:01
wuwei[m]get is a template, so in swig we have several specialization11:02
wuwei[m]see shogun.i11:02
braceletboySo, is the get_real_matrix a part of the old API right?11:04
braceletboyfor getter functions11:05
wuwei[m]no get_real_matrix is actually part of the new tag api11:05
wuwei[m]in swig, we cant have template functions11:05
braceletboyBut the tags readme that you referenced in the issue talks only about the gets function. So, I got confused11:06
wuwei[m]see https://github.com/shogun-toolbox/shogun/blob/1e369eafda5c6535c7c87ed12070b679f16deb74/src/interfaces/swig/shogun.i#L23411:07
wuwei[m]get_real_matrix is the same as get11:08
braceletboyOkay. Thanks alot :)11:08
braceletboy!11:08
-!- gf712 [9052084e@gateway/web/freenode/ip.144.82.8.78] has joined #shogun11:26
-!- Lefteris [836fb90d@gateway/web/freenode/ip.131.111.185.13] has left #shogun []12:31
-!- Lefteris [836fb90d@gateway/web/freenode/ip.131.111.185.13] has joined #shogun12:31
-!- Lefteris [836fb90d@gateway/web/freenode/ip.131.111.185.13] has quit [Quit: Page closed]13:53
-!- gf712 [9052084e@gateway/web/freenode/ip.144.82.8.78] has quit [Ping timeout: 256 seconds]13:58
-!- gf712 [9052084e@gateway/web/freenode/ip.144.82.8.78] has joined #shogun14:16
-!- Lefteris [836fb90d@gateway/web/freenode/ip.131.111.185.13] has joined #shogun14:36
-!- Lefteris [836fb90d@gateway/web/freenode/ip.131.111.185.13] has quit [Quit: Page closed]15:25
-!- Lefteris [836fb90d@gateway/web/freenode/ip.131.111.185.13] has joined #shogun15:25
-!- Lefteris [836fb90d@gateway/web/freenode/ip.131.111.185.13] has quit [Client Quit]15:28
-!- Lefteriss [~lefteris@2a05:b400:100:100:999d:d632:891b:81e2] has joined #shogun15:29
-!- Lefteriss [~lefteris@2a05:b400:100:100:999d:d632:891b:81e2] has quit [Client Quit]15:30
-!- Lefteris [~lefteris@2a05:b400:100:100:999d:d632:891b:81e2] has joined #shogun15:30
-!- HeikoS [5aae0410@gateway/web/cgi-irc/kiwiirc.com/ip.90.174.4.16] has joined #shogun16:13
gf712HeikoS: hi, how are you?16:16
HeikoSgf712 hey all good16:16
HeikoSwatching some nerdy deep mind videos :)16:16
gf712I have a weird python error happening with shogun16:16
gf712haha16:16
gf712the Starcraft one?16:16
HeikoSyes16:17
HeikoSused to be a big fan16:17
HeikoSwhats the error?16:17
gf712never tried.. so can their AI play it properly?16:17
gf712I am trying to catch a shogun exception inside swig16:18
gf712but when I catch an exception and return a value, rather than throw that exception I get this error16:18
gf712returned a result with an error set16:18
gf712basically I am trying to check if a parameter is a sgobject16:19
HeikoSthey consistently beat the worlds better players16:19
gf712so I call $self->get(name); to check if it returns something that is not nullptr16:19
HeikoSok16:20
gf712but because get raises an exception I need to catch it16:20
HeikoSshogun c++ exception within .i file swig c++ code you mean?16:20
gf712yes16:20
HeikoSlet me understand16:20
HeikoSwhat would be the error msg of the get?16:20
gf712https://pastebin.com/zua2eDqc16:21
gf712this is inside the extend block of SGObject in SGBase.i16:21
gf712and I get an error like this https://pastebin.com/XNLtiJ1816:22
gf712seems to be related to some change in Python3.5 in the way exceptions are handled from the little I found online on this subject..16:23
HeikoSuh16:23
HeikoSno idea16:23
HeikoSbut maybe what you are doing can be done differently16:23
HeikoSI have some questions16:24
HeikoSwhy would a successful .get mean that something is an object parameter?16:24
gf712the issue is that I found at least another block of code that catches shogun exceptions and it probably wouldn't work either16:24
HeikoSyeah, maybe this could be done without exceptions16:25
gf712because it is then either CDistance or CKernel16:25
gf712right?16:25
HeikoSbut what if you do16:25
HeikoSsvm.parameter_is_sg_base("C")?16:26
-!- bbc_ [67f98750@gateway/web/freenode/ip.103.249.135.80] has joined #shogun16:26
HeikoSI actually have an idea16:26
HeikoSwhy not add a global templated ethod16:26
HeikoSbool is_sg_base<T>()16:26
HeikoSand then do a16:26
HeikoSah wait16:27
HeikoSno :)16:27
gf712yes, I thought that first16:27
gf712but everything is any16:27
gf712at least I think that's where you were going?16:28
HeikoSyes16:28
HeikoSso16:28
HeikoSsvm.parameter_is_sg_base("C")?16:28
HeikoSthis would return a true as well or?16:28
gf712No, that should return false16:28
gf712but instead I get this weird error16:28
HeikoS$self->get(name);16:29
HeikoShow does this know what the template type is?16:29
HeikoSwhich get method does it call?16:30
gf712but isn't there only one get(const std::string&) ?16:30
gf712it uses the definition at the end of SGObject.cpp16:31
HeikoSah this one16:32
HeikoSok16:32
HeikoSgot you now16:32
HeikoSand this is supposed to handle all base classes16:32
HeikoSyou could just put the dispatching into a helpe that is called has_sg_object or something and then use that from the get16:33
gf712yes, I could do that. I was going to create a std::no_throw_t overload, but I wasn't sure how to write it16:34
HeikoSthat is probably neater :)16:34
HeikoSbut I don't know how it would work16:34
HeikoSand the error seems weird16:35
HeikoSprobably swig stuff16:35
gf712yes the error is very weird16:35
gf712I don't think it's swig though16:35
gf712I think it's python16:35
HeikoSah even better :D16:35
gf712I will try it out in R and see if it gets confused too16:35
HeikoSR might not work16:36
HeikoSmaybe use octave16:36
HeikoSR has issues16:36
gf712ah yes I can see16:38
HeikoSdid you try google this?16:39
HeikoScatching exceptions from %extend?16:40
gf712yes, a bit16:40
gf712but I coudnt find any examples of it16:40
gf712I just found the %exception stuff16:41
gf712I also tried to compile without it to see what happens16:41
gf712and I get the same error16:41
gf712I messed around with the shogunPYTHON_wrap.cxx16:41
gf712added lots of messages16:41
gf712and the data is there16:42
gf712but python detects that there should be an exception16:42
gf712but a value is returned16:42
gf712and then gets confused16:42
HeikoSlol16:43
gf712there must be some internal error state in python that can't be avoided even with a catch16:43
HeikoSfunny16:43
HeikoSyeah16:43
gf712so I am thinking this might not work as expected https://github.com/shogun-toolbox/shogun/blob/develop/src/interfaces/swig/SGBase.i#L49616:44
gf712but I haven't tried compiling shogun without hdf5 support to test it16:45
gf712this is also all on my Mac16:45
gf712on python 3.616:46
HeikoSno idea about this old code :)16:52
HeikoSwould need to find a test/build that uses it16:52
-!- bbc_ [67f98750@gateway/web/freenode/ip.103.249.135.80] has quit [Ping timeout: 256 seconds]16:53
gf712hmm I'll see what octave says16:56
gf712HeikoS do you know yet what day the ws will be?16:57
gf712I would probably only be able to make it to the first weekend you suggested16:57
HeikoSjust talked to viktor earlier today and I think we were going for the second16:58
HeikoSbut if you cannot make that16:58
HeikoSpls send an email to viktor now16:58
HeikoSsince already a few cannot make it so we can easily shift dates16:58
HeikoSas it didnt matter too much i think16:58
gf712OK16:58
gf712btw are you coming to London next month too?16:58
gf712Lefteris btw Viktor is coming to the ATI on the 19-20 Feb if you are free and want to join?16:59
LefterisSure!17:02
LefterisSend an email when you know the details (time, etc.) and I will come17:03
HeikoSLefteris do you also want to join the ws btw?17:03
HeikoSworkshop17:04
gf712Lefteris yup, I'll book a room and send you the details17:04
LefterisThat one in Spain? Yes, I replied to Victor. Both dates are fine for me. I am just waiting for the selected dates to book tickets, etc17:05
HeikoSok cool17:05
HeikoSwe were thinking about the second date but now gf712 may only make the first17:05
Lefterisok, no problem for me17:05
wuwei[m]HeikoS: hey17:12
HeikoSyo17:12
wuwei[m]auto combined_features = wrap(features("CombinedFeatures"));17:12
wuwei[m]this doesn't work :)17:13
wuwei[m]shall we add some factory for features?17:13
HeikoSyes need that17:14
HeikoSgood point17:14
HeikoSbut type should be CFeatures still17:14
wuwei[m]yeah sure17:14
LefterisHeikoS I pushed the changes for the octave typemap, let me know if there is anything else is needed17:16
LefterisHeikoS I pushed the changes for the octave typemap, let me know if anything else is needed17:16
Lefterisdamn there is no edit17:16
Lefteris:P17:16
-!- bbc_ [67f98750@gateway/web/freenode/ip.103.249.135.80] has joined #shogun17:17
bbc_Hello i am new open source and shogun i want to work on issue #4259 it involves changing code in CKernel I am not able to locate Ckernel can someone help17:19
HeikoSbbc_ Kernel.h :D17:20
HeikoSwuwei[m] check your email17:22
wuwei[m]awesome!17:23
HeikoSI will write to the lists and stuff later17:23
bbc_Thankyou for the help @HeikoS and one more question should i change the code as shown on the issue page or does it involves to change anything else also , sorry for this type of questions i am new to open source17:25
HeikoSbbc_ check our wiki, there is a page for "getting involved" that should answer all your questions17:26
HeikoSit also tells you how to make changes and send them to us17:26
bbc_Thanks @HeikoS i am currently going through getting involved page17:27
HeikoSbbc_ cool, good luck and let us know if you need any help17:28
bbc_ok17:28
gf712HeikoS just tried octave17:31
gf712so it shows an error17:32
gf712but there is variable assignment17:32
HeikoSmabe it is some swig generated code then?17:32
HeikoSthat causes the target langs to hikcup17:32
gf712hmm not sure what is happening17:34
gf712I'll ask in swig what they think17:35
HeikoSgood idea!17:44
-!- HeikoS [5aae0410@gateway/web/cgi-irc/kiwiirc.com/ip.90.174.4.16] has quit [Ping timeout: 272 seconds]17:58
-shogun-buildbot:#shogun- Build deb3 - interfaces #412 is complete: Failure [failed configure (failure)] - http://buildbot.shogun-toolbox.org:8080/#builders/37/builds/41218:02
-!- gf712 [9052084e@gateway/web/freenode/ip.144.82.8.78] has quit [Ping timeout: 256 seconds]18:06
-!- HeikoS [5067884f@gateway/web/cgi-irc/kiwiirc.com/ip.80.103.136.79] has joined #shogun18:30
-!- Lefteris [~lefteris@2a05:b400:100:100:999d:d632:891b:81e2] has quit [Quit: Leaving]18:40
-!- HeikoS [5067884f@gateway/web/cgi-irc/kiwiirc.com/ip.80.103.136.79] has quit [Ping timeout: 250 seconds]18:41
-!- gf712 [560fc4e5@gateway/web/freenode/ip.86.15.196.229] has joined #shogun19:04
-!- gf712 [560fc4e5@gateway/web/freenode/ip.86.15.196.229] has quit [Ping timeout: 256 seconds]19:40
-!- bbc_ [67f98750@gateway/web/freenode/ip.103.249.135.80] has quit [Quit: Page closed]20:55
-!- braceletboy [67157d53@gateway/web/cgi-irc/kiwiirc.com/ip.103.21.125.83] has quit [Remote host closed the connection]23:04
--- Log closed Sat Feb 02 00:00:53 2019

Generated by irclog2html.py 2.10.0 by Marius Gedminas - find it at mg.pov.lt!