--- Log opened Fri Jan 25 00:00:42 2019 | ||
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun | 00:54 | |
-!- mode/#shogun [+o wiking] by ChanServ | 00:54 | |
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 245 seconds] | 00:58 | |
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun | 02:16 | |
-!- mode/#shogun [+o wiking] by ChanServ | 02: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 #shogun | 04:18 | |
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Changing host] | 04:18 | |
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun | 04:18 | |
-!- mode/#shogun [+o wiking] by ChanServ | 04:18 | |
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection] | 05:43 | |
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun | 06:04 | |
-!- mode/#shogun [+o wiking] by ChanServ | 06:04 | |
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 245 seconds] | 06:08 | |
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun | 06:34 | |
-!- mode/#shogun [+o wiking] by ChanServ | 06:35 | |
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 245 seconds] | 06:39 | |
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun | 07:15 | |
-!- mode/#shogun [+o wiking] by ChanServ | 07:15 | |
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 240 seconds] | 07:19 | |
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun | 07:52 | |
-!- mode/#shogun [+o wiking] by ChanServ | 07: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 #shogun | 08: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 #shogun | 08: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 #shogun | 09: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 #shogun | 09:37 | |
-!- wiking_ [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun | 09: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 #shogun | 09: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 #shogun | 10: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 #shogun | 10: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 #shogun | 10:46 | |
-!- shubham808 [~atom@14.139.240.247] has joined #shogun | 10:51 | |
-!- gf712 [8028b333@gateway/web/freenode/ip.128.40.179.51] has quit [Ping timeout: 256 seconds] | 11:00 | |
wiking_ | yo | 11:06 |
---|---|---|
-!- wiking_ is now known as wiking | 11:07 | |
-!- wiking [~wiking@2001:67c:10ec:5784:8000::3ff] has quit [Changing host] | 11:07 | |
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun | 11:07 | |
-!- mode/#shogun [+o wiking] by ChanServ | 11:07 | |
@wiking | anybody around? | 11:10 |
@wiking | lisitsyn: ? | 11:10 |
@wiking | i need somebody who's on the mailing list wuwei[m]? | 11:11 |
lisitsyn | wiking: hello | 11:11 |
@wiking | ok works | 11:11 |
@wiking | nevermind | 11:11 |
@wiking | but since you are around | 11:11 |
@wiking | lisitsyn: https://github.com/shogun-toolbox/shogun/blob/develop/src/shogun/kernel/PolyKernel.h#L25 | 11:11 |
@wiking | https://github.com/shogun-toolbox/shogun/blob/develop/src/shogun/kernel/PolyKernel.cpp#L61-L62 | 11:11 |
@wiking | seriously? :D | 11:11 |
@wiking | our polykernel seems to suck a little bit | 11:12 |
@wiking | :) | 11:12 |
@wiking | or you dare to comment on that? | 11:12 |
@wiking | :) | 11:12 |
lisitsyn | wiking: why? | 11:14 |
@wiking | couldn't it be C | 11:14 |
@wiking | +c | 11:14 |
@wiking | as it says in formula | 11:14 |
@wiking | not a constant +1 | 11:14 |
@wiking | if it's inhom | 11:14 |
@wiking | see the doxygen part | 11:14 |
lisitsyn | oh well I guess it is just c=0/1 | 11:15 |
lisitsyn | :) | 11:15 |
@wiking | yeah | 11:15 |
@wiking | that's the problem | 11:15 |
@wiking | in coreml it's actually https://github.com/shogun-toolbox/shogun/blob/develop/src/interfaces/coreml/SVM.proto#L48 | 11:16 |
@wiking | so there's even a scaler | 11:16 |
lisitsyn | uh okay | 11:16 |
@wiking | so | 11:16 |
@wiking | dont we wanna actually 'fix' this | 11:16 |
@wiking | or make our one more advanced :DDD | 11:16 |
lisitsyn | I guess needs patching yeah | 11:17 |
@wiking | kk | 11:18 |
@wiking | man | 11:18 |
@wiking | evvery getter is a non-const in shogun | 11:18 |
@wiking | :DDD | 11:18 |
@wiking | i know i know | 11:18 |
@wiking | tell dont ask | 11:18 |
@wiking | "tell dont ask" principal | 11:18 |
lisitsyn | wiking: it is not intentional I believe | 11:20 |
lisitsyn | it is easy to forgot :) | 11:20 |
@wiking | lisitsyn: any hard feelings with the registry/factory design: https://github.com/shogun-toolbox/shogun/blob/feature/coreml/src/interfaces/coreml/CoreMLConverter.h#L45-L86 | 11:22 |
lisitsyn | looks ok | 11:22 |
@wiking | k | 11:22 |
lisitsyn | wiking: I usually prefer operator() to call some other method | 11:23 |
lisitsyn | so it can be called from pointer nicely | 11:23 |
@wiking | https://github.com/shogun-toolbox/shogun/blob/feature/coreml/src/interfaces/coreml/CoreMLConverter.cc#L46 | 11:24 |
@wiking | but ugly or? | 11:24 |
-!- shubham808 [~atom@14.139.240.247] has quit [Quit: Leaving.] | 11:25 | |
@wiking | ha | 11:30 |
@wiking | lisitsyn: std::atomic_bool m_is_trained = { false }; | 11:30 |
@wiking | can i add this to parammap? :D | 11:30 |
lisitsyn | yeah I think so | 11:31 |
@wiking | i guess i need to extend anyparam | 11:33 |
@wiking | mmm | 11:34 |
@wiking | https://pastebin.com/BFS0UtEW | 11:34 |
@wiking | i guess it's clonee | 11:34 |
@wiking | lisitsyn: ^ | 11:34 |
lisitsyn | wiking: oh not only that | 11:35 |
lisitsyn | also operator= | 11:35 |
lisitsyn | olala | 11:35 |
@wiking | 2) Atomic variables are not CopyAssignable. | 11:35 |
@wiking | :) | 11:35 |
lisitsyn | not sure | 11:35 |
lisitsyn | then it might not work | 11:35 |
@wiking | i mean currenlty it doesn't work :))) | 11:35 |
@wiking | not only because of this | 11:35 |
@wiking | but of course the old Parameter.cpp has no idea how to serialize this | 11:36 |
@wiking | i mean of course i can play with a standard bool | 11:36 |
@wiking | and set it along with the atomic | 11:36 |
@wiking | but | 11:36 |
@wiking | :) | 11:36 |
@wiking | or mutex it :>>> | 11:36 |
@wiking | but lets assume we have dropped Parameter.cpp | 11:36 |
@wiking | it'd be great to be able to add and atomic to the param map.... | 11:37 |
@wiking | template< class T > | 11:37 |
@wiking | struct atomic_ref; | 11:37 |
@wiking | is only c++20 :) | 11:37 |
lisitsyn | wiking: yeah sure | 11:40 |
lisitsyn | it just takes to implement special clone and assignment and stuff | 11:40 |
@wiking | yeah | 11:41 |
@wiking | that's what i've thought | 11:41 |
@wiking | but i've realised i should have used std::atomic_flag here :) | 11:41 |
@wiking | but yeah | 11:41 |
@wiking | god bless for is_copy_constructible | 11:48 |
@wiking | mmm why atomic is not move assignable? | 11:54 |
@wiking | https://stackoverflow.com/a/14183013/2798875 | 11:55 |
@wiking | apparently | 11:55 |
-!- gf712 [905208ce@gateway/web/freenode/ip.144.82.8.206] has joined #shogun | 13:28 | |
@wiking | lisitsyn: around? | 13:53 |
lisitsyn | wiking: yes | 13:53 |
@wiking | do you know in kernel machine why only store the indicies of the support vectors? | 13:53 |
lisitsyn | wiking: what else can we store? | 13:54 |
@wiking | not their values | 13:54 |
@wiking | ? | 13:54 |
lisitsyn | wiking: values can not exist at all | 13:54 |
lisitsyn | it is all in the kernel | 13:54 |
lisitsyn | I mean the kernel might be precomputed | 13:54 |
lisitsyn | or computed on-the-fly | 13:54 |
lisitsyn | so I guess index is the only representer of an object | 13:55 |
@wiking | ok so i ask differently: what the hack to they mean by SV value in case of coreml | 13:56 |
@wiking | https://github.com/cjlin1/libsvm/blob/master/svm.h#L12-L16 | 13:57 |
lisitsyn | wiking: I think it is alpha | 14:18 |
lisitsyn | and index | 14:18 |
lisitsyn | but not sure | 14:19 |
@wiking | set_alpha(i, model->sv_coef[0][i]); | 14:19 |
@wiking | :( | 14:19 |
@wiking | in libSVR for example | 14:19 |
@wiking | so those are the coefficients (alpha) | 14:19 |
@wiking | ok i got it | 14:22 |
@wiking | so basically those values are the values of the given sample | 14:22 |
@wiking | basically you do get_sample(nsv_index) and then just dump it's feature values | 14:23 |
@wiking | as that's the actual support vector | 14:23 |
@wiking | that sample | 14:23 |
@wiking | icky | 14:24 |
@wiking | what do you do with a precomputed kernel? | 14:25 |
@wiking | :) | 14:25 |
lisitsyn | wiking: don't get the q :) | 14:27 |
lisitsyn | you mean what is it useful for? I don't know | 14:27 |
@wiking | mmm i guess i can still use the lhs of the kernel | 14:27 |
@wiking | or? | 14:27 |
@wiking | lets see | 14:27 |
@wiking | :D | 14:27 |
lisitsyn | yeah maybe | 14:27 |
-!- gf712_ [8028b333@gateway/web/freenode/ip.128.40.179.51] has joined #shogun | 14: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 #shogun | 14:36 | |
gf712 | wiking did you ever figure out how to change the static maps from within the lambda? | 14:41 |
@wiking | gf712: yeah there was way too many optimization done there by the compiler | 14:42 |
@wiking | so i wrapped it into a static object | 14:42 |
@wiking | :P | 14:42 |
gf712 | ah, i see, that's good to know | 14:44 |
@wiking | argfuck | 14:56 |
@wiking | anybody knows a neat way to convert CFeatures to CdenseFeatures | 14:56 |
@wiking | that is typed | 14:56 |
@wiking | meaning CDenseFeatures<float> ... | 14:56 |
@wiking | gf712: ^ | 14:56 |
@wiking | i dont wanna type out the actual switch | 14:56 |
@wiking | :> | 14:56 |
@wiking | but i need the casting | 14:57 |
gf712 | wiking hmmm I am not the right person to ask.. I haven't really messed with that part of the code | 14:59 |
@wiking | i mean it's more about types | 14:59 |
@wiking | :) | 14:59 |
@wiking | so CDenseFeatures is a template | 14:59 |
@wiking | temp arg is the type of dense features (int, bool, char etc.) | 15:00 |
@wiking | and we actually know by an enum | 15:00 |
@wiking | what is the type | 15:00 |
@wiking | so i need somehow a nice way to do | 15:00 |
@wiking | CFeatures* c | 15:00 |
gf712 | ah i see | 15:00 |
gf712 | you should just add a static typedef in there | 15:01 |
@wiking | dynamic_cast<CDenseFeatures<c->gettype()>*>(c) | 15:01 |
gf712 | in the class | 15:01 |
gf712 | dynamic_cast<CDenseFeatures<c->gettype()>*>(c) is what you want to have? | 15:01 |
@wiking | yeah basically i want this casting | 15:02 |
@wiking | i mean i can create big switch | 15:02 |
gf712 | Why not add static typedef type = ST in Densefeatures instead? | 15:02 |
gf712 | or in CFeatures | 15:03 |
@wiking | ah and you mean then simply do | 15:03 |
gf712 | c::type | 15:03 |
@wiking | dynamic_cast<CDenseFeatures<c::type>>... | 15:03 |
gf712 | yes | 15:03 |
@wiking | k | 15:03 |
@wiking | good one | 15:03 |
@wiking | :) | 15:03 |
gf712 | not sure if that will work though don't you need to do decltype(c)::type? | 15:04 |
@wiking | well | 15:05 |
@wiking | since i dont wanna add this to CFeatures. now | 15:05 |
@wiking | i have already a switch for whether c is Dense | 15:05 |
@wiking | and i'll just now add the type info to dense | 15:05 |
@wiking | although yeah... | 15:10 |
@wiking | hahaha | 15:10 |
@wiking | CFeatures will/should not have this info though | 15:10 |
@wiking | :) | 15:10 |
gf712 | what do you mean? it shoudn't know it's template type? | 15:12 |
@wiking | i mean i have a CFeatures* | 15:17 |
@wiking | and even if i add the type info for CDenseFeatures | 15:17 |
@wiking | with ::type | 15:17 |
@wiking | what would be your dynamic_cast ? :D | 15:17 |
@wiking | coz Cfeatures::type does not exists | 15:18 |
gf712 | oh right, because it should be in CSGObject right? | 15:19 |
gf712 | ah wait | 15:20 |
gf712 | hmmm | 15:20 |
@wiking | no it's a CFeatures* ;) | 15:27 |
@wiking | but yeah | 15:27 |
gf712 | oh you can get the type from the enum with the code I wrote in type_case.h | 15:32 |
gf712 | ah no, that is the other way around | 15:33 |
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection] | 15:37 | |
-!- shubham808 [~atom@14.139.240.247] has joined #shogun | 17: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 #shogun | 19:55 | |
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun | 20:22 | |
-!- mode/#shogun [+o wiking] by ChanServ | 20: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 #shogun | 22: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!