IRC logs of #shogun for Wednesday, 2011-05-18

--- Log opened Wed May 18 00:00:09 2011
-!- blackburn [~qdrgsm@188.168.4.130] has quit [Quit: Leaving.]00:48
-!- alesis-novik [~alesis@188.74.87.84] has joined #shogun03:02
-!- ameerkat [~ameerkat@184-98-140-155.phnx.qwest.net] has quit [Ping timeout: 258 seconds]05:59
-!- ameerkat [~ameerkat@184-98-140-155.phnx.qwest.net] has joined #shogun06:32
-!- blackburn [~qdrgsm@188.168.4.186] has joined #shogun10:11
-!- blackburn [~qdrgsm@188.168.4.186] has quit [Quit: Leaving.]10:26
@sonney2ksploving, around?10:28
splovingyeap10:28
-!- alesis-novik [~alesis@188.74.87.84] has quit [Quit: I'll be Bach]10:28
splovingI pushed the request10:28
splovingsonney2k, I am around10:28
@sonney2ksploving, great10:31
@sonney2ksploving, the vector code already works for all the different types right?10:31
@sonney2kI mean bool, double,byte,float etc?10:31
splovingsonney2k, I have no such test examples10:32
splovingSo I am not sure10:33
splovingIt could support all of these.10:33
splovingif there is no special10:33
@sonney2ksploving, ok10:33
@sonney2kthere is not10:34
splovingfor the matrix10:34
splovingMy typemap does not work well10:34
@sonney2kuint8_t should map to byte btw10:34
@sonney2ksploving, what is the problem with matrix?10:35
splovingsonney2k, uint8_t map byte, then what about  char10:36
@sonney2kchar too10:36
@sonney2kat least they are both 1 byte in size10:36
splovingI will correct it10:37
@sonney2kchar is signed on some platforms though...10:37
@sonney2kanyways how does one create a jblas matrix and how does it look underneath10:38
splovingsonney2k, jblas matrix is use array to construct it10:38
splovingone dim array10:39
@sonney2ksploving, perfect then10:39
@sonney2kso it is just double[] ?10:39
splovingso it would not confict with double[][]10:39
splovingsonney2k, yeap10:39
@sonney2ksploving, so you only need to test if the class is indeed a jblas matrix class and then get get the pointer to the matrix10:40
splovingI know. but for now the matrix typemap does not work well. sonney2k10:41
@sonney2ksploving, what does that mean?10:41
@sonney2kwhat is the problem?10:41
splovingsonney2k, when I run "ant run", it shows the following error:10:41
sploving\10:41
splovingjava_modular/shogun/IntFeatures.java:96 could not find the simbol10:42
sploving simbole: constructer:  IntMatrix(int[][],boolean)10:43
splovinglocation:  shogun.IntMatrix10:43
sploving    [javac]     return new IntMatrix(FeaturesJNI.IntFeatures_get_feature_matrix__SWIG_1(swigCPtr, this), true);10:43
splovingIf you have time, you just have a try(need add the  TYPEMAP_SGMATRIX macros)10:44
@sonney2ksploving, but it is reight there is no constructor with int[][]10:44
@sonney2konly int[]10:44
splovingnot int[], all of the types, double, byte[] and so no10:45
@sonney2ksure10:45
splovingsonney2k, you mean Ipathelement location="../../../jblas/10:46
splovingnot pathelement location="../../../jblas/jblas-1.2.1.jar"10:46
@sonney2ksploving, yeah you shouldn't add this10:47
@sonney2ksploving, I mean you should assume that jblas.jar is in the CLASSPATH10:47
splovingjust cancel this line?10:47
@sonney2ksploving, yes10:48
@sonney2kremove it10:48
splovingok10:48
@sonney2kin your MatrixTest example you use double y[][] etc - and then x.set_feature_matrix(y)10:49
@sonney2kis this what does not work?10:49
splovingyeap.10:49
@sonney2ksploving, but you have a typemap for this10:50
@sonney2k?10:50
splovingsonney2k, yeap.10:51
splovingthe typemap is map double[][] in the SGMatrix<float_64_t>10:52
@sonney2kyeah but look at     return new ByteMatrix(FeaturesJNI.ByteFeatures_get_feature_matrix__SWIG_1(swigCPtr, this), true);10:54
@sonney2kthis really does not exist10:54
splovingsonney2k, removed the line and push it10:54
splovingsonney2k, yeap. this confuse me10:54
splovingI donot know why swig genereated such function10:54
@sonney2kit is in the out typemap10:55
@sonney2kI mean   public short[][] get_feature_matrix() {10:55
splovingsonney2k,if FeaturesJNI.ByteFeatures_get_feature_matrix__SWIG_1(swigCPtr, this) return a long, then it will be OK10:57
splovingMaybe my %typemap(jni) shogun::SGMatrix<SGTYPE>%{jobjectArray%}10:57
sploving%typemap(jtype) shogun::SGMatrix<SGTYPE>%{JTYPE[][]%}10:57
sploving%typemap(jstype) shogun::SGMatrix<SGTYPE> %{JTYPE[][]%}10:57
splovingmaybe there is somemistake10:58
splovingsonney2k, not discuss the typemap, just the examples, do you think my examples is OK?10:59
splovingor we juse RealMatrix in Java instead of double[][]11:00
@sonney2ksploving, DoubleMatrix is from jblas right?11:00
splovingsonney2k, yeap11:00
@sonney2kthen it looks all good11:01
@sonney2kindeed the in typemap causes this thing to be generated11:01
@sonney2ksploving, yes I think %typemap(jtype) shogun::SGMatrix<SGTYPE>  %{JTYPE[][]%} is the problem11:02
splovingsonney2k, I will try to correct it11:03
@sonney2ksploving, what is this for? do you really need it?11:04
splovingsonney2k, jtype provides the default mapping of types from C/C++ to Java for use in the native functions in the intermediary JNI class11:06
@sonney2kstill to abstract to me11:09
@sonney2ktoo11:09
splovingsonney2k, for exmaple, a c++ function, we call A(arg1), after wrapper, we generated the following function:11:12
CIA-31shogun: Baozeng Ding master * rc88eb49 / (5 files in 3 dirs): put the examples into the undocumented/java_modular - http://bit.ly/klaW6p11:13
CIA-31shogun: Baozeng Ding master * rda5ef18 / src/java_modular/build.xml : add jblas classpath - http://bit.ly/kM0iNA11:13
CIA-31shogun: Baozeng Ding master * rcac23b3 / src/java_modular/build.xml : remove the jblas classpth - http://bit.ly/mTycKs11:13
CIA-31shogun: Soeren Sonnenburg master * r96dc253 / (5 files in 3 dirs): Merge branch 'master' of git://github.com/sploving/shogun - http://bit.ly/ieXt8O11:13
splovingwrapper function: B(argB), JNI funcion C(argC), Java funcion D(argD)11:13
splovingthe jni typemap is to map arg1 to arg B; jtype is to map arg1 to arg C ; and jstyp  map arg1 to argD11:14
splovingwhen we call the C++ function in Java, it calles like this: D call C, C call B, B call A11:15
@sonney2kI understand11:16
splovingsonney2k, maybe I should use RealMatrix in jtype(I am not sure now)11:17
@sonney2kbut RealMatrix is the same as SGMatrix<float64_t>11:18
@sonney2k(which you use)11:18
splovingsonney2k, http://www.swig.org/Doc2.0/SWIGDocumentation.html#Java_templates11:22
splovingRealMatrix could be used in Java but SGMatrix<float64_t> could not be used in Java11:23
splovingsonney2k, so they are a bit different11:23
-!- ameerkat [~ameerkat@184-98-140-155.phnx.qwest.net] has quit [Ping timeout: 240 seconds]11:24
@sonney2ksploving, yes but we are not in java but the typemap still...11:24
@sonney2ksploving, anyway you can try...11:24
splovingsonney2k, I will dive it later. see you I need to have supper11:25
@sonney2ksploving, any progress?13:04
-!- blackburn [~qdrgsm@188.168.4.250] has joined #shogun18:24
serialhexoi blackburn, how are you today?18:31
blackburnhi, fine, thanks, what about you?18:31
serialhexpretty good, finishing my logic homework for tonight18:31
blackburnI have had some test on control theory today18:32
blackburnas part of eh... pass-fail exam?18:32
serialhexcool, how do you think you did?18:32
blackburnthink it will be ok :)18:33
serialhex("i took a test on control theory today" btw :P )18:33
serialhexcool18:33
blackburnis past perfect not right in this case?18:34
serialhexi want to start taking some courses in control & information theory ....18:34
blackburnI don't like it but I don't have any choice :) we don't have any optional courses18:35
serialhexerm, asking about "past perfect participle presentations purposefully pissing on passerbys" is rediculous, i just know what sounds good and how the language should flow, and while i understood you, it didnt flow right :D18:35
blackburnhave to leave now for ~ an half a hour (to eat sth) :)18:36
blackburnI see18:36
serialhexok, later18:36
serialhexhey sonney2k, are you on??18:37
blackburnI would think this way too if I have it as everyday language, but I haven't :)18:37
blackburnso I have to think sometimes about tenses and other shit18:37
serialhexit's ok... m,aybe you'll visit the US or england sometime and be able to practice more :D18:37
blackburnaha18:37
blackburnhere19:22
serialhexhow was dinner?19:43
serialhexfscking mosquito bites!!!!19:43
blackburnserialhex: it was gorgeous because I haven't had any food for a long :D19:47
serialhexreally?  wtf are you doing not eating??  food rocks! :P19:48
@bettyboo8)19:48
serialhexis it poor-college-student syndrome (aka being dead broke)19:48
blackburnserialhex: well I was at my university and just hadn't time :)19:48
@bettyboo^_^19:48
serialhexahh, i see...  i've had that happen before19:49
serialhexlearning new smilieys eh bettyboo?19:49
@bettybooserialhex: I think at first I will implement some algo in python to get better comprehension19:49
serialhexcool, good for you!19:49
blackburnbettyboo: will you?19:49
@bettybooblackburn: eh, how old are you? though ~35?19:49
serialhexlolz19:50
blackburnbettyboo: ehhh I'm 20 :D19:50
@bettybooblackburn: with 4320 additions :D19:50
blackburnahahahahah19:50
serialhexhahahahaha!!!!19:50
blackburnthat rocks19:50
serialhexyeah, she is something else!19:50
blackburnbettyboo: what kind of additions I have?19:51
@bettybooblackburn: what exams you will have?19:51
@bettyboo*oink*19:51
blackburnbettyboo: I will have exams on equation of math.ph., parallel computing and numerical methods, what about you? :D19:52
@bettybooblackburn: I will have no problem with method scoring tp,tn,..., but the number of classes will be >15 :)19:52
serialhexheh, talking with her is very interesting sometimes!19:52
blackburnexactly :D19:53
-!- alesis-novik [~alesis@188.74.87.84] has joined #shogun20:37
@sonney2kback20:46
serialhexsonney2k: i've been having trouble compiling shogun, the last few lines of the make are here: http://pastebin.com/utxzKJRi20:58
@sonney2kserialhex, which versio n of gcc?21:01
serialhexgcc version 4.6.0 20110429 (prerelease) (GCC)21:02
@sonney2kaha!21:02
serialhexooh!!!  something wrong with that version??21:02
@sonney2kit is just newer than mine and newer versions are usually more strict21:05
serialhexahh, i see, yeah i never saw the "cc1plus: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for C++ [enabled by default]" thing before, and it says that almost every line when i make21:06
serialhexyeah, every other line, it has that warning then stuff it's actually making21:07
@sonney2kI don't understand the error though21:12
serialhexnor do i, it confuses me!21:13
serialhexand i've tried it a bunch of times, it always stops there, with the same error (even with different configure opts)21:14
@sonney2kserialhex, could you please try the following:21:15
@sonney2kin base/SGObject.h change the SG_REF/UNREF lines to21:16
@sonney2k#define SG_REF(x) { if (x) x->ref(); }                                        |U21:16
@sonney2k#define SG_UNREF(x) { if (x) { if (x->unref()==0) x=NULL; } }                 |N21:16
serialhexare the |U  && |N newlines?21:18
@sonney2kignore these - copy & paste error21:19
serialhexi figured so... ok, making now21:19
serialhexhmm, new error21:19
serialhexsonney2k: http://pastebin.com/nPERwbgU21:20
serialhexmake clean-ing and trying again21:20
* serialhex gets some tea as this will take a minute or 30 :P21:21
@sonney2khmmhh I am tryitng to compile again too21:21
CIA-31shogun: Soeren Sonnenburg master * r0fe924e / src/libshogun/base/SGObject.h : potentially fix a gcc 4.6 compilation error - http://bit.ly/mpIhB221:25
@sonney2kserialhex, please try again21:25
serialhexpull upstream then try sonney2k?21:26
@sonney2kserialhex, yes21:26
serialhexdone! make clean && make-ing now21:27
blackburnwhat's up here21:31
blackburnhehe21:31
@bettyboo*g* :)21:32
blackburn() caused an error?21:32
serialhextrying to fix shogun so it works w/ gcc 4.6 (i think thats the prob)21:32
serialhexnope sonney2k, it gives the same error as before, about "features/AttributeFeatures.cpp: In destructor ‘virtual shogun::CAttributeFeatures::~CAttributeFeatures()’:21:36
serialhexfeatures/AttributeFeatures.cpp:25:3: error: using temporary as lvalue [-fpermissive]"21:36
@sonney2kblackburn, yes I think it is some ( ) problem21:45
* serialhex waits patiently for solutions to try21:51
blackburnfk! I forgot what fix I should do for shogun21:52
blackburn*facepalm*21:52
serialhexheh, did you say it here sometime?? you can probably look through the archives if that is the case21:54
blackburnnope!21:55
blackburnjust have thinked about it this morning21:55
blackburndamn I wonder with myself :D21:55
serialhexpaper + pen + thought + writing = note taking: very effectve for not forgetting things :P21:58
blackburnyeaap21:58
blackburnoh! it is roc examples22:07
blackburnsonney2k: have a minute?22:07
@sonney2kserialhex and if you use #define SG_UNREF(x) { if (x) { if (((x)->unref())==0) x=NULL; } } ?22:08
@sonney2kserialhex, if that does not work could you please write out { if (x) { if (((x)->unref())==0) x=NULL; } } in the attribute features code22:09
@sonney2kblackburn, yes?22:09
blackburnsonney2k: can example for python_modular use matplotlib and so on?22:09
@sonney2kblackburn, I would prefer one without and one with in the graphical/ subdir22:10
serialhextrying now sonney2k22:11
@sonney2kblackburn, note that the graphical ones are not tested in the test suite...22:11
blackburnsonney2k: aha I see now, thank you22:11
serialhexfscking shit!  trying the 2nd thing...22:20
serialhexsonney2k: so do you want me to do the #define SG_UNREF... stuff?  or { if (features[i].attr_obj) { if (((features[i].attr_obj)... ???22:22
serialhex...in the attribute features file22:23
@sonney2kserialhex, no just write out the code22:23
serialhexso just the  { if (x) { if (((x)->unref())==0) x=NULL; } }?  stick it in there...22:25
serialhexi'm kinda confused with what you're asking me to so sonney2k :-/  i just tried putting the "#define ..." and i get the same error, and just the stuff in {} gives me a "features/AttributeFeatures.cpp:14:2: error: expected unqualified-id before ‘{’ token" error22:29
@sonney2kserialhex, yes the { if (... stuff22:30
@sonney2kbut each bracket / clause on a separate line such that we see what is the cause22:31
@sonney2kI mean the compiler will hopefully tell you then22:31
serialhexhttps://gist.github.com/97949422:38
serialhexit says that the (features[i].attr_obj)=NULL; line is the one that isnt working right22:38
serialhex(i think you might be able to edit that sonney2k, which should make life easier for both of us :P )22:39
serialhexbtw, it throws the same error with & w/o the () around features[i].attr_obj, so i dont think that is the problem22:44
@sonney2kserialhex, ok I understand the problem now but don't know how to fix it *sigh*. for now comment that part out and you can at least compile.22:59
serialhexok, will do!22:59
serialhexmake-ing now, lets see if there are any other errors :-/23:01
serialhexso what is the problem sonney2k??23:01
@sonney2kit is some pointer in dynarray that is read-only23:15
@sonney2kno idea why gcc 4.4.5 here does not complain23:15
blackburnsonney2k: have you any idea how to return probabilities (real!) while multiclass classifying?23:22
serialhexhmm... well let me know what i can do to help, it seems to compile cleanly so far, so we'll see23:23
serialhexsploving: while i'm compiling i get this error - Unable to open file shogun/ShogunException.java: No such file or directory23:56
serialhexmake[1]: *** [Distance_wrap.cxx] Error 123:56
serialhexjust fyi...23:56
-!- ameerkat [~ameerkat@184-98-140-155.phnx.qwest.net] has joined #shogun23:58
--- Log closed Thu May 19 00:00:11 2011

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