IRC logs of #shogun for Thursday, 2019-03-14

--- Log opened Thu Mar 14 00:00:51 2019
-!- ck_ [0e8b5206@gateway/web/freenode/ip.14.139.82.6] has quit [Ping timeout: 256 seconds]00:19
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]02:01
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun02:05
-!- mode/#shogun [+o wiking] by ChanServ02:05
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]04:15
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun05:39
-!- mode/#shogun [+o wiking] by ChanServ05:39
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]05:44
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun06:30
-!- mode/#shogun [+o wiking] by ChanServ06:30
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]06:45
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun07:04
-!- mode/#shogun [+o wiking] by ChanServ07:04
-!- besser82 [~besser82@fedora/besser82] has joined #shogun08:12
-!- mode/#shogun [+o besser82] by ChanServ08:12
-!- geektoni [c1cdd24a@gateway/web/freenode/ip.193.205.210.74] has joined #shogun09:21
-!- gf712 [c13cdcfd@gateway/web/freenode/ip.193.60.220.253] has joined #shogun10:22
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]11:01
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun11:14
-!- mode/#shogun [+o wiking] by ChanServ11:14
-!- wiking_ [~wiking@2001:67c:10ec:5784:8000::3ff] has joined #shogun11:17
-!- wiking [~wiking@huwico/staff/wiking] has quit [Read error: Connection reset by peer]11:17
wiking_gf712: pingu?11:33
-!- wiking_ is now known as wiking11:33
-!- wiking [~wiking@2001:67c:10ec:5784:8000::3ff] has quit [Changing host]11:33
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun11:33
-!- mode/#shogun [+o wiking] by ChanServ11:33
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]12:09
-!- geektoni [c1cdd24a@gateway/web/freenode/ip.193.205.210.74] has quit [Quit: Page closed]12:15
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun13:03
-!- mode/#shogun [+o wiking] by ChanServ13:03
gf712wiking: ping13:06
@wikinghoho13:06
@wikingdunno what i wanted13:06
@wiking:)13:06
gf712ah haha13:06
gf712I actually had a c++ question13:07
gf712imagine you have class Base with a virtual member function13:07
gf712in Derived you do final on that function13:07
gf712what happens in the DerivedofDerived class?13:08
gf712it should be able to access the final in Derived right?13:08
gf712all the inheritance is done with public13:08
@wikingyes13:19
gf712wiking: hmmm, I was trying out director classes in a different project and swig didn't respect final and just wanted the director to also have final13:26
gf712but only in public inheritance13:26
gf712anyway, I guess it's a bug then13:26
gf712wiking: would it be possible to make SGObject::clone return the object casted to its original type?13:28
gf712for example I have a sg.machine and do machine.clone() it returns SGObject rather than Machine type...13:28
gf712and then I have to do as_machine13:29
@wikingi guess template method? :)13:31
@wikingbtw i need couple of string/const char static vars in 2 different classes13:31
@wikingwoudl u add it to namespace?13:31
@wikingand include one class header in another13:32
@wikingthis feels asdf13:32
@wikingof use extern13:32
@wiking?13:32
gf712I would do extern13:32
gf712and cross my fingers the linker finds it...13:33
gf712can you not add it to a class as static?13:33
gf712or is that what you meant?13:33
@wikingnono13:34
@wikingi dont want static class13:34
@wikingmmm13:35
@wikinglinker is not finding it13:35
gf712where are you defining it?13:36
@wikingin a header13:36
@wikingand then using in another one13:36
@wikingah i see13:36
gf712but you have to define in translation unir13:36
gf712unit13:36
gf712shame you can't inline it :(13:37
@wikingok how?! :)13:40
@wikingi cannot believe that i cannot do this :D13:40
@wikingunless i add a new fucking header13:40
@wikingand include it in both13:41
gf712you have an extern right that tells the compiler the definition is somewhere13:44
gf712and then you define it in a cpp13:44
gf712the extern only has the declaration13:45
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]14:03
-!- wiking [~wiking@2001:67c:10ec:5784:8000::3ff] has joined #shogun14:10
-!- wiking [~wiking@2001:67c:10ec:5784:8000::3ff] has quit [Changing host]14:10
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun14:10
-!- mode/#shogun [+o wiking] by ChanServ14:11
@wikinggf712:14:11
@wikingyep that's what i did :))14:11
gf712wiking: what is the error?14:12
@wikingususal... undefined ref14:14
@wikingUndefined symbols for architecture x86_64:14:14
@wikingconst char* const kNameKey = "name";14:15
@wikingand then14:15
@wikingextern const char* const kNameKey;14:15
@wikingin the other cpp14:15
gf712maybe something weird happening with order of include files?14:17
gf712waking apparently you can do this https://stackoverflow.com/a/14977188 in that situation14:17
gf712wiking ^14:18
@wikingworked :)14:18
gf712cool14:18
@wikingsilly :(14:18
@wikingthnx14:19
@wikingok then just 2 things left14:19
gf712I think it might be just a weird resolution order14:19
@wikingand then a big pr coming14:19
@wiking:)14:19
gf712ah cool14:19
gf712coreml?14:19
@wikingah that i left on hold14:19
@wikingfile handling and serialization14:19
@wiking:)14:19
gf712OK!14:19
@wikingso then finally we can drop a lot of shit14:19
@wiking:)14:19
gf712wiking: did you figure out what happened in ms with files buffers?14:20
@wikingnot yet14:20
@wikingbut lets see if we change14:20
@wikingwhat happens14:20
@wiking:))))14:20
@wikingSGMatrix(const std::initializer_list<std::initializer_list<T>>& list);14:20
@wikingi'm trying to add this as well14:20
gf712why?14:20
@wikingbecause i hate writing tests14:20
gf712to have a range?14:20
@wikingwhere i cannot do14:20
gf712ah14:20
@wikingmatrix = {{1,2}, {2,1}}14:20
@wiking:)14:20
@wikingor even w/o the =14:21
@wiking:)14:21
gf712not sure I know what you mean :p14:21
@wikingi want to be able to create sgmatrix14:21
@wikinglike this14:21
@wikingSGMatrix<float64_t> data {{1.0, 2.0, 3.0}, {4.0, 5.0, 6.0}};14:21
@wiking:)14:21
gf712ah ok ok14:22
gf712makes sense!14:22
gf712can you do that with std::vector?14:22
@wikingyes\14:22
@wikinginit_list14:22
@wikingworks14:23
@wiking:>14:23
gf712aigth14:23
gf712aight14:23
@wikingi think the first push will fail all over14:24
@wikingactually now with the new is_container trait14:24
@wikinglisitsyn: this segfaults14:24
@wikingT cloned;14:24
@wikingstd::transform(14:24
@wikingvalue.cbegin(), value.cend(), cloned.begin(),14:24
@wiking[](auto o)  {14:25
@wikingreturn static_cast<typename T::value_type>(clone_impl(maybe_most_important(), o));14:25
@wiking});14:25
@wikingdunno why14:25
@wiking:)14:25
gf712what is cloned?14:25
@wikingo that is T::value_type14:26
@wikingT = stl container14:26
@wikingcurrently segfaults with std::vector<CSGobject*>14:27
@wikingi almost had the very same but instead of transform used for_each14:27
@wikingand used .push_back in the lambda14:27
@wikingbut that doesn't work for a lot of stl containers14:27
@wikingso i figured transform14:27
@wikingtransform should allocate no?14:27
@wikingor i shoudl reserve(size) first?14:27
gf712hmmm not sure14:29
gf712can you do that with back_inserter?14:29
gf712pretty sure that would work with transform14:30
-!- Mrsolodolo [~shivam@117.219.253.161] has joined #shogun14:34
MrsolodoloHi, I am getting this error "cannot connect to X server" while running object detection api using tensorflow on remote server? Does anybody have any idea??14:36
@wikingmmmm14:38
@wikinggf712: backinserter nogoodie for std::set14:38
@wikingbut imo std::inserter to the rescue14:38
@wiking:)14:38
gf712ah yes14:38
gf712wiking: does std::inserter work then?14:39
@wikingshould14:39
@wikingstd::transform(14:40
@wikingvalue.cbegin(), value.cend(),14:40
@wikingstd::inserter(cloned, cloned.end()),14:40
@wiking[](auto o)  {14:40
@wikingreturn static_cast<typename T::value_type>(clone_impl(maybe_most_important(), o));14:40
@wiking});14:40
@wikingthis should put things on the end14:40
gf712cool!14:48
@wikingok i think i'm done15:17
@wiking:)15:17
@wikingah no15:17
@wikingi need to test the any hack15:17
gf712is this to have stl containers with any then?15:26
@wikingyes15:26
@wikingamong many other things15:26
@wikingbut i need to recompile15:26
@wikingany.h change. -> full recompile15:26
@wiking:)))15:26
-!- Mrsolodolo [~shivam@117.219.253.161] has quit [Remote host closed the connection]15:32
@wikingok once this done15:35
@wikingtime to cut shogun15:35
@wikingthis is a pain15:35
@wiking:)15:35
@wikingok15:36
@wikingclone fixed15:36
@wikingjson serialization broken15:36
@wiking:))))15:36
@wikingah no passed15:37
@wikingcool15:37
@wikingargh15:41
@wikingadded some doxygen to sgmatrix.h15:41
@wikingboooom15:41
@wikingrecompile from scratch15:41
@wikinggf712:15:45
@wiking 68 files changed, 3308 insertions(+), 1543 deletions(-)15:45
@wiking:>15:45
@wikingfikfuck15:46
@wikingneed to rebase15:46
gf712haha noice :D15:46
@wikinglets see how much it breaks15:46
@wiking:>15:46
gf712haha15:46
gf712have fun...15:46
@wikingmerge conflict15:46
@wikinglemme first forcepush this15:46
@wikinginto remote15:46
@wiking:)))15:47
gf712wiking: I published a flow on openml and now it shut down15:50
gf712coincidence..?15:50
@wikingufof15:50
@wikingsorry man15:50
@wikingnow its full concentration15:50
@wikingon rebase15:50
@wiking:)15:50
gf712haha15:50
gf712ok15:50
@wikingdo i dare to forcepush to the same remote branch15:51
@wikingno15:51
@wikingL)15:51
@wiking:>15:51
@wikingvoila https://github.com/shogun-toolbox/shogun/pull/457315:53
@wikingtime to have a cigarette15:54
@wikingdamn15:54
@wikingi have a fucking merge conflict in this pr15:54
@wiking <<<<<<< HEAD15:54
gf712oh damn that's way too much to read :S15:55
gf712wiking: what does the PR cover then?15:56
@wikingmmm15:58
@wikingdunno why this 99c367e07d51595923e620fe5c11357a0005dd11 got into the pr15:58
@wikinghttps://github.com/shogun-toolbox/shogun/pull/4573/commits/99c367e07d51595923e620fe5c11357a0005dd1115:58
@wikingso i need to clean up this on15:59
@wikinge15:59
@wikingbut ok for draft its fine15:59
@wiking:)15:59
@wikinggf712: mostly it's all about dropping a lot of shit15:59
@wiking:)15:59
@wikingand haven't dropped a lot yet15:59
@wikingbut sgio is getting cleaned up15:59
@wikingserialization is using tags16:00
@wikingand any supports now cloning for STL containers16:00
@wikingand DynamicObjectArray is thus std::vector based finally16:00
@wiking:)16:00
@wikingah and you have string_view :)16:01
@wikinggf712: if you have a nicer way to do this lemme know16:03
@wikinghttps://github.com/shogun-toolbox/shogun/pull/4573/files#diff-a5f3736b398537e2d154f90ddb38b32eR4716:03
@wikingbasically to pass a function pointer but i cannot just pass it as template arg16:03
@wikingand not in the fucntion actually the function pointer :P16:03
gf712wiking: I am not sure I understand what is going on here :D16:05
@wikingbasically this is a tempalte to not to write the same shit again and again just for different function calls16:12
@wiking.GetDouble, GetInt, GetUint ...16:13
@wikingeverything else is the same there16:13
@wikingso this is a haxor to pass the function pointer to the the template16:13
@wikingso that you call the right method16:13
@wikinglisitsyn: good luck have fun :)))16:13
@wikinglisitsyn: maybe i should patch your comparator for std::vector to is_container :)16:14
@wikinglisitsyn: https://pastebin.com/Ab0aPixm16:16
@wikingyes no?16:16
@wikinghohohohoho16:22
@wikinggf16:22
@wikinggf712:16:22
@wiking     9>D:\a\1\s\src\shogun/util/traits.h(47): fatal error C1001: An internal error has occurred in the compiler. [D:\a\1\s\build\src\shogun\libshogun.vcxproj]16:22
@wiking         (compiler file 'd:\agent\_work\3\s\src\vctools\compiler\cxxfe\sl\p1\c\types.c', line 4563)16:22
@wiking          To work around this problem, try simplifying or changing the program near the locations listed above.16:22
@wiking         Please choose the Technical Support command on the Visual C++16:22
@wiking          Help menu, or open the Technical Support help file for more information16:22
@wiking         D:\a\1\s\src\shogun/util/traits.h(56): note: see reference to class template instantiation 'shogun::utils::detail::has_begin_end<T>' being compiled16:22
@wikinghttps://docs.microsoft.com/en-us/cpp/error-messages/compiler-errors-1/fatal-error-c1001?view=vs-201716:23
@wiking:>>>16:23
gf712haha nice16:23
gf712wiking: are you reporting it?16:23
@wiking...16:24
@wikingmsvc :)16:24
@wikingdunno what to do16:24
gf712msvc just isn't good enough for sfinae16:26
@wikingthere was a macro check missing ...16:26
gf712?16:26
@wikingmac already compiled it16:26
@wiking:)16:26
@wikingbut that's unrelated to this shi16:26
@wikingt16:26
@wikingbut now testing the compare part for is_container :P16:26
@wikingi think i'll break world :>>>>16:27
gf712for msvc isn't the issue those enable if in the functions?16:27
@wikingyeah i mean msvc is just trash16:30
@wikingbut i wanna see what happens16:30
@wikingwith clang16:32
@wiking:>16:32
@wikingok i see there was other problems with rebase :)16:33
@wikinggf712: managed to fix the rebase... there was a minor error :)16:41
@wikingso now the pr should be good for review theoretically16:41
@wiking:)16:41
@wikingno fucking way16:41
@wikingstill shiut16:41
gf712still rebasing?16:42
@wikingyeah16:44
@wikingthe problem is16:44
@wikingthat for some reason i have twice the patch in the unit test16:44
@wikingfrom your patch16:44
@wikingdunno how it happens16:44
@wikingbecause git blame shows16:44
@wikingboth of the lines are coming from the very same commit16:45
@wiking:DDD16:45
@wikingok here's a question16:48
@wikingstd::enable_if_t<utils::is_container<T>::value>* = nullptr>16:48
@wikingsuppose that is_container is doing that it checks whether the T has cbegin and cend16:48
@wikingwhy the fuck this goes into16:49
@wikingthat function with std::pair16:49
@wikingand actually fucking complain that16:49
@wiking/Users/wiking/shogun/src/shogun/lib/any.h:291:22: error: no member named 'cbegin' in 'std::__1::pair<const std::__1::basic_string<char>, shogun::CSGObject *>'16:49
@wiking                        for (auto l = lhs.cbegin(), r = rhs.cbegin(); l != lhs.cend();16:49
@wikinggf712: ideas?16:49
@wikingah hahahah16:49
@wikingi knoiw16:49
@wikingwonder why is this fucking true in that trait container16:50
@wikingtemplate <typename T1, typename T2>16:50
@wikingstruct is_container<std::pair<T1, T2>> : std::true_type { };16:50
gf712I don't get what that struct is meant to do...16:52
@wikingwhich?16:52
@wikinghttps://github.com/vigsterkr/shogun/blob/deadbeef/src/shogun/util/traits.h16:53
@wikingi dont think u can call std::cbegin(std::pair)16:55
@wikingtuple maybe16:55
@wikingnoup16:56
@wikingbut i'm still wondering what has happened with the rebase :o16:57
@wikinggf712: here?17:17
gf712wiking: yes still here17:17
@wikingmmm17:19
@wikingnada17:19
@wikingi hope i have fixed it17:19
@wiking:D17:19
@wikingbut17:19
@wikingquestion17:19
@wikingah nothing17:19
@wikingtuple could be fixed as well17:19
@wiking:)17:19
gf712OK :p17:19
@wikingok lets see17:19
@wikingalmost stored an std::map<string, CSGObject*>17:19
@wikingin any17:20
@wikingbut compare was not the right17:20
@wikingbecause it called default std::pair operator ==17:20
@wikingand he was right17:20
@wiking.second  was not the same pointer :)17:20
-!- kanishq24 [~kanishq24@47.247.65.87] has joined #shogun17:26
@wikingyeye done17:36
@wikingmake_any(std::map)17:36
@wikingwith compare and clone17:36
@wiking:>17:37
gf712cool :D17:41
gf712I am still trying to get this openml stuff to work17:41
@wikingwhat's the problem?17:44
gf712basically I wanted to keep the descriptions of the parameters of a model17:46
gf712and I dump it in the meta_info param17:46
gf712but when it uploads it just says api error17:46
gf712OpenMLServerException: https://www.openml.org/api/v1/xml/flow/ returned code 163: Problem validating uploaded description file17:47
gf712not much I can do with that17:47
gf712anyway when I remove it it's fine17:47
gf712so just upload param data without description17:47
@wikingmmmm17:47
@wikinggf712: there's a slack for openml17:47
gf712ah ok17:48
@wikingpeople are not too responsible but will answer sooner or later17:48
@wiking*responsive17:48
gf712I'll give it a go...17:48
gf712wiking: found the issue17:55
gf712we'll have to be careful with descriptions of parameters because of openml17:56
gf712certain characters mess up the API17:56
gf712:P17:56
gf712Number of ``support vectors''.17:56
@wikingwe can put a regexp in the exporter17:58
@wiking:)17:58
gf712yea, I'll have to figure what the limitations are too18:00
-!- HeikoS [b924003b@gateway/web/cgi-irc/kiwiirc.com/ip.185.36.0.59] has joined #shogun18:07
gf712HeikoS: hey18:13
gf712I have the openml stuff pretty much done18:13
gf712there are a few buggy things...18:14
gf712And it only works for machines with ::train18:14
-!- wiking [~wiking@huwico/staff/wiking] has quit [Remote host closed the connection]18:22
-!- gf712 [c13cdcfd@gateway/web/freenode/ip.193.60.220.253] has quit [Ping timeout: 256 seconds]18:26
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun18:50
-!- mode/#shogun [+o wiking] by ChanServ18:50
-!- wiking [~wiking@huwico/staff/wiking] has quit [Ping timeout: 246 seconds]18:54
-!- wiking [~wiking@huwico/staff/wiking] has joined #shogun18:58
-!- mode/#shogun [+o wiking] by ChanServ18:58
-!- HeikoS [b924003b@gateway/web/cgi-irc/kiwiirc.com/ip.185.36.0.59] has quit [Ping timeout: 245 seconds]18:59
-!- msdey [67157d50@gateway/web/freenode/ip.103.21.125.80] has joined #shogun19:04
-!- msdey [67157d50@gateway/web/freenode/ip.103.21.125.80] has quit [Client Quit]19:06
-!- kanishq24 [~kanishq24@47.247.65.87] has quit [Remote host closed the connection]20:38
-!- kanishq24b [~kanishq24@47.247.11.133] has joined #shogun20:40
-!- kanishq24b [~kanishq24@47.247.11.133] has quit [Ping timeout: 255 seconds]20:46
--- Log closed Fri Mar 15 00:00:52 2019

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