Open in new window / Try shogun cloud
--- Log opened Mon May 16 00:00:58 2016
-!- leagoetz [~leagoetz@host-92-0-162-192.as43234.net] has joined #shogun02:48
-!- leagoetz [~leagoetz@host-92-0-162-192.as43234.net] has quit [Ping timeout: 260 seconds]02:52
-!- Saurabh7 [Saurabh7@gateway/shell/panicbnc/x-udvywipalculvqrs] has quit [Ping timeout: 260 seconds]03:39
-!- Saurabh7 [Saurabh7@gateway/shell/panicbnc/x-iiwpoeherivwinjy] has joined #shogun03:39
-!- leagoetz [~leagoetz@host-92-0-162-192.as43234.net] has joined #shogun04:48
-!- leagoetz [~leagoetz@host-92-0-162-192.as43234.net] has quit [Ping timeout: 265 seconds]04:52
-!- mizari [~mizari@95-174-213-100.nts.su] has joined #shogun05:05
-!- sanuj [~sanuj@117.203.5.27] has joined #shogun06:06
-!- leagoetz [~leagoetz@host-92-0-162-192.as43234.net] has joined #shogun06:48
-!- leagoetz [~leagoetz@host-92-0-162-192.as43234.net] has quit [Ping timeout: 260 seconds]06:52
-!- leagoetz [~leagoetz@host-92-0-162-192.as43234.net] has joined #shogun07:47
-!- leagoetz [~leagoetz@host-92-0-162-192.as43234.net] has quit [Ping timeout: 244 seconds]07:52
shogun-buildbotbuild #214 of FC22 - libshogun is complete: Failure [failed test]  Build details are at http://buildbot.shogun-toolbox.org/builders/FC22%20-%20libshogun/builds/214  blamelist: Wu Lin <yorker.lin@gmail.com>08:05
shogun-buildbotbuild #2862 of bsd1 - libshogun is complete: Failure [failed configure]  Build details are at http://buildbot.shogun-toolbox.org/builders/bsd1%20-%20libshogun/builds/2862  blamelist: Wu Lin <yorker.lin@gmail.com>08:07
sanujlisitsyn, ping09:37
lisitsynsanuj: hey09:40
sanujthis is fine right?09:40
sanujhttps://github.com/sanuj/swig-tutorial/tree/master/tutorial-309:40
sanujmy toy swig interfaces for template09:41
lisitsynsanuj: yeah looks ok09:41
lisitsynsanuj: there is no python example though09:41
lisitsyndid you manage to make it work?09:42
sanujyeah09:42
sanujbuild it setup.py09:42
sanujimport square09:42
sanujsq = square.SquareInt(5)09:42
sanujsq.area()09:42
sanuj= 2509:42
sanuj:P09:42
sanujall this is working09:42
lisitsynok cool09:43
lisitsynnow should be easy to make tag thing work :)09:43
sanujyes i'll move on to that now09:43
sanujthis turned out to be easier than i thought09:43
sanuj:)09:43
-!- leagoetz [~leagoetz@host-92-0-162-192.as43234.net] has joined #shogun09:47
-!- leagoetz [~leagoetz@host-92-0-162-192.as43234.net] has quit [Ping timeout: 265 seconds]09:52
sanujlisitsyn, still there?09:59
lisitsynsanuj: yes09:59
sanujin my prototype10:00
sanuji'm using tags to get instead of string10:00
sanujwe had discussed this earlier i guess10:00
sanujhttps://github.com/sanuj/shogun-plugin-arch/blob/master/tags-string/src/shogun/SGObject.hpp10:01
sanujcan't we infer the type from the argument tag instead of casting it10:02
sanujlisitsyn, ^10:04
lisitsynsanuj: yes it should work ok with tags10:04
sanujokay10:05
lisitsynsanuj: you just have to 'instantiate' these gets10:05
lisitsynfor specific types like int, double10:05
lisitsynbut as they have different argument types10:05
lisitsynit should work10:05
sanujalright, i'll try10:05
-!- leagoetz [~leagoetz@host-92-0-162-192.as43234.net] has joined #shogun10:24
-!- leagoetz [~leagoetz@host-92-0-162-192.as43234.net] has quit [Remote host closed the connection]10:25
@wikingy010:57
-!- sanuj [~sanuj@117.203.5.27] has quit [Ping timeout: 246 seconds]11:01
-!- sanuj [~sanuj@117.203.5.27] has joined #shogun11:42
lisitsynwiking: jo11:55
@wikingwazza12:01
shogun-buildbotbuild #663 of debian wheezy - memcheck is complete: Failure [failed memory check]  Build details are at http://buildbot.shogun-toolbox.org/builders/debian%20wheezy%20-%20memcheck/builds/663  blamelist: Wu Lin <yorker.lin@gmail.com>12:05
sanujlisitsyn, i'm getting some include errors while building the wrappers12:09
lisitsynwhat errors?12:09
sanujIn file included from shogun_wrap.cxx:3041:0:12:10
sanujsrc/shogun/SGObject.hpp:4:30: fatal error: src/shogun/Tag.hpp: No such file or directory12:10
sanujshall i share the code with you on github12:10
sanujlisitsyn, ^12:12
-!- leagoetz [~leagoetz@144.82.200.165] has joined #shogun12:15
-!- sonne|osx [~sonne@x4db4adb9.dyn.telefonica.de] has joined #shogun12:47
sanujwiking, there?12:54
sanujlisitsyn, wiking ping me when you guys are free13:24
-!- HeikoS [~heiko@80.169.91.26] has joined #shogun13:39
-!- mode/#shogun [+o HeikoS] by ChanServ13:39
-!- leagoetz_ [~leagoetz@nat-200-165.internal.eduroam.ucl.ac.uk] has joined #shogun13:43
-!- leagoet__ [~leagoetz@nat-200-165.internal.eduroam.ucl.ac.uk] has joined #shogun13:45
-!- leagoetz [~leagoetz@144.82.200.165] has quit [Ping timeout: 250 seconds]13:46
-!- leagoetz_ [~leagoetz@nat-200-165.internal.eduroam.ucl.ac.uk] has quit [Ping timeout: 260 seconds]13:48
-!- sonne|osx [~sonne@x4db4adb9.dyn.telefonica.de] has quit [Quit: sonne|osx]13:51
@HeikoSsanuj: yes you can13:51
lisitsynsanuj: wazuup13:51
sanujHeikoS, about GMM cookbook?13:51
@HeikoSyes13:51
lisitsynmake shogun grate again13:52
lisitsyn:D13:52
sanujlisitsyn, getting that include error13:52
lisitsynah sorry13:52
sanujlisitsyn, look up ^^13:53
lisitsynwell it looks like the path is wrong :)13:53
sanujcmake is able to build it without swig13:53
lisitsynsrc/shogun/Tag.hpp13:53
sanujlisitsyn, i'll share the code on github13:53
lisitsynI don't think src should be there13:53
sanujlisitsyn, i called python setup.py from a folder which has src13:54
lisitsynwhy do you use setup.py?13:54
sanujswig docs13:54
lisitsynI mean in shogun we already build it with cmake13:55
lisitsynwhy other approach?13:55
sanujjust for testing13:55
sanujswig docs suggested setup.py so i used it to build my toy examples13:56
sanuji'll try to build it with cmake13:56
lisitsynsanuj: ok just show me what's changed or errors you ge13:56
sanujokay13:56
-!- besser82 [~besser82@fedora/besser82] has joined #shogun14:10
-!- mode/#shogun [+o besser82] by ChanServ14:10
-!- HeikoS [~heiko@80.169.91.26] has quit [Quit: Leaving.]14:13
-!- HeikoS [~heiko@80.169.91.26] has joined #shogun14:13
-!- mode/#shogun [+o HeikoS] by ChanServ14:13
-!- mizari [~mizari@95-174-213-100.nts.su] has quit [Read error: Connection reset by peer]14:16
-!- mizari [~mizari@95-174-213-100.nts.su] has joined #shogun14:17
-!- mizari [~mizari@95-174-213-100.nts.su] has quit [Read error: Connection reset by peer]14:23
-!- sanuj [~sanuj@117.203.5.27] has quit [Ping timeout: 276 seconds]14:23
-!- mizari [~mizari@95-174-213-100.nts.su] has joined #shogun14:24
-!- HeikoS [~heiko@80.169.91.26] has quit [Quit: Leaving.]14:26
-!- sanuj [~sanuj@117.203.5.27] has joined #shogun14:33
-!- besser82 [~besser82@fedora/besser82] has quit [Ping timeout: 276 seconds]14:37
sanujlisitsyn, ping15:11
@wikinghel15:17
@wikingo15:17
@wiking:)15:17
@wikingwazza15:17
@wikingsanuj: you pinged me?15:17
sanujwiking, hi :)15:17
sanuji pinged you a while back15:17
sanujabt some error15:17
sanujbut now it's solved :)15:17
@wikingah ok, sorry wasn't around15:17
sanujcool :)15:18
sanujwiking, swig interface is sort of working for my string-tag prototype15:18
sanujwith some problems15:18
@wikinganything i can help with15:19
@wikingmeaning with the problems/15:19
@wiking?15:19
sanuji'll share the code first15:19
sanujlet me push it on github15:19
sanujhave you seen my prototype?15:19
@wikingkk15:20
@wikingnoup sorry15:20
sanujokay :)15:20
-!- besser82 [~besser82@fedora/besser82] has joined #shogun15:21
-!- mode/#shogun [+o besser82] by ChanServ15:21
sanujwiking, this is how the .i file looks15:22
sanujhttps://github.com/sanuj/shogun-plugin-arch/blob/master/tags-string/src/interfaces/shogun.i15:22
sanujand the concerned classes are15:22
sanujhttps://github.com/sanuj/shogun-plugin-arch/blob/master/tags-string/src/shogun/Tag.hpp15:23
sanujhttps://github.com/sanuj/shogun-plugin-arch/blob/master/tags-string/src/shogun/SGObject.hpp15:23
sanujin python15:23
sanujwhen i do15:23
sanujobj = SGObject()15:23
@wikingsanuj: for(std::unordered_map<std::string, Any*>::iterator it = tag_map.begin(); it != tag_map.end(); ++it)15:24
@wikingfor_each? :)15:24
sanujobj.set(....) doesn't work15:25
@wikingit's much shorter15:25
@wikingis this from python interface?15:25
@wikingi suppose, right?15:25
@wikingok lemme pull15:25
sanujsure i'll do that15:25
@wikingand try to compile15:25
sanujyes it's from python interface15:26
@wikingok the cmake files will need some love15:26
@wikingbut lemme try it on linu15:27
@wiking*linux15:27
sanujhaha15:27
sanuji don't know much cmake15:27
@wikingdont worry we'll fix it15:27
sanujmake build dir in tags-string15:27
@wikingyeah15:29
@wikingtrying that15:29
@wikingthe problem is15:29
@wikingImportError: dynamic module does not define init function (init_shogun)15:29
sanujimport shogun worked for me15:30
sanujin python15:30
@wikingah i think i have a problem with having another version15:30
@wikingof shogun in the path15:30
sanujgo in tags-string/build/src/interfaces and then import15:31
sanujyou will have to do something about the path15:31
@wikingyep yep15:31
@wikingi know15:31
@wikingi'm just saying15:31
sanuj:D15:31
@wikingthat i have another version of shogun in the path15:31
sanuji know you know15:31
@wikinghence the meixup15:31
sanuj:P15:31
@wikingmmm15:32
lisitsynwhy15:32
lisitsynwhat's wrong with set?15:32
@wikingoh ok15:32
@wikingi see15:32
@wiking:)))15:32
@wikingTraceback (most recent call last):15:32
@wiking  File "<stdin>", line 1, in <module>15:32
@wiking  File "/home/wiking/shogun-plugin-arch/tags-string/build/src/interfaces/shogun.py", line 76, in <lambda>15:32
@wiking    __getattr__ = lambda self, name: _swig_getattr(self, SGObject, name)15:33
@wiking  File "/home/wiking/shogun-plugin-arch/tags-string/build/src/interfaces/shogun.py", line 57, in _swig_getattr15:33
@wiking    raise AttributeError(name)15:33
@wikingAttributeError: set15:33
@wikingcoz swig uses that nice lambda15:33
@wikingto get the object's param15:33
@wiking(attribute i meant015:33
lisitsynwas it ignored15:33
lisitsynbecause python has 'set'?15:33
@wikingnono15:33
@wikingit doesn't find that 'set'15:34
lisitsynyes but why?15:34
@wikinghow's tag added to SGObject15:34
@wiking?15:34
lisitsynwhich repo15:34
@wikingah wait15:34
@wikingi've fucked up the thing15:35
@wikingsanuj: should it be15:35
sanujthe following perfectly in c++15:35
sanujSGObject obj;15:35
sanujTag<int> length_tag("side");15:35
sanujobj.set(length_tag, 10);15:35
@wikingsanuj: how did you create Tag<int> in python15:36
sanuj%template(TagInt) Tag<int>;15:36
@wikingTagInt15:36
@wikingok15:36
sanujoh i think why15:39
sanujbecause15:39
sanujtemplate <typename T>15:39
sanuj    void set(Tag<T> tag, T value);15:39
sanujit's a template method which are treated differently in swig15:39
lisitsynyes you have to instantiate15:39
lisitsynset<T>15:39
lisitsynfor some types15:39
sanujwill do it now15:40
sanujsorry for the trouble wiking15:40
-!- mizari [~mizari@95-174-213-100.nts.su] has quit [Quit: Leaving]15:53
sanujlisitsyn, there?15:55
lisitsynyes15:55
sanujeverything is working now15:55
sanujbut15:55
sanujobj = SGObject()15:56
sanujlength_tag = TagInt("side")15:56
sanujobj.setInt(length_tag, 10)15:56
sanuja = obj.getInt(length_tag)15:56
sanuja is <Swig Object of type 'int *' at 0x7f7c00f13de0>15:56
sanujso 3 + obj.getInt(length_tag) won't work15:57
sanujthis is because15:57
sanujtemplate <typename T>15:57
sanujT& get(Tag<T> tag);15:57
sanujmore specifically15:57
sanujtemplate <typename T>15:57
sanujT& SGObject::get(Tag<T> tag)15:57
sanuj{15:57
sanujAny* a = tag_map[tag.getName()];15:57
sanujreturn a->as<T>();15:57
sanuj}15:57
lisitsynhmm yeah15:58
lisitsynsomehow it returned a wrapper for int*15:58
lisitsynnot the value itself15:58
sanujyeah15:58
sanujwhy do we have T&15:58
sanujI tried T but gives error15:58
sanujwith swig15:59
lisitsynsanuj: ok I get the problem16:00
lisitsynnot that I know the reason though16:00
lisitsynsanuj: could you please check it in swig docs?16:00
lisitsynhow to map primitive types and so on16:00
sanujokay16:00
sanujlisitsyn, T& is because of any16:01
sanujbut i don't know why we have T& there16:01
lisitsynnah that's ok16:01
lisitsynwhy not?16:01
lisitsynsanuj: oh16:01
lisitsynwhta happens if you try T then?16:02
sanuji had tried it earlier16:02
sanujc++ code works fine16:03
sanujif i remember correctly16:03
sanujlet me try again16:03
-!- HeikoS [~heiko@144.82.228.178] has joined #shogun16:04
-!- mode/#shogun [+o HeikoS] by ChanServ16:04
sanujlisitsyn, yes cpp code works fine16:05
sanujlisitsyn, oh it's working with swig also16:06
lisitsyn3 + 316:07
sanujyeah16:07
sanuj3 + obj.getInt(length_tag)16:07
sanujgives 1316:07
sanujlisitsyn, what to do now?16:10
lisitsynmake it work with strings :)16:11
sanuji think it works with strings also16:11
sanujlet me see16:11
sanujworks16:13
sanujname_tag = TagString("name")16:13
sanujobj.setString(name_tag, "Jon Snow")16:13
sanuj obj.getString(name_tag) + " is alive!"16:14
sanuj= 'Jon Snow is alive!'16:14
sanuj:P16:14
Saurabh7:D16:16
Saurabh7HeikoS: hi16:17
sanujlisitsyn, this is how shogun.i looks for now16:20
sanujhttps://github.com/sanuj/shogun-plugin-arch/blob/master/tags-string/src/interfaces/shogun.i16:20
sanujwiking, still around?16:22
lisitsynsanuj: no I mean16:24
lisitsynby strings16:24
lisitsynget("my super parameter").asInt()16:24
sanujah16:24
sanujlisitsyn, how to make that work16:25
sanujoh wait16:25
lisitsynset(string, T)16:25
lisitsynget(string)16:25
lisitsyn:)16:25
sanujlisitsyn, do you want to keep get by tag?16:28
lisitsynsanuj: yes sure16:28
lisitsynboth ways16:28
sanujokay16:28
sanuji'll do it after dinner :)16:29
sanujlisitsyn, till when are you around?16:29
lisitsynhalf an hour more then will disappear for 5 hours16:30
sanujyou sleep for 5 hrs only? :D16:30
sanujsee you tomorrow then16:33
lisitsynsanuj: nah that's lecture16:36
lisitsynsanuj: I teach some machine learning16:36
-!- sanuj [~sanuj@117.203.5.27] has quit [Ping timeout: 246 seconds]16:37
@HeikoSSaurabh7: hi16:54
Saurabh7HeikoS: Hey I was trying things with subsets and thread safety16:56
@HeikoSSaurabh7: cool!16:56
@HeikoSand?16:56
Saurabh7To do that i thought of one way i put it in the doc16:57
Saurabh7we would have to pass an identifier to the index_conversion method16:58
Saurabh7because thats what is being used everywhere to access16:58
Saurabh7but we dont have control when the index conversion happens in alogs16:58
Saurabh7so I think we would have to update feature access methods , kernel compute things and labels for that16:59
Saurabh7if to be done this way16:59
-!- HeikoS [~heiko@144.82.228.178] has quit [Quit: Leaving.]17:00
-!- sanuj [~sanuj@117.203.11.29] has joined #shogun17:10
sanujlisitsyn, coool17:10
sanujlisitsyn, still around? :D17:11
-!- OXPHOS [9d8b131c@gateway/web/freenode/ip.157.139.19.28] has joined #shogun17:38
OXPHOSHey wiking, lisitsyn, a prototype for linalg. Looks kinda ugly :(17:54
OXPHOShttps://gist.github.com/OXPHOS/a9b79a995b75a0972811f634e80ff63217:54
sanujHey OXPHOS17:55
sanujlisitsyn is not going to be here for the next 5 hrs17:55
OXPHOSsanuj: hey thanks for letting me know17:55
lisitsynpartially here yet18:00
sanujno yet teaching machine learning then :)18:00
sanujnot*18:00
lisitsynyeah waiting for my senior student guys :D18:01
sanujlisitsyn, you teach in college?18:01
sanujor any institute / university?18:02
lisitsynsanuj: in higher school of economics and as something commercial18:02
lisitsyntwo courses now18:02
lisitsyntoday it is commercial :)18:02
sanujcool ;)18:02
-!- OXPHOS [9d8b131c@gateway/web/freenode/ip.157.139.19.28] has quit [Ping timeout: 250 seconds]18:39
-!- HeikoS [~heiko@nat-168-9.internal.eduroam.ucl.ac.uk] has joined #shogun19:17
-!- mode/#shogun [+o HeikoS] by ChanServ19:17
sanujlisitsyn, obj.get("num").asInt()19:19
sanujalso working ;D19:19
sanujlisitsyn, tell me what to do next19:19
sanujwill check the log for your message tomorrow19:20
@wikinghaha that asInt19:20
@wikinglooks very scala like19:20
sanujlol19:20
sanujgoing to sleep now19:21
sanujgoodnight folks :)19:21
-!- sanuj [~sanuj@117.203.11.29] has quit [Quit: Leaving]19:22
shogun-buildbotbuild #215 of FC22 - libshogun is complete: Failure [failed test]  Build details are at http://buildbot.shogun-toolbox.org/builders/FC22%20-%20libshogun/builds/215  blamelist: Heiko Strathmann <heiko.strathmann@gmail.com>, Sanuj <sanuj.sharma.in@gmail.com>19:29
shogun-buildbotbuild #2863 of bsd1 - libshogun is complete: Failure [failed configure]  Build details are at http://buildbot.shogun-toolbox.org/builders/bsd1%20-%20libshogun/builds/2863  blamelist: Heiko Strathmann <heiko.strathmann@gmail.com>, Sanuj <sanuj.sharma.in@gmail.com>19:30
shogun-buildbotbuild #2864 of bsd1 - libshogun is complete: Failure [failed configure]  Build details are at http://buildbot.shogun-toolbox.org/builders/bsd1%20-%20libshogun/builds/2864  blamelist: Heiko Strathmann <heiko.strathmann@gmail.com>, Sanuj <sanuj.sharma.in@gmail.com>19:33
shogun-buildbotbuild #216 of FC22 - libshogun is complete: Failure [failed test]  Build details are at http://buildbot.shogun-toolbox.org/builders/FC22%20-%20libshogun/builds/216  blamelist: Heiko Strathmann <heiko.strathmann@gmail.com>, Sanuj <sanuj.sharma.in@gmail.com>19:37
-!- travis-ci [~travis-ci@ec2-54-234-20-108.compute-1.amazonaws.com] has joined #shogun20:49
travis-ciit's Heiko Strathmann's turn to pay the next round of drinks for the massacre he caused in shogun-toolbox/shogun: https://travis-ci.org/shogun-toolbox/shogun/builds/13062269820:49
-!- travis-ci [~travis-ci@ec2-54-234-20-108.compute-1.amazonaws.com] has left #shogun []20:49
-!- Saurabh7 [Saurabh7@gateway/shell/panicbnc/x-iiwpoeherivwinjy] has quit [Ping timeout: 260 seconds]20:53
-!- Saurabh7 [Saurabh7@gateway/shell/panicbnc/x-mliiglqclrcfmcsl] has joined #shogun20:56
-!- leagoet__ [~leagoetz@nat-200-165.internal.eduroam.ucl.ac.uk] has quit [Remote host closed the connection]21:21
-!- HeikoS [~heiko@nat-168-9.internal.eduroam.ucl.ac.uk] has quit [Ping timeout: 244 seconds]21:35
-!- Saurabh7 [Saurabh7@gateway/shell/panicbnc/x-mliiglqclrcfmcsl] has quit [Ping timeout: 260 seconds]22:58
-!- Saurabh7 [Saurabh7@gateway/shell/panicbnc/x-ebwjckdkutwxxtlg] has joined #shogun22:58
-!- Saurabh7 [Saurabh7@gateway/shell/panicbnc/x-ebwjckdkutwxxtlg] has quit [Ping timeout: 260 seconds]23:34
-!- Saurabh7 [Saurabh7@gateway/shell/panicbnc/x-gbgxwuujaknpqmda] has joined #shogun23:34
--- Log closed Tue May 17 00:00:59 2016