IRC logs of #shogun for Saturday, 2016-06-18

--- Log opened Sat Jun 18 00:00:44 2016
arianepaolabye everyone, have a great weekend01:21
shogun-buildbotbuild #23 of memleak - valgrind is complete: Failure [failed memory check]  Build details are at http://buildbot.shogun-toolbox.org/builders/memleak%20-%20valgrind/builds/23  blamelist: Heiko Strathmann <heiko.strathmann@gmail.com>, Sanuj <sanuj.sharma.in@gmail.com>, lambday <heavensdevil6909@gmail.com>05:25
shogun-buildbotbuild #1024 of nightly_none is complete: Failure [failed test]  Build details are at http://buildbot.shogun-toolbox.org/builders/nightly_none/builds/1024  blamelist: Heiko Strathmann <heiko.strathmann@gmail.com>, Sanuj <sanuj.sharma.in@gmail.com>, lambday <heavensdevil6909@gmail.com>05:30
shogun-buildbotbuild #1154 of nightly_default is complete: Failure [failed test notebooks]  Build details are at http://buildbot.shogun-toolbox.org/builders/nightly_default/builds/1154  blamelist: Heiko Strathmann <heiko.strathmann@gmail.com>, Sanuj <sanuj.sharma.in@gmail.com>, lambday <heavensdevil6909@gmail.com>06:16
-!- sonne|osx [~sonne@x4db33d9b.dyn.telefonica.de] has joined #shogun06:32
-!- sonne|osx [~sonne@x4db33d9b.dyn.telefonica.de] has quit [Quit: sonne|osx]06:45
-!- c4goldsw [5da420e6@gateway/web/cgi-irc/kiwiirc.com/ip.93.164.32.230] has joined #shogun07:51
-!- c4goldsw [5da420e6@gateway/web/cgi-irc/kiwiirc.com/ip.93.164.32.230] has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]08:08
-!- sonne|osx [~sonne@x4db33d9b.dyn.telefonica.de] has joined #shogun09:30
-!- GandalfTheWizard [~Eva@112.10.170.90] has joined #shogun10:25
-!- sonne|osx [~sonne@x4db33d9b.dyn.telefonica.de] has quit [Quit: sonne|osx]10:26
-!- GandalfTheWizard [~Eva@112.10.170.90] has quit [Quit: Leaving.]10:32
-!- GandalfTheWizard [~Eva@112.10.170.90] has joined #shogun10:39
-!- GandalfTheWizard [~Eva@112.10.170.90] has quit [Quit: Leaving.]10:50
-!- besser82 [~besser82@fedora/besser82] has joined #shogun11:28
-!- mode/#shogun [+o besser82] by ChanServ11:28
-!- besser82 [~besser82@fedora/besser82] has quit [Ping timeout: 244 seconds]12:04
-!- sanuj [~sanuj@117.203.15.59] has joined #shogun15:03
sanujlisitsyn, wazzup15:04
lisitsynsanuj: hey15:04
sanujgot time?15:04
lisitsynyeah but a bit15:04
sanujokay i have added all the classes from my gist to sgbase.i15:05
sanujexcept the templates15:05
sanujcommented them out15:05
sanujwhat next?15:05
lisitsynsanuj: is it working from swig yet?15:08
sanujlisitsyn, it's visible from python15:10
sanujand i can make TagKernel etc15:10
sanujhow else to check?15:10
sanujcan't make objects since these are abstract classes15:11
sanujso can't do setKernel(Kernel()) etc15:11
sanujlisitsyn, but setKernel(gaussiankernel) is not working15:12
lisitsynsanuj: why?15:12
lisitsynit is the first priority to fix you know ;)15:12
sanujlisitsyn, how to fix15:12
lisitsynsanuj: well how does it doesn't work?15:13
lisitsynwhat error?15:13
sanujlisitsyn, when i do this in python15:16
sanujcombkernel.setKernel("gauss", gausskernel)15:16
sanujlisitsyn, error is:  TypeError: in method 'SGObject_setKernel', argument 3 of type 'CKernel *'15:16
lisitsynwhat is gausskernel?15:17
lisitsynjust GaussianKernel?15:17
lisitsynpaste the full example pleaze15:17
sanujgausskernel = sg.GaussianKernel()15:17
lisitsynok then it is quite strange15:17
lisitsynhow does the definition of setKernel looks like?15:18
sanujlisitsyn, shall i tell you what's inside pythonwrapper?15:19
lisitsynsanuj: it would make sense to compare15:19
lisitsynhow say LibLinear ctor looks like15:19
lisitsynssorry LibSVM15:20
lisitsynand then setKernel15:20
lisitsynboth of them accept CKernel* as an argument15:20
sanujlisitsyn, CLibSVM(float64_t C, CKernel* k, CLabels* lab,15:21
sanujLIBSVM_SOLVER_TYPE st=LIBSVM_C_SVC);15:21
lisitsynnono15:21
lisitsynin modshogun_**15:21
lisitsynthis giant thing15:21
sanujthat's opening ;)15:21
lisitsynok15:21
sanujlisitsyn, SWIGINTERN int _wrap_new_LibSVMFile__SWIG_4(PyObject *self, PyObject *args) {15:25
sanujthis ^?15:25
lisitsynahh true15:25
lisitsynsanuj: yeah lets compare what happening inside15:25
lisitsynnot libsvmfile15:25
-!- besser82 [~besser82@fedora/besser82] has joined #shogun15:25
-!- mode/#shogun [+o besser82] by ChanServ15:25
lisitsynbut libsvm though15:25
sanujoh15:25
lisitsynsanuj: ok sorry have to go, rain starts and I am in a park :D15:28
sanujlisitsyn, lol15:28
sanujwill you be back?15:28
shogun-buildbotbuild #512 of deb1 - libshogun - PR is complete: Failure [failed cookbook]  Build details are at http://buildbot.shogun-toolbox.org/builders/deb1%20-%20libshogun%20-%20PR/builds/512  blamelist: sanuj16:17
-!- sanuj [~sanuj@117.203.15.59] has quit [Ping timeout: 276 seconds]16:47
-!- besser82 [~besser82@fedora/besser82] has quit [Ping timeout: 244 seconds]17:00
-!- sanuj [~sanuj@117.203.15.59] has joined #shogun17:55
shogun-buildbotbuild #513 of deb1 - libshogun - PR is complete: Success [build successful]  Build details are at http://buildbot.shogun-toolbox.org/builders/deb1%20-%20libshogun%20-%20PR/builds/51318:13
sanujlisitsyn, back?18:13
lisitsynsanuj: yeap18:14
sanujlisitsyn, you want to see this18:15
sanujSWIGINTERN int _wrap_new_LibSVM__SWIG_0(PyObject *self, PyObject *args) {18:15
sanujshall i put it on pastebin?18:15
lisitsynwhat happnes next18:15
lisitsynyeah18:15
lisitsynwhole method18:15
lisitsynthe same for setKernel18:15
sanujlisitsyn, http://pastebin.com/B4WhUgDB18:17
lisitsynsanuj: see the line 18518:18
lisitsynthis is where it happens18:18
sanujlisitsyn, http://pastebin.com/0cKHBnrC18:20
sanujlisitsyn, btw i have made these methods private in SGObject.h18:26
sanuj Any _set(BaseTag& _tag, const Any& any);18:26
sanuj+       Any _get(BaseTag& _tag) const;18:26
sanuj+       bool _has(const BaseTag& _tag) const;18:26
sanuj+       std::vector<std::string> _parameters() const;18:26
lisitsynyeah sure18:26
lisitsynmakes sense18:26
sanujlisitsyn, what do you think about setKernel18:27
lisitsynsanuj: I see no difference yet18:27
lisitsynsanuj: what about your example? can you paste it as well?18:27
sanujlisitsyn, python example?18:28
lisitsynsanuj: yes18:28
sanujlisitsyn, http://pastebin.com/dR6apDZd18:31
lisitsyncrazy!18:32
sanujlisitsyn, my code? :)18:32
lisitsynres2 = SWIG_ConvertPtr(obj2, &argp2,SWIGTYPE_p_shogun__CKernel, 0 |  0 );18:32
lisitsyn  res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CKernel, 0 |  0 );18:33
lisitsynthere is a slight difference18:33
lisitsyn2/3 is ok, that's just the order of arguments18:33
sanujof p18:33
lisitsynbut shogun before CKernel18:33
lisitsynit could mean something18:33
sanujohkay18:33
lisitsynthey should be the same I guess that's the thing18:34
sanuji don't even understand what these 2 lines mean18:34
sanujsome pointer conversion18:34
lisitsynsanuj: yes just some pointer conversion18:34
lisitsynand SWIGTYPE_p .. is the type we are converting to18:35
lisitsynit looks that we have some namespace issue18:35
lisitsynfind where SWIGTYPE_p_shogun__CKernel is defined18:35
sanujyeah18:35
lisitsynmaybe it would help18:35
sanujokay let me see18:35
sanujlisitsyn, #define SWIGTYPE_p_shogun__CKernel swig_types[1181]18:36
lisitsynsanuj: it is something in sgbase.i I guess18:39
sanujlisitsyn, what is swig_types18:40
sanuji mean where can i find it18:40
lisitsynsanuj: no idea18:40
lisitsynI guess in the same file18:41
sanujlisitsyn, it's working !!!19:18
sanuji had all my swig stuff in namespace shogun{}19:18
sanujnow i replaced it by "using namespace shogun;"19:18
sanujlisitsyn, but there is one problem19:20
lisitsynsanuj: what's that?20:21
sanujlisitsyn, all of it is working20:21
sanujonly template classes are left20:21
lisitsynsanuj: I expect some other problem20:22
lisitsynreference counting20:22
lisitsynI think we don't handle that yet20:22
sanujyeah we don't20:22
sanujlisitsyn, i'm going to sleep20:46
lisitsynok good nite20:46
sanujcan you mail me what to try tomorrow20:46
sanujlisitsyn, i don't know how to proceed next for swig20:47
lisitsynyeah20:47
lisitsynok20:47
sanujbye20:47
-!- sanuj [~sanuj@117.203.15.59] has quit [Remote host closed the connection]20:48
-!- besser82 [~besser82@fedora/besser82] has joined #shogun21:40
-!- mode/#shogun [+o besser82] by ChanServ21:40
-!- OXPHOS [4058e386@gateway/web/freenode/ip.64.88.227.134] has joined #shogun23:13
-!- OXPHOS [4058e386@gateway/web/freenode/ip.64.88.227.134] has quit [Quit: Page closed]23:38
--- Log closed Sun Jun 19 00:00:46 2016

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