IRC logs of #shogun for Friday, 2019-01-25

--- Log opened Fri Jan 25 00:00:42 2019
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun00:54
-!- mode/#shogun [+o wiking] by ChanServ00:54
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 245 seconds]00:58
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun02:16
-!- mode/#shogun [+o wiking] by ChanServ02:17
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 250 seconds]02:21
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun04:18
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Changing host]04:18
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun04:18
-!- mode/#shogun [+o wiking] by ChanServ04:18
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]05:43
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun06:04
-!- mode/#shogun [+o wiking] by ChanServ06:04
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 245 seconds]06:08
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun06:34
-!- mode/#shogun [+o wiking] by ChanServ06:35
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 245 seconds]06:39
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun07:15
-!- mode/#shogun [+o wiking] by ChanServ07:15
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 240 seconds]07:19
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun07:52
-!- mode/#shogun [+o wiking] by ChanServ07:52
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]08:03
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun08:38
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Remote host closed the connection]08:39
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun08:44
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Remote host closed the connection]08:57
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun09:09
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Remote host closed the connection]09:15
-!- gf712 [8028b333@gateway/web/freenode/ip.128.40.179.51] has joined #shogun09:37
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun09:40
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Remote host closed the connection]09:47
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun09:49
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Ping timeout: 246 seconds]09:54
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun10:02
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Remote host closed the connection]10:07
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun10:10
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Ping timeout: 240 seconds]10:14
-!- wiking_ [~wiking@2001:67c:10ec:5784:8000::3ff] has joined #shogun10:46
-!- shubham808 [~atom@14.139.240.247] has joined #shogun10:51
-!- gf712 [8028b333@gateway/web/freenode/ip.128.40.179.51] has quit [Ping timeout: 256 seconds]11:00
wiking_yo11:06
-!- wiking_ is now known as wiking11:07
-!- wiking [~wiking@2001:67c:10ec:5784:8000::3ff] has quit [Changing host]11:07
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun11:07
-!- mode/#shogun [+o wiking] by ChanServ11:07
@wikinganybody around?11:10
@wikinglisitsyn: ?11:10
@wikingi need somebody who's on the mailing list wuwei[m]?11:11
lisitsynwiking: hello11:11
@wikingok works11:11
@wikingnevermind11:11
@wikingbut since you are around11:11
@wikinglisitsyn: https://github.com/shogun-toolbox/shogun/blob/develop/src/shogun/kernel/PolyKernel.h#L2511:11
@wikinghttps://github.com/shogun-toolbox/shogun/blob/develop/src/shogun/kernel/PolyKernel.cpp#L61-L6211:11
@wikingseriously? :D11:11
@wikingour polykernel seems to suck a little bit11:12
@wiking:)11:12
@wikingor you dare to comment on that?11:12
@wiking:)11:12
lisitsynwiking: why?11:14
@wikingcouldn't it be C11:14
@wiking+c11:14
@wikingas it says in formula11:14
@wikingnot a constant +111:14
@wikingif it's inhom11:14
@wikingsee the doxygen part11:14
lisitsynoh well I guess it is just c=0/111:15
lisitsyn:)11:15
@wikingyeah11:15
@wikingthat's the problem11:15
@wikingin coreml it's actually https://github.com/shogun-toolbox/shogun/blob/develop/src/interfaces/coreml/SVM.proto#L4811:16
@wikingso there's even a scaler11:16
lisitsynuh okay11:16
@wikingso11:16
@wikingdont we wanna actually 'fix' this11:16
@wikingor make our one more advanced :DDD11:16
lisitsynI guess needs patching yeah11:17
@wikingkk11:18
@wikingman11:18
@wikingevvery getter is a non-const in shogun11:18
@wiking:DDD11:18
@wikingi know i know11:18
@wikingtell dont ask11:18
@wiking"tell dont ask" principal11:18
lisitsynwiking: it is not intentional I believe11:20
lisitsynit is easy to forgot :)11:20
@wikinglisitsyn: any hard feelings with the registry/factory design: https://github.com/shogun-toolbox/shogun/blob/feature/coreml/src/interfaces/coreml/CoreMLConverter.h#L45-L8611:22
lisitsynlooks ok11:22
@wikingk11:22
lisitsynwiking: I usually prefer operator() to call some other method11:23
lisitsynso it can be called from pointer nicely11:23
@wikinghttps://github.com/shogun-toolbox/shogun/blob/feature/coreml/src/interfaces/coreml/CoreMLConverter.cc#L4611:24
@wikingbut ugly or?11:24
-!- shubham808 [~atom@14.139.240.247] has quit [Quit: Leaving.]11:25
@wikingha11:30
@wikinglisitsyn: std::atomic_bool m_is_trained = { false };11:30
@wikingcan i add this to parammap? :D11:30
lisitsynyeah I think so11:31
@wikingi guess i need to extend anyparam11:33
@wikingmmm11:34
@wikinghttps://pastebin.com/BFS0UtEW11:34
@wikingi guess it's clonee11:34
@wikinglisitsyn: ^11:34
lisitsynwiking: oh not only that11:35
lisitsynalso operator=11:35
lisitsynolala11:35
@wiking2) Atomic variables are not CopyAssignable.11:35
@wiking:)11:35
lisitsynnot sure11:35
lisitsynthen it might not work11:35
@wikingi mean currenlty it doesn't work :)))11:35
@wikingnot only because of this11:35
@wikingbut of course the old Parameter.cpp has no idea how to serialize this11:36
@wikingi mean of course i can play with a standard bool11:36
@wikingand set it along with the atomic11:36
@wikingbut11:36
@wiking:)11:36
@wikingor mutex it :>>>11:36
@wikingbut lets assume we have dropped Parameter.cpp11:36
@wikingit'd be great to be able to add and atomic to the param map....11:37
@wikingtemplate< class T >11:37
@wikingstruct atomic_ref;11:37
@wikingis only c++20 :)11:37
lisitsynwiking: yeah sure11:40
lisitsynit just takes to implement special clone and assignment and stuff11:40
@wikingyeah11:41
@wikingthat's what i've thought11:41
@wikingbut i've realised i should have used std::atomic_flag here :)11:41
@wikingbut yeah11:41
@wikinggod bless for is_copy_constructible11:48
@wikingmmm why atomic is not move assignable?11:54
@wikinghttps://stackoverflow.com/a/14183013/279887511:55
@wikingapparently11:55
-!- gf712 [905208ce@gateway/web/freenode/ip.144.82.8.206] has joined #shogun13:28
@wikinglisitsyn: around?13:53
lisitsynwiking: yes13:53
@wikingdo you know in kernel machine why only store the indicies of the support vectors?13:53
lisitsynwiking: what else can we store?13:54
@wikingnot their values13:54
@wiking?13:54
lisitsynwiking: values can not exist at all13:54
lisitsynit is all in the kernel13:54
lisitsynI mean the kernel might be precomputed13:54
lisitsynor computed on-the-fly13:54
lisitsynso I guess index is the only representer of an object13:55
@wikingok so i ask differently: what the hack to they mean by SV value in case of coreml13:56
@wikinghttps://github.com/cjlin1/libsvm/blob/master/svm.h#L12-L1613:57
lisitsynwiking: I think it is alpha14:18
lisitsynand index14:18
lisitsynbut not sure14:19
@wikingset_alpha(i, model->sv_coef[0][i]);14:19
@wiking:(14:19
@wikingin libSVR for example14:19
@wikingso those are the coefficients (alpha)14:19
@wikingok i got it14:22
@wikingso basically those values are the values of the given sample14:22
@wikingbasically you do get_sample(nsv_index) and then just dump it's feature values14:23
@wikingas that's the actual support vector14:23
@wikingthat sample14:23
@wikingicky14:24
@wikingwhat do you do with a precomputed kernel?14:25
@wiking:)14:25
lisitsynwiking: don't get the q :)14:27
lisitsynyou mean what is it useful for? I don't know14:27
@wikingmmm i guess i can still use the lhs of the kernel14:27
@wikingor?14:27
@wikinglets see14:27
@wiking :D14:27
lisitsynyeah maybe14:27
-!- gf712_ [8028b333@gateway/web/freenode/ip.128.40.179.51] has joined #shogun14:29
-!- gf712_ [8028b333@gateway/web/freenode/ip.128.40.179.51] has quit [Client Quit]14:29
-!- gf712 [905208ce@gateway/web/freenode/ip.144.82.8.206] has quit [Ping timeout: 256 seconds]14:31
-!- gf712 [8028b333@gateway/web/freenode/ip.128.40.179.51] has joined #shogun14:36
gf712wiking did you ever figure out how to change the static maps from within the lambda?14:41
@wikinggf712: yeah there was way too many optimization done there by the compiler14:42
@wikingso i wrapped it into a static object14:42
@wiking:P14:42
gf712ah, i see, that's good to know14:44
@wikingargfuck14:56
@wikinganybody knows a neat way to convert CFeatures to CdenseFeatures14:56
@wikingthat is typed14:56
@wikingmeaning CDenseFeatures<float> ...14:56
@wikinggf712: ^14:56
@wikingi dont wanna type out the actual switch14:56
@wiking:>14:56
@wikingbut i need the casting14:57
gf712wiking hmmm I am not the right person to ask.. I haven't really messed with that part of the code14:59
@wikingi mean it's more about types14:59
@wiking:)14:59
@wikingso CDenseFeatures is a template14:59
@wikingtemp arg is the type of dense features (int, bool, char etc.)15:00
@wikingand we actually know by an enum15:00
@wikingwhat is the type15:00
@wikingso i need somehow a nice way to do15:00
@wikingCFeatures* c15:00
gf712ah i see15:00
gf712you should just add a static typedef in there15:01
@wikingdynamic_cast<CDenseFeatures<c->gettype()>*>(c)15:01
gf712in the class15:01
gf712dynamic_cast<CDenseFeatures<c->gettype()>*>(c) is what you want to have?15:01
@wikingyeah basically i want this casting15:02
@wikingi mean i can create big switch15:02
gf712Why not add static typedef type = ST in Densefeatures instead?15:02
gf712or in CFeatures15:03
@wikingah and you mean then simply do15:03
gf712c::type15:03
@wikingdynamic_cast<CDenseFeatures<c::type>>...15:03
gf712yes15:03
@wikingk15:03
@wikinggood one15:03
@wiking:)15:03
gf712not sure if that will work though don't you need to do decltype(c)::type?15:04
@wikingwell15:05
@wikingsince i dont wanna add this to CFeatures. now15:05
@wikingi have already a switch for whether c is Dense15:05
@wikingand i'll just now add the type info to dense15:05
@wikingalthough yeah...15:10
@wikinghahaha15:10
@wikingCFeatures will/should not have this info though15:10
@wiking:)15:10
gf712what do you mean? it shoudn't know it's template type?15:12
@wikingi mean i have a CFeatures*15:17
@wikingand even if i add the type info for CDenseFeatures15:17
@wikingwith ::type15:17
@wikingwhat would be your dynamic_cast ? :D15:17
@wikingcoz Cfeatures::type does not exists15:18
gf712oh right, because it should be in CSGObject right?15:19
gf712ah wait15:20
gf712hmmm15:20
@wikingno it's a CFeatures* ;)15:27
@wikingbut yeah15:27
gf712oh you can get the type from the enum with the code I wrote in type_case.h15:32
gf712ah no, that is the other way around15:33
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]15:37
-!- shubham808 [~atom@14.139.240.247] has joined #shogun17:22
-!- gf712 [8028b333@gateway/web/freenode/ip.128.40.179.51] has quit [Quit: Page closed]18:19
-!- gf712 [560fc4e5@gateway/web/freenode/ip.86.15.196.229] has joined #shogun19:55
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun20:22
-!- mode/#shogun [+o wiking] by ChanServ20:22
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 246 seconds]20:26
-!- gf712 [560fc4e5@gateway/web/freenode/ip.86.15.196.229] has quit [Ping timeout: 256 seconds]21:40
-!- gf712 [~Mutter@cpc147930-brnt3-2-0-cust228.4-2.cable.virginm.net] has joined #shogun22:41
-!- gf712 [~Mutter@cpc147930-brnt3-2-0-cust228.4-2.cable.virginm.net] has quit [Client Quit]22:41
-!- shubham808 [~atom@14.139.240.247] has quit [Quit: Leaving.]23:12
--- Log closed Sat Jan 26 00:00:44 2019

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