IRC logs of #shogun for Wednesday, 2018-07-04

--- Log opened Wed Jul 04 00:00:53 2018
-!- witness_ [uid10044@gateway/web/irccloud.com/x-vtekpedditqhwgei] has joined #shogun01:11
-!- HeikoS [~heiko@2a00:23c5:e10a:5c00:e59f:8ac6:d583:5195] has joined #shogun11:13
-!- mode/#shogun [+o HeikoS] by ChanServ11:13
@HeikoSlisitsyn: lets meeerge lazy12:12
lisitsynHeikoS: ok let me check the test12:12
@HeikoSlisitsyn: I had a thought btw12:13
@HeikoSlisitsyn: if we moved to static polymorphism in shoguns c++ interface everywhere12:13
@HeikoSthen moving to Some will be much easier12:13
lisitsyn\infty compile time12:13
lisitsynI am afraid of that12:13
@HeikoSas not more problems like Some<Features> vs Some<DenseFeatures>12:13
lisitsynit could get really bad12:13
@HeikoSyep12:13
lisitsyncan you explain a bit12:13
@HeikoSi guess that is true as well12:13
lisitsynwhy does that solve12:14
lisitsynSome<Features> vs Some<DenseFeatures>12:14
@HeikoSbecause Some<Features> is not used12:14
@HeikoSjust the actual type12:14
lisitsynyeah but how does that help12:14
@HeikoSwe never have the problem of casting12:15
@HeikoSas we would now12:15
@HeikoSsay the view PR12:15
@HeikoSCDenseFeatures<T>* CDenseFeatures::view(...)12:15
@HeikoSSome<CDenseFeatures<T>> CDenseFeatures::view(...)12:16
@HeikoSyou call that12:16
@HeikoSand then you pass the thing on12:16
@HeikoSto a machine12:16
@HeikoSthat accepts Some<CFeatures>12:16
@HeikoSas we do with the raw pointers12:16
@HeikoSanyways12:17
@HeikoSlisitsyn: had another Q12:17
@HeikoSin the CRTP12:17
@HeikoShttps://docs.google.com/document/d/1qNsj2sTvM5R8GUTaj306olimPQyERnXRX1TkVOX6KSg/edit12:17
@HeikoSwe need some multiple inheritance there12:17
lisitsynyes12:17
@HeikoSsince LARS is a linear machine12:17
@HeikoSso added that12:17
lisitsynuhmm12:18
lisitsynyeah probably but I am a bit unsure if this works now12:18
@HeikoSany other way?12:18
lisitsynHeikoS: does templated inheritance work?12:19
lisitsyn:D12:19
lisitsynlike that12:19
lisitsynI think no12:19
@HeikoSthe way you changed>12:19
@HeikoS?12:19
@HeikoSwhy not12:20
lisitsynI think it is invalid12:20
@HeikoSthe thing currently in the doc?12:20
lisitsynyes12:20
lisitsynbut if that worked12:20
lisitsynyou don't need MI12:20
@HeikoSok12:20
lisitsynI think it should not work12:20
@HeikoSotherwise we just move the CLinearMachine as a base class as was before?12:20
@HeikoSI dont see why it would not work like this?12:21
lisitsynhmm12:22
lisitsynit works in toy example12:22
lisitsynHeikoS: https://ideone.com/NqIFz512:23
lisitsyncrazy12:23
@HeikoSlisitsyn: to me seems like mix in12:23
lisitsynHeikoS: ok then we can avoid MI12:23
lisitsynHeikoS: do you like that solution?12:24
@HeikoShttps://github.com/shogun-toolbox/shogun/blob/develop/src/shogun/machine/IterativeMachine.h12:24
lisitsynah alright you used that already12:24
lisitsyncool12:24
@HeikoShttps://github.com/shogun-toolbox/shogun/blob/develop/src/shogun/classifier/Perceptron.h#L2812:24
lisitsynlet's use that for dispatching then12:24
@HeikoSCRTP mixin for dispatching12:25
lisitsynhardbass school of C++12:26
lisitsynhah12:26
@HeikoShehe12:28
@HeikoSwe also have plicy12:28
@HeikoSany12:28
@HeikoSlots of stuff12:28
@HeikoStype traits12:28
@HeikoS:D12:28
lisitsynHeikoS: we've got to introduce some boost::hana12:30
lisitsynto do some computations compile-time12:30
lisitsynprecomputed linear models12:30
@HeikoSwhats that exactly? :D12:50
@HeikoSlisitsyn: ^12:50
lisitsynHeikoS: that's a joke :P12:50
lisitsynhana is some crazy metaprogramming library12:50
@HeikoScompile time model selection12:50
lisitsynyes!12:50
lisitsynfirst library to introduce that12:50
lisitsynwe can be12:50
@HeikoSlisitsyn: another Q13:03
@HeikoSlinear model13:03
@HeikoShas a member for weights13:04
@HeikoSand the type is float6413:04
@HeikoSbut features are templated type13:04
@HeikoSwouldnt we want to make linear model a template as well, and then make weights of type T13:04
@HeikoSi.e. if feature data type is template, why not make it in the machine13:04
-!- HeikoS [~heiko@2a00:23c5:e10a:5c00:e59f:8ac6:d583:5195] has quit [Ping timeout: 256 seconds]13:29
-!- witness_ [uid10044@gateway/web/irccloud.com/x-vtekpedditqhwgei] has quit [Quit: Connection closed for inactivity]13:42
-!- HeikoS [~heiko@eduroam-int-pat-8-112.ucl.ac.uk] has joined #shogun16:24
-!- mode/#shogun [+o HeikoS] by ChanServ16:24
-!- HeikoS [~heiko@eduroam-int-pat-8-112.ucl.ac.uk] has quit [Ping timeout: 260 seconds]16:30
-!- HeikoS [~heiko@untrust-out.swc.ucl.ac.uk] has joined #shogun16:45
-!- mode/#shogun [+o HeikoS] by ChanServ16:45
-!- HeikoS [~heiko@untrust-out.swc.ucl.ac.uk] has quit [Ping timeout: 265 seconds]19:37
--- Log closed Thu Jul 05 00:00:55 2018

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