IRC logs of #shogun for Wednesday, 2018-05-09

--- Log opened Wed May 09 00:00:58 2018
-shogun-buildbot:#shogun- Build cookbook - nightly #138 is complete: Success [build successful] - http://buildbot.shogun-toolbox.org:8080/#builders/14/builds/13803:01
-shogun-buildbot:#shogun- Build clang - static analysis #136 is complete: Success [build successful] - http://buildbot.shogun-toolbox.org:8080/#builders/29/builds/13603:12
-shogun-buildbot:#shogun- Build doxygen - nightly #136 is complete: Success [build successful] - http://buildbot.shogun-toolbox.org:8080/#builders/12/builds/13605:57
-shogun-buildbot:#shogun- Build nightly_all #136 is complete: Success [build successful] - http://buildbot.shogun-toolbox.org:8080/#builders/22/builds/13606:15
-shogun-buildbot:#shogun- Build nightly_bsd_license #150 is complete: Success [build successful] - http://buildbot.shogun-toolbox.org:8080/#builders/4/builds/15006:30
-shogun-buildbot:#shogun- Build nightly_default #138 is complete: Success [build successful] - http://buildbot.shogun-toolbox.org:8080/#builders/17/builds/13807:39
@wikinglisitsyn, pingu10:38
sukey1[https://github.com/shogun-toolbox/shogun] Pull Request https://github.com/shogun-toolbox/shogun/pull/4278 opened by shubham80810:57
sukey1[https://github.com/shogun-toolbox/shogun] Pull Request https://github.com/shogun-toolbox/shogun/pull/4278 synchronized by shubham80811:03
-!- HeikoS [~heiko@eduroam-int-pat-8-208.ucl.ac.uk] has joined #shogun12:16
-!- mode/#shogun [+o HeikoS] by ChanServ12:16
-!- HeikoS [~heiko@eduroam-int-pat-8-208.ucl.ac.uk] has quit [Quit: Leaving.]13:32
-!- HeikoS [~heiko@eduroam-int-pat-8-208.ucl.ac.uk] has joined #shogun14:44
-!- mode/#shogun [+o HeikoS] by ChanServ14:44
sukey1[https://github.com/shogun-toolbox/shogun] Pull Request https://github.com/shogun-toolbox/shogun/pull/4278 merged by karlnapf14:59
sukey1[https://github.com/shogun-toolbox/shogun] New commit https://github.com/shogun-toolbox/shogun/commit/ebf5004ec53cc71cd6c6dcbab1fd4834fa7522cc by karlnapf14:59
-shogun-buildbot:#shogun- Build deb1 - libshogun #409 is complete: Failure [failed update shogun (failure)] - http://buildbot.shogun-toolbox.org:8080/#builders/10/builds/40914:59
sukey1[https://github.com/shogun-toolbox/shogun] Pull Request https://github.com/shogun-toolbox/shogun/pull/4276 merged by karlnapf15:03
sukey1[https://github.com/shogun-toolbox/shogun] New commit https://github.com/shogun-toolbox/shogun/commit/1240c2b9bab4a5a892393af40ef52577385c04f4 by karlnapf15:03
@HeikoSshogun-buildbot: force build15:08
-shogun-buildbot:#shogun- no builder specified15:08
@HeikoSshogun-buildbot: force build  deb1 - libshogun15:08
-shogun-buildbot:#shogun- no such builder 'deb1'15:08
@HeikoSshogun-buildbot: force build  'deb1 - libshogun'15:08
sukey1[https://github.com/shogun-toolbox/shogun] New commit https://github.com/shogun-toolbox/shogun/commit/54e6d3a02ade975600b41ed7ae342eac28516fd2 by karlnapf15:10
-shogun-buildbot:#shogun- Build deb1 - libshogun #412 is complete: Success [build successful] - http://buildbot.shogun-toolbox.org:8080/#builders/10/builds/41215:41
sukey1[https://github.com/shogun-toolbox/shogun] Pull Request https://github.com/shogun-toolbox/shogun/pull/4279 opened by karlnapf15:46
sukey1[https://github.com/shogun-toolbox/shogun] Pull Request https://github.com/shogun-toolbox/shogun/pull/4279 synchronized by karlnapf15:47
-!- HeikoS [~heiko@eduroam-int-pat-8-208.ucl.ac.uk] has quit [Quit: Leaving.]15:50
-!- HeikoS [~heiko@eduroam-int-pat-8-208.ucl.ac.uk] has joined #shogun16:28
-!- mode/#shogun [+o HeikoS] by ChanServ16:28
-!- travis-ci [~travis-ci@ec2-54-81-80-255.compute-1.amazonaws.com] has joined #shogun16:42
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/37682413216:42
-!- travis-ci [~travis-ci@ec2-54-81-80-255.compute-1.amazonaws.com] has left #shogun []16:42
-!- HeikoS [~heiko@eduroam-int-pat-8-208.ucl.ac.uk] has quit [Quit: Leaving.]16:44
-!- HeikoS [~heiko@eduroam-int-pat-8-208.ucl.ac.uk] has joined #shogun16:50
-!- mode/#shogun [+o HeikoS] by ChanServ16:50
-!- HeikoS [~heiko@eduroam-int-pat-8-208.ucl.ac.uk] has quit [Client Quit]16:50
-!- HeikoS [~heiko@eduroam-int-pat-8-208.ucl.ac.uk] has joined #shogun16:51
-!- mode/#shogun [+o HeikoS] by ChanServ16:51
-!- HeikoS [~heiko@eduroam-int-pat-8-208.ucl.ac.uk] has quit [Quit: Leaving.]16:58
-!- HeikoS [~heiko@eduroam-int-pat-8-208.ucl.ac.uk] has joined #shogun16:59
-!- mode/#shogun [+o HeikoS] by ChanServ16:59
-!- HeikoS [~heiko@eduroam-int-pat-8-208.ucl.ac.uk] has quit [Ping timeout: 240 seconds]17:03
-!- HeikoS [~heiko@untrust-out.swc.ucl.ac.uk] has joined #shogun17:17
-!- mode/#shogun [+o HeikoS] by ChanServ17:17
-!- HeikoS [~heiko@untrust-out.swc.ucl.ac.uk] has quit [Ping timeout: 250 seconds]17:22
-!- travis-ci [~travis-ci@ec2-54-211-38-28.compute-1.amazonaws.com] has joined #shogun17:22
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/37682666217:22
-!- travis-ci [~travis-ci@ec2-54-211-38-28.compute-1.amazonaws.com] has left #shogun []17:22
-!- HeikoS [~heiko@host86-128-122-53.range86-128.btcentralplus.com] has joined #shogun20:28
-!- mode/#shogun [+o HeikoS] by ChanServ20:28
@HeikoSlisitsyn: jojo20:28
lisitsynHeikoS: hey20:29
@HeikoSlisitsyn: I want your opinion on some20:29
lisitsynsure20:29
@HeikoSI have these label conversion methods20:29
@HeikoSmulticlass_labels(CLabels*)20:29
@HeikoSCMulticlassLabels* multiclass_labels(CLabels*)\20:30
@HeikoSso now20:30
@HeikoSI am in a situation where I only have a const pointer20:30
@HeikoSi.e.20:30
@HeikoSconst CLabels*20:30
@HeikoSactually sorry, the method is Some<CMulticlassLabels> multiclass_labels(CLabels* orig);20:30
@HeikoSso now how does that const stuff translate to some?20:30
@HeikoSi.e. something where I can only call const methods on20:30
@HeikoSI guess we will have this problem also when we  move to some everywhere with our const methods20:31
@HeikoSlisitsyn: see the problem?20:31
lisitsynnot yet, reading20:31
lisitsyn:)20:31
@HeikoSbasically i need some for const pointer20:32
lisitsyninteresting20:32
@HeikoSit should only allow the -> operator for const methods20:33
@HeikoSwould that be just20:34
@HeikoSSome<const CMulticlassLabels> multiclass_labels(const CLabels* orig);20:34
@HeikoS?20:34
lisitsynor 'const Some<CMulticlassLabels>"20:34
lisitsyn:)20:34
@HeikoShttps://stackoverflow.com/questions/17793333/difference-between-const-shared-ptrt-and-shared-ptrconst-t?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa20:34
@HeikoSbut also20:34
lisitsynah right20:35
@HeikoSI would like to avoid to have to define the casting thing some const as well20:35
lisitsynSome<const CMulticlassLabels>20:35
lisitsynbut this is going to be quite strange20:35
lisitsyndo you really want constness here?20:35
@HeikoSwell20:35
@HeikoSI only have the const pointer to labels20:36
@HeikoSand I want to convert20:36
@HeikoSah20:36
@HeikoSyeah so either this just casts ( if possible(20:36
@HeikoSor it creates a new object and converts the entries20:36
lisitsynHeikoS: I am a bit worried about adding consts around20:37
lisitsynbecause swig would multiplicate20:37
@HeikoSwe can also remove const20:37
@HeikoSbut that is not nice20:37
@HeikoSwe want const labels and const features20:37
@HeikoSfor thread safety etc20:38
@HeikoSI guess20:38
@HeikoSthe problem is the casting20:38
@HeikoSthe labels conversion thingi20:38
@HeikoSif it creates a new obj all is good20:38
@HeikoSbut the casting gives me a reference to the same thing20:38
@HeikoSso there  need to respect the const20:38
@HeikoSi think20:39
@HeikoSI will just add20:39
@HeikoSSome<const CMulticlassLabels> multiclass_labels(const CLabels* orig);20:39
@HeikoSit is just internal20:39
@HeikoSnot exposed20:39
lisitsynah ok20:39
lisitsynif it is not swig20:39
lisitsynthat sounds ok20:39
lisitsynlet me just check one thing20:39
lisitsynah ok nevermind20:39
lisitsynlet me know if it fails20:40
@HeikoSit is duplicate code20:40
-!- HeikoS [~heiko@host86-128-122-53.range86-128.btcentralplus.com] has quit [Excess Flood]20:40
lisitsynhahah20:40
-!- HeikoS [~heiko@host86-128-122-53.range86-128.btcentralplus.com] has joined #shogun20:40
-!- mode/#shogun [+o HeikoS] by ChanServ20:40
@HeikoShttps://github.com/shogun-toolbox/shogun/blob/develop/src/shogun/labels/MulticlassLabels.cpp#L22620:40
@HeikoSlisitsyn: ^20:41
lisitsynhaha FLOODER20:41
@HeikoShaha :D20:41
lisitsynHeikoS: just one quite abstract idea20:41
lisitsynwould it be possible to ensure constness some other way20:42
lisitsynnot using the const? :)20:42
lisitsynbut nevermind20:42
@HeikoSi dont like all the duplicate code20:45
@HeikoSlisitsyn:20:45
lisitsynyeah me neither20:45
@HeikoSmaybe template with trait?20:46
lisitsynyeah20:46
lisitsynthat's what I thought of20:46
@HeikoSdoes is_same work for that?20:46
lisitsynspecialize for std::decay<T> == CLabels20:46
@HeikoSah20:46
@HeikoSmaybe we are thinking of different stuff20:46
@HeikoSah no20:48
@HeikoSlisitsyn: I dont think it works20:48
@HeikoSSome<CMulticlassLabels> multiclass_labels(CLabels* orig);20:48
lisitsynyeah20:48
@HeikoSwhats the template type?20:48
@HeikoSbecause we want to add const on both CLabels and CMulticlassLabels20:48
lisitsynyeah not trivial20:49
lisitsynHeikoS: I don't see any easy way yet20:50
@HeikoSmacros :D20:50
@HeikoSthe best (tm)20:50
@HeikoSlisitsyn: discards qualifiers nightmare20:56
lisitsynHeikoS: our objects semantics is not really well suited for constness20:57
@HeikoSlisitsyn: how to ensure constness?20:57
@HeikoSI have already blocked put of CFeatures20:57
@HeikoSvia overloading it20:57
@HeikoSbut i think dropping c++ const is not the best idea20:57
@HeikoSneed to patch Some::from_raw, SGObject::as, and the labels20:59
@HeikoSgnaaaa20:59
@HeikoSok dinner timer will do this later20:59
@HeikoSsee you20:59
-!- HeikoS [~heiko@host86-128-122-53.range86-128.btcentralplus.com] has quit [Quit: Leaving.]20:59
shogitter(shubham808) Hi Anyone around ?21:13
lisitsynshubham808 hey21:13
shogitter(shubham808) How do I write obj->as<CBinaryLabels>() in python example21:14
shogitter(shubham808) Currently in python it's like LabelsFactory.to_binary(obj) but we are getting rid of CLabelsFactory21:17
lisitsynuh we need Heiko there21:45
-!- witness_ [uid10044@gateway/web/irccloud.com/x-rxuhfdcuqgtjhdrq] has joined #shogun23:18
--- Log closed Thu May 10 00:00:00 2018

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