IRC logs of #shogun for Sunday, 2019-03-10

--- Log opened Sun Mar 10 00:00:45 2019
-!- besser82 [~besser82@fedora/besser82] has quit [Quit: Freedom, Friends, Features, First [fedoraproject.org]]01:59
-!- besser82 [~besser82@fedora/besser82] has joined #shogun02:01
-!- mode/#shogun [+o besser82] by ChanServ02:01
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]03:40
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun05:36
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Changing host]05:36
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun05:36
-!- mode/#shogun [+o wiking] by ChanServ05:36
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]06:32
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun06:55
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Changing host]06:55
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun06:55
-!- mode/#shogun [+o wiking] by ChanServ06:55
-!- taichi303j [672c33c4@gateway/web/freenode/ip.103.44.51.196] has joined #shogun08:57
taichi303jI am installing shogun on ubuntu and got stuck at step "cmake -options"  can any one tell me  what am I supposed to pass as option argument09:00
@wikingtaichi303j: you can use shogun from conda if you just wanna use shogun09:27
@wikingno need for cmake09:27
taichi303j@wiking thanks for replying sir, I am new to ubuntu environment, I have downloaded jupyter notebook and installed it, what am I supposed to do next.09:28
@wikingi think you rather have a problem how to use jupyter and python09:28
@wikingfor that see other forums09:28
taichi303jI have installed shogun using conda- forge, do I need to install cmake or not09:29
@wikingno09:29
taichi303jfor making meta examples do I need to install any other dependancy or not.09:30
@wikingdepeends09:34
@wikingyou wanna write meta examples?09:35
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun10:51
-!- wiking [~wiking@huwico/staff/wiking] has quit [Read error: Connection reset by peer]10:51
-!- taichi303j_ [3121c5df@gateway/web/freenode/ip.49.33.197.223] has joined #shogun11:28
taichi303j@wiking  yes I want to write meta examples, I wish to work on "porting example to meta example" which are one of top 10 entrance task, thats why I had doubt whether cmake or other dependency needs to be installed.11:31
wuwei[m]taichi303j: yes you need to install other deps11:34
-!- taichi303j_ [3121c5df@gateway/web/freenode/ip.49.33.197.223] has quit [Ping timeout: 256 seconds]11:37
-!- saurabh7 [~saurabh7@106.51.18.183] has joined #shogun12:01
taichi303j@wuwei I am stucked at cmake [options] step here after downloading shogun from git and then making build directory inside it, what am I supposed to pass argument for cmake12:20
wuwei[m]https://github.com/shogun-toolbox/shogun/blob/develop/doc/readme/DEVELOPING.md#cmake-options-for-developers-12:22
wuwei[m]does this work for you?12:22
wuwei[m]also add -DBUILD_META_EXAMPLES=ON12:23
taichi303j@wuwei I am getting error, does not appear to contain cmakelists.txt12:25
wuwei[m]are you running "cmake .." under shogun/build12:26
-!- saurabh7 [~saurabh7@106.51.18.183] has quit [Remote host closed the connection]12:27
taichi303j@wuwei yes sir, I first downloaded shogun from git then built "build" directory and under that I am using this command.12:27
wuwei[m]plz double check if cmakelists.txt referred in the error message exists12:28
taichi303jYeah It do exist, I runned dir command under build directory and it shows me cmakelists.txt and cmakefiles  folder12:32
wuwei[m]i think cmakelists.txt should be shogun/cmakelists.txt12:33
taichi303j@wuwei yeah cmakelists.txt does exist in shogun/ root directory as per you mentioned.12:35
taichi303jbut in install.md it's been specified that make a build directory inside shogun and then go inside that directory and use cmake [options] command12:36
wuwei[m]yes, you use cmake .. to use the cmake list in the parent dir12:37
-!- saurabh7 [~saurabh7@106.51.18.183] has joined #shogun12:37
taichi303jso you mean I need to use only cmake .. inside build directory?12:37
wuwei[m]yes, and add necessary options12:38
taichi303jalso should i delete files present under build folder (in my case  i have cmakelist.txt and cmake folder)12:38
wuwei[m]yes12:38
taichi303jOk I will give it a try, also incase I want to work on meta example do I need to use options specified above by you.12:39
wuwei[m]yes, and you need to enable interface build (see the doc)12:40
taichi303jcmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTING=ON -DBUILD_DASHBOARD_REPORTS=ON  -DBUILD_META_EXAMPLES=ON12:40
taichi303jabove is the command I need to use inside build am i right?12:41
wuwei[m]yes, append .. at the end12:41
taichi303jok Sir, I will try it12:41
taichi303jI am getting error, CMake Error at CMakeLists.txt:27 (project):   No CMAKE_CXX_COMPILER could be found.12:43
wuwei[m]this is some typical cmake error you can get answer from google or stackoverflow12:44
lisitsynwiking_: hey12:57
wiking_ho12:57
-!- wiking_ is now known as wiking12:57
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Changing host]12:57
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun12:57
-!- mode/#shogun [+o wiking] by ChanServ12:57
@wikinglisitsyn: just picking up the line of serialization obviously12:57
@wikingand i didn't want to define a visitor for DynArray<>12:57
@wikingso i decided to have the visitor interface for std::vector12:57
lisitsynohh ok let me try to untangle it12:58
@wikingbut i needed clone suport for std::vector12:58
@wikingbecause that was not working with std::vector<CSGObject*>12:58
lisitsynah ok well I think clone worked12:58
lisitsyndid it?12:58
@wikingi just want you to tell me how else u might imagined the cloning of STL12:58
@wikingjeje12:58
@wikingthis clone works12:58
@wikingjust was wondering if you have better ways12:58
lisitsynin any, or?12:59
@wikingyes12:59
@wikingin any'12:59
lisitsynwiking: well if it was some concept of container12:59
lisitsynI'd replace that12:59
@wikingyes12:59
@wikingsame thinking here12:59
@wiking:)12:59
@wikingthere's a nice trait12:59
@wikingfor is_container13:00
@wikingif you want i can add that13:00
lisitsynsure13:00
lisitsynit would be better13:00
lisitsynI mean everything with std::begin and std::end should be handled by that13:00
@wikinghttp://shitalshah.com/p/writing-generic-container-function-in-c11/13:00
@wikinglisitsyn: this exactly does that13:00
lisitsynoh what a funny domain name13:01
lisitsynscnr13:01
@wikingso bascially it checks whether it has iterator13:01
lisitsynyeah that's what I thought13:01
@wikingif u want i can switch to this13:01
@wikingokok13:01
@wikingsmae thinking then ;)13:01
lisitsynI just didn't manage to do that back then13:01
@wikingnw13:01
lisitsynI think I stopped when I realized13:02
lisitsynI don't know how to handle maps13:02
lisitsyn:D13:02
@wikingin any?13:02
@wiking:(13:02
lisitsynyeah13:02
lisitsynwell13:02
lisitsynjust the same way actually13:02
@wikingvoid visit_parameter(const BaseTag& _tag, AnyVisitor* v) const;13:02
lisitsynbut the amount of boilerplate is unreasonable13:02
@wikingthis will be added to SGObject public13:02
@wikingeither that13:02
@wikingor the Serializer/Deserializer interface13:03
@wikingwill get super shitty13:03
lisitsynI like this method13:03
lisitsynwhy not adding that13:03
lisitsyn:)13:03
@wikingok13:03
@wikingso basically then we are done13:03
@wiking:)13:03
lisitsynwiking: I was going to try T* -> Some<T> in swig some day13:04
lisitsyn(unrelated note)13:04
@wikinghttps://pastebin.com/FQj2HzvU13:04
lisitsynscary shit hah13:04
@wikingthis is an empty guassian kernel with densefeatures13:04
lisitsynhehe13:04
lisitsynwell13:04
@wikingand yeah13:05
@wikingsome woudl be cool13:05
@wikingbecause then we can drop shit13:05
@wikinga lot13:05
@wiking:)13:05
@wikingthis whole mess with DynamicObjectArray13:05
@wiking...13:05
@wikingetc etc13:05
@wikingbtw13:06
@wikinguntil now we had13:06
@wikingSGobject->save()13:06
@wikingnow the serialization interface is likke13:06
@wikingJsonSerializer->save(sgobject)13:06
@wikingthis allows multiple objects to be streamed into the same stream13:06
@wikinggo nogo?13:07
lisitsynlooks good to me13:07
@wikingk13:07
lisitsynsave is not the property of object13:07
lisitsynit is serializer-dependant13:07
@wikingHeiko will complain13:07
lisitsynwhy?13:07
@wikingbecause serializer will return CSGObject13:07
@wiking;)13:07
@wikingso you need do a cast13:07
lisitsynah on load13:07
lisitsynyes13:07
lisitsynbut13:08
lisitsynyou don't have any way around that13:08
lisitsynI see no difference in13:08
lisitsynClassifier c; c.load(...)13:08
lisitsynand13:08
lisitsynsth like json.load(..).as_classifier()13:08
lisitsynI mean if we load something we have to say what we load13:09
@wikingyeah i mean13:09
@wikingthis is more javalike approach13:10
@wikingwith serialization13:10
@wikingyou need to do an explicit cast there as well13:10
@wikingwhen you read from ois13:10
@wiking(objectinputstream(13:10
lisitsynyeah but it is inevitable13:10
@wikingyep13:10
@wikingcool13:10
@wikingglad that we are on the same page13:10
lisitsynwell13:10
lisitsynit is evitable13:10
@wikingi didn't want to merge that13:10
lisitsynif you're doing python13:10
lisitsyn:D13:10
@wikingjust wanted to ask you if that's what you had in mind13:10
lisitsynok cool13:11
@wikingwith clone13:11
@wikingokok i'll do it for all containers13:11
@wikingthe clone13:11
lisitsynyou were rough with Heiko :)13:11
@wikinghe puts his nose where it doesn't belong13:11
@wiking:)13:11
lisitsynhaha oops13:11
@wikingi mean i exactly know what i was doin13:11
@wiking:)13:11
lisitsyntake it easy :P13:11
@wikingjust didn't want u to have like13:11
lisitsynok well13:11
@wikingunrelated code13:11
@wikingbecause everything else is serialization blala13:12
@wikingbtw13:12
@wikingi feel that the AnyVisitor will be pain13:12
@wikingwith more and more classes L(13:12
@wiking:(13:12
lisitsynit is13:12
lisitsynI had no solution in mind13:12
lisitsyndo you?13:12
@wikingnoup13:12
@wikingi mean now as soon as we start using std::vector for other stuff than13:12
@wikingCSGObject13:12
@wikingit'll be pain13:12
@wiking:)13:12
@wikingsince that's that many extra interfaces13:13
@wikingand then std::map13:13
@wikingetc etc13:13
@wiking:D13:13
lisitsynyeah but we don't need them in visitor13:13
lisitsynwe can unpack it and then visit13:13
lisitsynthat's a bit better13:13
lisitsynooor13:13
lisitsynaaah we can't, right?13:13
lisitsynbecause serialization needs to know if it is a vector13:13
@wikingi mean for now i've just extended AnyVisitor::on(std::vector<CSGObject*>13:13
@wikingyes13:13
@wikingbecause i need to know13:13
lisitsynfuckiiinggshiitit13:13
lisitsynbadbadbad13:14
@wikingyep13:14
lisitsynwiking: uhmm I know one way around13:14
lisitsynsth like onVectorBegin(); onVectorEnd();13:15
@wikinghahahahah13:15
lisitsynand also onMapBegin(); onMapEnd(); and add key(std::string) for maps13:15
@wikingyou know what it looks like right?13:15
@wiking:)13:15
@wikingwelcome back to SerializeFile.h13:15
@wiking:)13:15
lisitsynok ok13:16
lisitsynthen13:16
@wikingread_cont_begin13:16
lisitsynwe add nested visitor13:16
@wikingread_cont_end13:16
lisitsynAnyVisitor* visitList();13:16
lisitsynthat returns new visitor that is inside a list13:16
@wikingyeah13:17
@wikingthat's smoother13:17
@wiking:)13:17
@wikinglemme push this json stuff13:17
lisitsynand AnyVisitor* visitMap() but we still need key(std::string)13:17
@wikingand with container clone support13:17
@wikingand then we can discuss there13:17
@wikingok?13:17
lisitsynok13:17
@wikingignore CI13:17
@wikingas integration will fail obviously13:17
@wikingunit should pass though :P13:17
-!- taichi303j [672c33c4@gateway/web/freenode/ip.103.44.51.196] has quit [Ping timeout: 256 seconds]13:51
-!- glitch [~saphire@42.108.40.52] has joined #shogun17:55
glitchhi ! sorry for being late with response for issue #351317:56
glitch I was going through the previous comments on this issue.17:56
glitchTime and Arrucary comparison for: KNN_BRUTE , KNN_COVER_TREE and KNN_KDTREE has already been worked on and has been patched in PR #3620 .17:56
glitchSo what should I work on in this issue?17:56
glitchhttps://github.com/shogun-toolbox/shogun/issues/351317:57
-!- glitch404 [uid346916@gateway/web/irccloud.com/x-leaukicmerbklmzn] has joined #shogun17:58
-!- glitch [~saphire@42.108.40.52] has quit [Remote host closed the connection]18:26
-!- glitch404 [uid346916@gateway/web/irccloud.com/x-leaukicmerbklmzn] has quit [Quit: Connection closed for inactivity]20:18
--- Log closed Mon Mar 11 00:00:46 2019

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