IRC logs of #shogun for Friday, 2017-05-19

--- Log opened Fri May 19 00:00:36 2017
-!- HeikoS [~heiko@host-92-0-178-129.as43234.net] has joined #shogun00:07
-!- mode/#shogun [+o HeikoS] by ChanServ00:07
-!- HeikoS [~heiko@host-92-0-178-129.as43234.net] has quit [Ping timeout: 260 seconds]00:26
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Remote host closed the connection]01:18
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun01:22
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Remote host closed the connection]01:26
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun01:49
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Ping timeout: 240 seconds]01:54
-!- shixudongleo [~shixudong@182.55.169.157] has joined #shogun02:03
-!- shixudongleo_ [b637a99d@gateway/web/freenode/ip.182.55.169.157] has joined #shogun02:04
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun02:05
-!- shixudongleo_ [b637a99d@gateway/web/freenode/ip.182.55.169.157] has quit [Client Quit]02:06
-!- shixudongleo [~shixudong@182.55.169.157] has quit [Client Quit]02:06
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Ping timeout: 246 seconds]02:11
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun02:27
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Ping timeout: 240 seconds]02:32
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun03:24
-!- witness_ [uid10044@gateway/web/irccloud.com/x-ccbnqfoogsqqngpu] has quit [Quit: Connection closed for inactivity]03:45
-!- mikeling [uid89706@gateway/web/irccloud.com/x-xajsjdghpjfsjwiw] has joined #shogun03:49
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Remote host closed the connection]04:07
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun04:16
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Ping timeout: 240 seconds]04:27
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun04:33
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Ping timeout: 240 seconds]04:51
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun04:51
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Ping timeout: 240 seconds]05:07
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun05:34
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Ping timeout: 240 seconds]05:39
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun05:58
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Ping timeout: 240 seconds]06:03
-!- iglesiasg [~iglesiasg@217.119.234.214] has joined #shogun07:09
-!- mode/#shogun [+o iglesiasg] by ChanServ07:09
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun08:00
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Ping timeout: 255 seconds]08:04
-!- geektoni [~geektoni@93-34-234-212.ip52.fastwebnet.it] has joined #shogun09:07
geektoniping lisitsyn09:54
lisitsyngeektoni: hey09:55
geektoniDo you have some time? :) I have some question regarding Tags.09:55
lisitsynyes09:56
-!- HeikoS [~heiko@host-92-0-178-129.as43234.net] has joined #shogun09:56
-!- mode/#shogun [+o HeikoS] by ChanServ09:56
geektoniok, thanks :) first of all, https://github.com/shogun-toolbox/shogun/projects/609:56
geektoniis this a list related to my project?09:57
geektonior is just for you devs. Because I see things that I should also do while porting shogun to Tags.09:57
lisitsyngeektoni: for sure you're welcome to do anything from this project :)09:58
geektoni;) because for example, as is written there, equals and close will stop working, since we will drop the Parameter class.10:00
lisitsyngeektoni: yeah but before dropping we have to come up with working non-owning any10:00
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun10:00
lisitsynwhich can take a pointer and treat it as any10:00
geektoniso the final result will be have tags and also have parameters defined into the same class?10:02
lisitsynno it is just tags10:02
lisitsynin the end we drop TParameter thing10:02
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Ping timeout: 255 seconds]10:05
geektonimmh, I got a bit lost at the "any" part. I know it is used inside tags, but what do you mean by non-owning?10:09
lisitsyngeektoni: in SG_ADD we wrap the pointer to member variable10:09
lisitsynand we also have map<Tag, any> which stores all the parameters10:10
lisitsynwe want to make it able to use the same SG_ADD but to put it into this map10:10
lisitsynbut this means any should just take the pointer and do no memory management10:10
lisitsynby default it 'owns' the memory10:10
lisitsynso there is an idea to introduce different policies (you may check the any's code)10:11
lisitsynbut it is broken still10:11
lisitsynmeh :)10:11
lisitsynint value = 3;10:11
lisitsynauto any_value = wrap(&value);10:12
lisitsynvalue = 4;10:12
lisitsynassert any_value.get() == 4;10:12
lisitsynthis works10:12
lisitsynbut10:12
lisitsynany_value = any(8);10:12
lisitsynkaboom10:12
geektonimmh, I understand.10:16
geektonibut I thought that register_member() was enough to register a parameter inside the map.10:17
lisitsynusing TParameter10:17
lisitsynbut not the modern approach TM10:17
geektoniok! Got it! :)10:23
geektonibtw, I'm a little puzzled by the behavior of Some<> (probably because I'm not a C++ master).10:28
geektonihttps://gist.github.com/geektoni/e78b204bb5a8fd1f17c933ab9c0912e810:28
geektoniline 27,2810:28
geektoniWhy does this example compile?10:29
geektoni^ lisitsyn10:29
lisitsyngeektoni: there is operator* that is called10:30
lisitsynI'd suggest adding a print to check if it is called10:31
lisitsynand then dynamic cast is happening10:31
geektonioh I see. Thanks :D it's clearer now!10:34
-!- geektoni [~geektoni@93-34-234-212.ip52.fastwebnet.it] has left #shogun []10:53
-!- geektoni[m] [geektonima@gateway/shell/matrix.org/x-gxehukuknhjeqeng] has joined #shogun10:54
-!- geektoni [~geektoni@93-34-234-212.ip52.fastwebnet.it] has joined #shogun10:56
-!- HeikoS [~heiko@host-92-0-178-129.as43234.net] has quit [Ping timeout: 272 seconds]10:59
mikeling lisitsyn ping11:23
lisitsynmikeling: sup11:23
mikelinglisitsyn: hey, I write some code in Linalg like this https://pastebin.mozilla.org/9022153, but it keeps telling me ‘matrix_prod’ was not declared in this scope,11:24
mikelinghttps://pastebin.mozilla.org/902215411:24
lisitsynwhat's matrix_prod?11:25
mikelinghttp://shogun.ml/api/latest/namespaceshogun_1_1linalg.html#a7debb2540ef822fd0cd9ac74bf0ea798 here11:25
lisitsynah11:25
lisitsynI guess you miss some include then11:25
mikelingbut I write it in the LinalgNamespace.h11:26
mikelingso I don't think I need to include linalg:: or other file due to the I define it just in the same place with 'matrix_prod'11:27
lisitsynmikeling: check args and namespaces11:30
lisitsynjust in case11:30
mikelinglisitsyn: here is the gist https://gist.github.com/MikeLing/23158041b7fffdcbe749ff531db317cd#file-patch-cc-L130 I just created11:33
mikelinga is a SGMatrix, x is a SGVector. I can't found anything from the args11:35
lisitsynuhm11:36
lisitsyncan't see either11:39
mikelingCould you find find anything in the log https://pastebin.mozilla.org/9022154?11:41
mikelingI have no idea about it11:41
-!- iglesiasg [~iglesiasg@217.119.234.214] has quit [Quit: leaving]11:43
-!- HeikoS [~heiko@host81-152-92-223.range81-152.btcentralplus.com] has joined #shogun12:03
-!- mode/#shogun [+o HeikoS] by ChanServ12:03
-!- HeikoS [~heiko@host81-152-92-223.range81-152.btcentralplus.com] has quit [Ping timeout: 240 seconds]12:09
-!- HeikoS [~heiko@host81-152-92-223.range81-152.btcentralplus.com] has joined #shogun12:13
-!- mode/#shogun [+o HeikoS] by ChanServ12:14
-!- geektoni [~geektoni@93-34-234-212.ip52.fastwebnet.it] has left #shogun []12:30
-!- HeikoS [~heiko@host81-152-92-223.range81-152.btcentralplus.com] has quit [Ping timeout: 255 seconds]12:33
-!- HeikoS [~heiko@host81-152-92-223.range81-152.btcentralplus.com] has joined #shogun12:47
-!- mode/#shogun [+o HeikoS] by ChanServ12:48
-!- HeikoS [~heiko@host81-152-92-223.range81-152.btcentralplus.com] has quit [Quit: Leaving.]12:54
-!- HeikoS1 [~heiko@host81-152-92-223.range81-152.btcentralplus.com] has joined #shogun12:54
@wikinghello morning12:57
@wiking:)12:57
@wikingmikeling, still stuck?12:58
@wikinghave you tried shogun::linalg::matrix_matrix_prod12:59
@wiking?12:59
@wikinghahah13:01
@wikingthis is very sad13:01
@wikinghttp://scikit-learn.org/ml-benchmarks/13:01
@wiking:)13:01
@wikingalthough: "Last Update: July-2011"13:02
mikelingwiking: hey13:13
@wikingho13:13
mikelingNo I haven't13:13
@wikingtry that13:13
mikelingBut why matrix_matrix_prod?13:13
@wikingoh no13:18
@wikingthat is just a typo13:18
@wikingshogun::linalg::matrix_prod13:18
-!- HeikoS1 [~heiko@host81-152-92-223.range81-152.btcentralplus.com] has quit [Ping timeout: 255 seconds]13:29
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun14:01
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Ping timeout: 260 seconds]14:06
mikelingwiking: sorry for the late reply(14:25
@wikingno problem14:25
mikelingstill doesn't work https://pastebin.mozilla.org/902216114:26
mikelingand I don;t think we need linalg::14:26
@wikingshould14:27
mikelingdue to cblas_dgemv just in the linalg namespace14:27
mikelinghttps://gist.github.com/MikeLing/23158041b7fffdcbe749ff531db317cd#file-patch-cc-L8714:27
@wikingif you check14:27
@wikingthe header starts like this14:27
@wikingnamespace shogun14:27
@wiking{14:27
@wikingnamespace linalg14:27
@wiking{14:27
@wikingsrc/shogun/mathematics/linalg/LinalgNamespace.h14:27
@wikingmikeling, but i wouldn't add to linalg14:29
@wikingsuch a method as +void cblas_dger(T alpha, const SGVector<T> x, const SGVector<T> y, SGMatrix<T>& A)14:30
@wikingaz it's name is crazy14:30
@wikingso i would just simply do an ifdef14:30
@wikingin Gaussian.cpp:16914:30
@wikingfor HAVE_LAPACK14:30
@wikingand put there the implementation14:30
@wikingif lapack is not available14:30
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun14:31
mikelinghmmm but we call cblas_dgemv multiple  times14:32
mikelingwhich means we need write same things again and again14:33
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Ping timeout: 246 seconds]14:36
mikelingwiking: and why we don't need add shogun::linalg in here https://github.com/shogun-toolbox/shogun/blob/26ea21443c3bf2b3f618d563f592037de2bac834/src/shogun/mathematics/linalg/LinalgNamespace.h#L68814:36
@wikingmmm14:37
@wikingyou can call it a function14:37
@wikingbut please dont call it14:37
@wikingcblas_dgemv14:37
@wikingaz that is almost like a random set of strings14:37
mikelingalright14:39
-!- HeikoS [~heiko@untrust-out.swc.ucl.ac.uk] has joined #shogun14:39
-!- mode/#shogun [+o HeikoS] by ChanServ14:39
mikelingwiking: doesn't work :/ https://pastebin.mozilla.org/902216314:41
@wikingmmm14:42
@wikingmikeling, in my linalgnamespace14:42
@wikingthe first declaration of matrix_prod14:42
@wikingis line 51614:42
@wikingis it the same for you?14:42
@wikingbecause then dont wonder14:42
@wikingthat /home/mikeling/shogun/src/shogun/mathematics/linalg/LinalgNamespace.h:387:21: error: ‘matrix_prod’ is not a member of ‘shogun::linalg’14:43
@wiking  auto temp_vector = shogun::linalg::matrix_prod(a, x, false);14:43
@wikingbecause you try to call a function that has not been declared yet14:43
@wikingsee line 38714:43
mikeling......damn. I  feel myself  like a 'shabi'14:45
mikeling:(14:45
mikelingwiking: thank you14:45
@wiking:)14:45
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun16:32
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Ping timeout: 240 seconds]16:36
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun16:40
@sukeyPull Request #3818 "Update install instructions for homebrew"  merged by vigsterkr - https://github.com/shogun-toolbox/shogun/pull/381819:16
@sukeyNew Commit "Merge pull request #3818 from duhduhdan/update-homebrew-install-docs19:16
@sukeyUpdate install instructions for homebrew" to shogun-toolbox/shogun by vigsterkr: https://github.com/shogun-toolbox/shogun/commit/64310df152e249992cc598378688bce258dcec2219:16
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Remote host closed the connection]20:05
-!- mikeling [uid89706@gateway/web/irccloud.com/x-xajsjdghpjfsjwiw] has quit [Quit: Connection closed for inactivity]20:39
-!- geektoni [~geektoni@93-34-128-38.ip49.fastwebnet.it] has joined #shogun21:58
-!- geektoni [~geektoni@93-34-128-38.ip49.fastwebnet.it] has left #shogun []21:59
-!- geektoni [~geektoni@93-34-128-38.ip49.fastwebnet.it] has joined #shogun21:59
-!- geektoni[m] [geektonima@gateway/shell/matrix.org/x-gxehukuknhjeqeng] has left #shogun ["User left"]22:04
-!- HeikoS [~heiko@untrust-out.swc.ucl.ac.uk] has quit [Ping timeout: 260 seconds]22:06
-!- geektoni [~geektoni@93-34-128-38.ip49.fastwebnet.it] has left #shogun []22:11
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun22:13
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Remote host closed the connection]23:08
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun23:25
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Remote host closed the connection]23:27
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has joined #shogun23:46
-!- goksinen [~goksinen@rrcs-50-75-193-138.nyc.biz.rr.com] has quit [Remote host closed the connection]23:54
--- Log closed Sat May 20 00:00:37 2017

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