IRC logs of #shogun for Wednesday, 2019-02-06

--- Log opened Wed Feb 06 00:00:59 2019
-!- bbc_ [67f98750@gateway/web/freenode/ip.103.249.135.80] has joined #shogun08:36
-!- bbc_ [67f98750@gateway/web/freenode/ip.103.249.135.80] has quit [Quit: Page closed]08:53
-!- bbc_ [67f98750@gateway/web/freenode/ip.103.249.135.80] has joined #shogun09:13
-!- vishal_ [~vishal@103.249.135.80] has joined #shogun09:17
-!- bbc_ [67f98750@gateway/web/freenode/ip.103.249.135.80] has quit [Client Quit]09:18
-!- witness [uid10044@gateway/web/irccloud.com/x-niuakhblmacuwpdn] has joined #shogun09:19
vishal_Hii i trying to compile shogun but i am stucked while building cxx object src/shogun/cmakefiles/libshogun.dir/mathematics/linalg/backend/eigen/BasicOps.cpp.o from the last 2 hours and also my pc freezed.Can someone help me with this i am using ubuntu 18.0409:21
-!- ferigar [50fe964f@gateway/web/freenode/ip.80.254.150.79] has joined #shogun09:37
-!- vishal_ [~vishal@103.249.135.80] has quit [Remote host closed the connection]09:50
-!- ferigar [50fe964f@gateway/web/freenode/ip.80.254.150.79] has quit [Quit: Page closed]11:28
-!- shubham808 [~atom@14.139.240.247] has joined #shogun12:01
-!- wiking_ [~wiking@bmi-airport-1.inf.ethz.ch] has joined #shogun12:08
-!- wiking_ is now known as wiking12:08
-!- wiking [~wiking@bmi-airport-1.inf.ethz.ch] has quit [Changing host]12:09
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun12:09
-!- mode/#shogun [+o wiking] by ChanServ12:09
-!- Lefteris [~lefteris@2a05:b400:100:100:e966:c6b5:2179:5cee] has quit [Quit: Leaving]12:27
-!- gf712 [905208e3@gateway/web/freenode/ip.144.82.8.227] has joined #shogun12:51
@wikinggf712: are you here?13:09
gf712wiking yup13:15
@wikingok i have a stupid c++ question13:15
@wikingsay i have template<typename A> class X;13:16
@wikingand i'd like to have something like template<typename A> class Y: public X<A>13:16
@wikingwhere in Y i extend some functionality and then further inherit from Y13:16
@wikingif i do this13:17
@wikingi cannot get access to the member vars of X13:17
@wikingin class Z: public Y<O>13:17
gf712hmmm13:17
gf712let me replicate it13:17
gf712wiking: how are you trying to access the members btw?13:28
@wikingthis->13:28
@wikingthat works13:28
@wikinguntil i have a static member var13:28
@wikingin class X13:28
@wiking:)13:28
gf712hmm ok, so the static member var is part of X13:30
gf712and you can access in Y but not in Z?13:30
@wikingX13:31
@wikingbut i think i've just hacked it13:31
@wikingit's aweful13:31
gf712so what is happening?13:35
gf712I can't see why it would be an issue13:35
@wikingmmm it still doesn't work :(13:36
@wikingi mean it compiules13:36
@wikingbut the vtable is fucked up13:36
@wikinglibc++abi.dylib: Pure virtual function called!13:36
-!- shubham808 [~atom@14.139.240.247] has quit [Ping timeout: 246 seconds]13:37
gf712wiking but if it is static can't you do X<T>::member?13:49
gf712inside of y?13:49
gf712wiking also where is the static member defined?13:58
@wikingin the template X13:59
@wikingok now i get what's the problem13:59
@wikingalmost13:59
@wiking/Users/wiking/shogun/src/interfaces/coreml/CoreMLConverter.h:44:5: warning: call to pure virtual member function 'input_feature_type' has undefined behavior; overrides of 'input_feature_type' in subclasses are not available in the constructor of 'CoreMLConverter'14:00
@wiking                                this->input_feature_type();14:00
@wiking                                ^14:00
@wiking/Users/wiking/shogun/src/interfaces/coreml/GLMRegressorConverter.cc:14:66: note: in instantiation of member function 'shogun::coreml::CoreMLConverter<shogun::CLinearMachine, CoreML::Specification::GLMRegressor>::CoreMLConverter' requested here14:00
@wikingGLMRegressorConverter::GLMRegressorConverter(const CMachine* m): GLMRegressorConverterType(m)14:00
@wiking                                                                 ^14:00
@wiking/Users/wiking/shogun/src/interfaces/coreml/CoreMLConverter.h:73:4: note: 'input_feature_type' declared here14:00
@wiking                        virtual ::CoreML::Specification::FeatureType* input_feature_type() const = 0;14:00
@wikingso basically14:00
@wikingi have a template class CoreMLConverter14:00
@wikingthat calls a pure virtual function on itself....14:00
@wikingGLMRegressorConverter: public shogun::coreml::CoreMLConverter<shogun::CLinearMachine, CoreML::Specification::GLMRegressor>14:00
@wikingi'm not so sure why it says14:01
@wikingoverrides of 'input_feature_type' in subclasses are not available in the constructor14:01
@wikingarg14:02
@wiking"A similar restriction exists around calling virtual methods in constructors. You can't call a virtual method for a subclass whose constructor has not yet run."14:02
@wikingthis is very unhandy14:03
@wiking:)14:03
@wikingcoz now i have to actually copypaste one line around14:04
@wikingin the ctors14:04
gf712oh right14:15
gf712hmmm that is annoying...14:16
gf712ah btw when you had that issue with the lambda call disappearing with optimisation couldn't you have used volatile?14:18
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]14:51
-!- shubham808 [~atom@14.139.240.247] has joined #shogun14:51
-!- vishal_ [~vishal@103.249.135.80] has joined #shogun15:06
-!- wiking [~wiking@bmi-airport-1.inf.ethz.ch] has joined #shogun15:08
-!- wiking [~wiking@bmi-airport-1.inf.ethz.ch] has quit [Changing host]15:08
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun15:08
-!- mode/#shogun [+o wiking] by ChanServ15:08
-!- vishal3410 [67f98750@gateway/web/freenode/ip.103.249.135.80] has joined #shogun15:11
-!- vishal_ [~vishal@103.249.135.80] has left #shogun ["Good Bye"]15:12
vishal3410Hii i trying to compile shogun but i am stucked while building cxx object src/shogun/cmakefiles/libshogun.dir/mathematics/linalg/backend/eigen/BasicOps.cpp.o from hours after 61% completion.Can someone help me with this i am using ubuntu 18.04 , i also tried removing build file and reinstalling everything from scratch but the problem remains15:17
gf712Hi vishal3410 can you be more specific about the error you got?15:32
vishal3410i haven't got any error messages but it just stuck at 61% completion from the past 3 hours nothing happens further, i dont think it requires that much time for compilation15:42
gf712oh right, the objects created in that file are quite memory intensive15:43
gf712are you using several cores when you compile?15:43
gf712i.e. make -j415:43
gf712in that directory*15:44
vishal3410no , I was just following install.md page in docs, compiling using just 'make'15:51
gf712ok, that is very odd. how much ram do you have in your system? and are you using a vm or docker?15:53
gf712did you check the memory usage during the compilation at that step with something like top/htop?15:53
vishal34104gb ram ,no i am not using vm or docker15:58
-!- witness [uid10044@gateway/web/irccloud.com/x-niuakhblmacuwpdn] has quit [Quit: Connection closed for inactivity]15:59
gf712so what happens when you abort and then run make again?16:09
gf712without cleaning or removing anything16:09
vishal3410yes16:10
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]16:15
vishal3410but i have tried removing build file and again install everything from scratch but got stuck at same place16:17
-!- wiking [~wiking@inf-ise-etx-dock-1-111.ethz.ch] has joined #shogun16:21
-!- wiking [~wiking@inf-ise-etx-dock-1-111.ethz.ch] has quit [Changing host]16:21
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun16:21
-!- mode/#shogun [+o wiking] by ChanServ16:21
gf712vishal3410 maybe you can check the memory usage when you compile? my assumption is that there is not enough memory available in your system16:26
vishal3410ok i will check the memory usage16:30
-!- vishal3410 [67f98750@gateway/web/freenode/ip.103.249.135.80] has quit [Ping timeout: 256 seconds]16:37
@wikinggf712: ping?16:39
@wikinggf712: ping me when u got like 10 mins16:44
gf712wiking yes I am here16:52
gf712what's up?16:52
@wikingok16:52
@wikingso16:52
@wikingthere are cases where we need a paramater that should have something like an 'auto' value meaning they should be set during train time16:53
@wikinglike polykernel or gaussian kernel16:53
@wikingif gamma = AUTO then gamma = 1/num_features16:53
@wikingso now the question how to mark these values?16:53
@wikingdo we wanna add a tag for this?16:53
@wiking:)16:53
@wikingi mean we could add something like16:53
@wikingNaN = auto set16:54
@wikingbut what if we have some other special cases? :)16:54
@wikingsee what i mean?16:54
gf712ok, I am not sure what you are referring to..16:54
gf712is this still part of the coreml stuff?16:54
@wikingno16:57
@wikingso imagine you have16:57
@wikingvarious model parameters16:57
@wikingand those should be set to some good default value when you create the object16:57
@wikingbut if the parameter actually depends on the input16:57
gf712ahhhh16:58
@wikingthen they are only available runtime16:58
gf712ok ok16:58
gf712yes I understand now16:58
@wikingso we need to be able to somehow mark a paramater16:58
@wikingthat is should be autoset16:58
@wikingwe can start with using some custom edge-case values16:58
@wikingsee NaN16:58
@wikingbut that doesn't scale16:58
@wikingmeaning what if there are more edge cases than 'auto'16:58
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]16:59
-!- vishal3410 [67f98750@gateway/web/freenode/ip.103.249.135.80] has joined #shogun17:09
-!- wiking [~wiking@bmi-airport-1.inf.ethz.ch] has joined #shogun17:11
-!- wiking [~wiking@bmi-airport-1.inf.ethz.ch] has quit [Changing host]17:11
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun17:11
-!- mode/#shogun [+o wiking] by ChanServ17:11
@wikinggf712: sorru17:12
@wikingi had to drop out17:12
@wikingcan u copy-paste anything you wrote after17:12
gf712no problem17:12
@wiking"meaning what if there are more edge cases than 'auto' "17:12
gf712no worries I was just waiting for you to reappear17:12
gf712you disappeared instantly17:12
@wikingkk17:12
gf712would it be possible to do some currying?17:13
@wikingso there's one way to mark it with a new bit value in the AnyParamater17:13
gf712or is too much work?17:13
@wikingcurrying?17:13
gf712so partially call a function17:13
gf712and then at runtime run it17:14
gf712and it returns the value17:14
@wikingi mean say we have a float64_t param17:14
@wiking:)17:14
@wikinghow would you curry this?17:15
@wikingi mean currently we do SG_ADD ...17:15
gf712so what were you about to say with the AnyParameter?17:16
@wikingi mean currenlty we have17:16
@wikingenum class ParameterProperties17:16
@wiking{17:16
@wikingNONE = 0,17:16
@wikingHYPER = 1u << 0,17:16
@wikingGRADIENT = 1u << 1,17:16
@wikingMODEL = 1u << 217:16
@wiking};17:16
@wikingwe could use this right? :)17:16
@wikingi mean it's aweful17:16
@wikingbut say when you do put17:16
gf712to tell that the parameter will be assigned a value at runtime?17:16
@wikingyes17:16
@wikingand put for that paramater17:17
@wikingwould invalidate that flag17:17
@wikingand then basically its up to the implementor17:17
@wikingto see if the given flag is set or not17:17
@wikingParameterProperties::AUTO17:17
gf712you mean so that you don't mess it each time you run>?17:17
@wikingor something17:17
@wikingand you do a check for ParameterProperties::AUTO17:17
@wikingif that's true then you set the variable runtime17:18
@wikingif ParameterProperties::AUTO is not set then you take the value itself17:18
gf712I guess we could add a class member in a base class that does such a check?17:18
gf712and pass it a lambda and the return value of the lambda is return when it is called?17:19
gf712is it more or less what you were thinking?17:19
@wikingmmm we dont need the lambda17:19
@wikingjust need to check whether that bit is set17:20
@wikingthe rest could be done on implementation side17:20
@wikinghowever you want it17:20
@wikingi mean if you are the model implementor17:20
gf712hmm but then you end up with this if else block right?17:20
gf712whereas you could just call such a function somewhere hidden in init17:21
gf712and it would know when to return the value given a function call17:21
gf712maybe that's just overcomplicating it unnece17:21
gf712Unnecessarily17:22
-!- vishal3410 [67f98750@gateway/web/freenode/ip.103.249.135.80] has quit [Quit: Page closed]17:22
@wikingmmmm17:22
gf712so basically what you are saying is have a if m_value.has_property(ParameterProperties::AUTO) do this else nothing?17:26
gf712and have this at the start of train17:26
@wikingwell17:29
@wikingdoesn't have to be train17:29
@wikingit all depends what you implement17:29
@wikingif it's a kernel17:29
@wikingthen init(cfeatures,cfeatures)17:29
@wikingshoudl be sufficient17:29
gf712yup, I just think it would be cool if that could be hidden from the implementation17:32
gf712so in the implementation you just mark it as auto and what it should return when called for the first time17:33
gf712all in one line in init17:33
@wikingah17:33
@wikingso that you can provide a lambda for calculating? ok but then how do you know what params you need to pass for the lambda17:34
@wikingand who calls that lambda?17:34
gf712that is the part I don't know haha17:34
gf712the params you can pass by reference17:34
@wikingyou mean you past &this to the lambda?17:35
gf712for example17:35
@wikingmmm17:35
@wikingk17:35
@wikingwe could try17:35
gf712not sure if it works17:35
@wikinggf712: we need this for eaxmple in case PolyKernel17:36
@wikingand GaussianKernel17:36
@wikingfor setting the value of gamma17:36
gf712just thinking it would be easier for future devel17:36
@wikingmmmm17:36
@wikingnow the funny question is17:36
@wikingwhat if you have17:36
@wikingHYPER | AUTO :)17:36
@wikingah hyou anyways will call a put17:36
@wikingthat will invalidate AUTO17:36
gf712yes17:37
@wikingk17:37
@wikinglemme try17:37
@wikingbut first i need to squash some bugs that i've managed to find with converting things to coreml17:37
@wiking:D17:37
gf712haha17:37
gf712basic stuff?17:37
@wikingyeah17:37
@wikinglike SVRLight with LinearKernel gives totally differnet values17:37
@wikingwhen you do apply17:38
@wikingin shogun17:38
@wikingand when you export the model to coreml17:38
@wiking:)17:38
@wikingbut all the params are the SAME17:38
@wiking:D17:38
gf712oh... does it make a big difference in prediction quality?17:39
@wikingyes17:39
@wiking:)17:39
@wikingi mean *TOTALLY* differnet17:39
@wikingneed to debug wtf is happening17:43
gf712hmm17:47
gf712so which ones have bugs?17:47
gf712I can have a look tomorrow17:47
gf712just post a list and I'll help out17:47
gf712preferably with a script to run and see the diffs :D17:48
@wikinggf712: i'm still wondering how the hell to export the coreml converter part to18:15
@wikingpython intefrace18:15
@wikingor any swig interface18:15
-!- gf712 [905208e3@gateway/web/freenode/ip.144.82.8.227] has quit [Ping timeout: 256 seconds]18:17
@wikingok i think i fixed it18:18
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]18:35
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun19:00
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Changing host]19:00
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun19:00
-!- mode/#shogun [+o wiking] by ChanServ19:00
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]20:23
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun20:31
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Changing host]20:31
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun20:31
-!- mode/#shogun [+o wiking] by ChanServ20:31
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]22:06
-!- shubham808 [~atom@14.139.240.247] has quit [Remote host closed the connection]22:11
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun22:17
-!- mode/#shogun [+o wiking] by ChanServ22:17
-!- shogun-buildbot [~shogun-bu@7nn.de] has quit [Remote host closed the connection]22:37
-!- shogun-buildbot [~shogun-bu@7nn.de] has joined #shogun22:37
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]23:10
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has joined #shogun23:13
-!- wiking [~wiking@c-185-45-237-122.customer.ggaweb.ch] has quit [Changing host]23:13
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun23:13
-!- mode/#shogun [+o wiking] by ChanServ23:13
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 240 seconds]23:17
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun23:21
-!- mode/#shogun [+o wiking] by ChanServ23:21
-shogun-buildbot:#shogun- Build FC23 - libshogun #587 is complete: Success [build successful] - http://buildbot.shogun-toolbox.org:8080/#builders/27/builds/58723:22
--- Log closed Thu Feb 07 00:00:00 2019

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