--- Log opened Mon Aug 14 00:00:38 2017 | ||
-!- mikeling [uid89706@gateway/web/irccloud.com/x-jpsadueqtgvxdwbi] has joined #shogun | 04:16 | |
mikeling | wiking: hi, do you have chance to read this https://github.com/shogun-toolbox/shogun/pull/3960#discussion_r132814850? | 06:13 |
---|---|---|
@wiking | lemme check it | 06:15 |
mikeling | thank you | 06:15 |
@wiking | about the storage? | 06:15 |
@wiking | what's the type of StorageIndex | 06:15 |
mikeling | about StorageIndex | 06:15 |
@wiking | ? | 06:15 |
@wiking | or that's coming from eigen? | 06:17 |
mikeling | wiking: the StorageIndex equal to _StorageIndex and I found the following comments | 06:19 |
mikeling | _StorageIndex the type of the indices. It has to be a \b signed type (e.g., short, int, std::ptrdiff_t). Default is \c int. | 06:19 |
@wiking | yeah | 06:20 |
@wiking | that's from eigen | 06:20 |
@wiking | mmm in that case | 06:23 |
mikeling | mmm, so we need to keep it as int32_t or? since it's about SparseMatrix | 06:23 |
@wiking | welll either that | 06:23 |
@wiking | or when sparse matrix is being defined | 06:24 |
@wiking | we need to pass the type of StorageIndex | 06:24 |
@wiking | i think here | 06:25 |
@wiking | Eigen::SparseMatrix<bool> matrix_power; | 06:25 |
@wiking | SparseMatrixOperator.cpp:103 | 06:25 |
@wiking | as you can see https://eigen.tuxfamily.org/dox/classEigen_1_1SparseMatrix.html | 06:25 |
@wiking | these are the parameters | 06:25 |
@wiking | template<typename _Scalar, int _Options, typename _StorageIndex> | 06:25 |
@wiking | so instead of simple | 06:26 |
@wiking | Eigen::SparseMatrix<bool> you would need to do Eigen::SparseMatrix<bool, 0, index_t> | 06:26 |
@wiking | mikeling, can you try that for at least | 06:26 |
@wiking | Eigen::SparseMatrix<bool> matrix_power; | 06:27 |
@wiking | so do Eigen::SparseMatrix<bool, 0, index_T> matrix_power; | 06:27 |
@wiking | *index_t | 06:27 |
mikeling | yeah, let me have a try :) | 06:27 |
mikeling | wiking: I got this https://pastebin.mozilla.org/9029651 | 06:29 |
mikeling | sorry | 06:30 |
mikeling | my bad | 06:30 |
@wiking | ? | 06:30 |
@wiking | that is rather weird | 06:30 |
@wiking | what's your eigen version? | 06:31 |
@wiking | Eigen::SparseMatrix<bool, Eigen::ColMajor, index_t> should be the same | 06:31 |
mikeling | it works now! Thank you. The error is because i type ,instead of , | 06:31 |
@wiking | oh ok utf8 | 06:32 |
@wiking | : | 06:32 |
@wiking | :P | 06:32 |
@sukey | [https://github.com/shogun-toolbox/shogun] Issue https://github.com/shogun-toolbox/shogun/issues/3964 opened by vigsterkr | 08:21 |
-!- geektoni [~geektoni@93-34-128-38.ip49.fastwebnet.it] has joined #shogun | 10:06 | |
@sukey | [https://github.com/shogun-toolbox/shogun] Pull Request https://github.com/shogun-toolbox/shogun/pull/3953 synchronized by geektoni | 10:22 |
@wiking | geektoni, ready to merge right? https://github.com/shogun-toolbox/shogun/pull/3953 | 12:20 |
geektoni | wiking: I still need to address a few comments of Heiko and then it's ready. | 12:23 |
@wiking | k | 12:24 |
lisitsyn | wiking: booya | 13:06 |
@wiking | boom boom | 13:06 |
lisitsyn | what's up? | 13:06 |
@wiking | not much | 13:07 |
@wiking | still watching btc :) | 13:07 |
lisitsyn | oh that's so | 13:07 |
lisitsyn | I am out of this shit | 13:07 |
@wiking | 4k usd :) | 13:07 |
lisitsyn | :D | 13:07 |
@wiking | heheh yeah | 13:07 |
lisitsyn | it must be so stressful to be in btc | 13:07 |
@wiking | lisitsyn, :D | 13:07 |
@wiking | it must be stressful to be a btc :D | 13:07 |
-!- geektoni [~geektoni@93-34-128-38.ip49.fastwebnet.it] has quit [Read error: Connection reset by peer] | 13:22 | |
-!- geektoni [~geektoni@93-34-128-38.ip49.fastwebnet.it] has joined #shogun | 13:22 | |
@sukey | [https://github.com/shogun-toolbox/shogun] Pull Request https://github.com/shogun-toolbox/shogun/pull/3953 synchronized by geektoni | 14:41 |
@sukey | [https://github.com/shogun-toolbox/shogun] Pull Request https://github.com/shogun-toolbox/shogun/pull/3953 synchronized by geektoni | 15:05 |
-!- olinguyen [81615ad9@gateway/web/freenode/ip.129.97.90.217] has joined #shogun | 16:41 | |
@sukey | [https://github.com/shogun-toolbox/shogun] Pull Request https://github.com/shogun-toolbox/shogun/pull/3953 synchronized by geektoni | 16:59 |
geektoni | wiking: still there? | 17:19 |
@wiking | pong | 17:26 |
@wiking | yes | 17:26 |
geektoni | wiking: I've added a comment on https://github.com/shogun-toolbox/shogun/pull/3953 to explain the today progress | 17:30 |
@wiking | yep | 17:30 |
@wiking | just reading it | 17:30 |
geektoni | so, yeah, once fixed those it is ready to go | 17:31 |
geektoni | wiking: I'm more concerned about the SWING one. It should be rather easy to fix, but I don't see the problem :/ | 17:33 |
@wiking | geektoni, https://github.com/geektoni/shogun/blob/f0bd625b98f5a04ef67afcc934178497299a2c4b/src/interfaces/swig/Evaluation.i#L20 | 18:07 |
@wiking | namespace shogun | 18:07 |
@wiking | you need to add the template within that | 18:07 |
@wiking | geektoni, see https://github.com/geektoni/shogun/blob/f0bd625b98f5a04ef67afcc934178497299a2c4b/src/interfaces/swig/Distance.i#L55 | 18:07 |
@wiking | for example | 18:07 |
@sukey | [https://github.com/shogun-toolbox/shogun] Issue https://github.com/shogun-toolbox/shogun/issues/2699 closed by vigsterkr | 18:09 |
geektoni | wiking: ohh thanks! Let's see if it works now | 18:10 |
@wiking | mmm about the leak | 18:10 |
@wiking | can you run valgrind but with SHOGUN_NUM_THREADS=1 | 18:10 |
@wiking | and get the output of that | 18:11 |
geektoni | wiking: kk, give me a minute | 18:11 |
geektoni | wiking: https://pastebin.com/v0XTZamp | 18:15 |
@wiking | ok cool | 18:19 |
@wiking | so mkl + combined kernel | 18:19 |
@wiking | i mean the only way to figure out | 18:20 |
@wiking | is to actually see why that fucking MKL cloned | 18:20 |
@wiking | is not being freed :D | 18:20 |
geektoni | I'll try to give another look later then. It may be just a small detail I'm missing. | 18:23 |
geektoni | wiking: btw, the interface thing still fails :P | 18:24 |
@wiking | but what does fail means exactly? | 18:28 |
@wiking | ? | 18:30 |
@wiking | https://github.com/geektoni/shogun/blob/f0bd625b98f5a04ef67afcc934178497299a2c4b/src/shogun/lib/parameter_observers/ParameterObserverCV.h#L66 | 18:30 |
@wiking | you mean? | 18:30 |
@wiking | btw i'm not so sure if i understand the use of this interface | 18:30 |
@wiking | https://github.com/geektoni/shogun/blob/f0bd625b98f5a04ef67afcc934178497299a2c4b/src/shogun/lib/parameter_observers/ParameterObserverCV.h#L68 | 18:30 |
@wiking | geektoni, btw i dont know how well does swig play with references as return values | 18:32 |
@wiking | i mean they work just fine in function args, so one would presume that it should do the same with return vals | 18:32 |
geektoni | wiking: so, by "fails" it means that I still see this error https://travis-ci.org/shogun-toolbox/shogun/jobs/264393708#L4311 after adding the namespace | 18:33 |
@wiking | geektoni, "Functions that return a reference are remapped to return a pointer instead. For example: | 18:33 |
@wiking | " | 18:33 |
@wiking | Don't return references to objects allocated as local variables on the stack. SWIG doesn't make a copy of the objects so this will probably cause your program to crash. | 18:34 |
@wiking | so i think | 18:34 |
@wiking | what you have there | 18:34 |
@wiking | is actually an std::vector<...>* | 18:35 |
geektoni | mmh I see | 18:35 |
@wiking | which is not iterable itself | 18:35 |
geektoni | yes yes | 18:35 |
@wiking | btw %include <std_vector.i> | 18:36 |
@wiking | instead of relative "" | 18:36 |
-!- mikeling [uid89706@gateway/web/irccloud.com/x-jpsadueqtgvxdwbi] has quit [Quit: Connection closed for inactivity] | 18:36 | |
@wiking | but | 18:36 |
@wiking | check this | 18:36 |
@wiking | https://stackoverflow.com/a/27243461 | 18:36 |
@wiking | <x.MyVector; proxy of <Swig Object of type 'std::vector< int > *' at 0x0000000002A7B030> > | 18:36 |
@wiking | so that's actually an std::vector<...>* | 18:37 |
@wiking | >>> for i in v: print(i) | 18:37 |
@wiking | works | 18:37 |
@wiking | so | 18:37 |
@wiking | maybe you are missing something else | 18:37 |
geektoni | mmh | 18:37 |
geektoni | wiking: ok, so I have this instead <Swig Object of type 'std::vector< shogun::CrossValidationStorage *,std::allocator< shogun::CrossValidationStorage * > > *' at 0x7f487d86cf48> | 18:45 |
@wiking | mmm | 18:46 |
@wiking | still it's an std::vector | 18:46 |
@wiking | only that it has the allocator specified | 18:46 |
geektoni | if I try to iterate over it I get this: TypeError: 'SwigPyObject' object is not iterable | 18:48 |
geektoni | so I assume python still doesn't have any idea on how to treat it, despite it being a vector. | 18:48 |
@wiking | geektoni, you might need to actually include <vector> in the swig interface itself | 18:50 |
@wiking | or not :S | 18:52 |
@wiking | mmm | 18:52 |
@wiking | https://github.com/geektoni/shogun/blob/f0bd625b98f5a04ef67afcc934178497299a2c4b/src/shogun/lib/parameter_observers/ParameterObserverCV.h#L68 | 18:52 |
geektoni | ah yeah | 18:52 |
geektoni | so, basically it's a method I use to implement a "verbose" mode of the ParameterObserver | 18:53 |
geektoni | wiking: https://github.com/geektoni/shogun/blob/f0bd625b98f5a04ef67afcc934178497299a2c4b/src/shogun/lib/parameter_observers/ParameterObserverCV.cpp#L70 | 18:53 |
@wiking | nvm | 18:53 |
@wiking | wrong copypaste | 18:53 |
@wiking | i'm just wondering where thing go wrong here | 18:53 |
@wiking | https://github.com/geektoni/shogun/blob/f0bd625b98f5a04ef67afcc934178497299a2c4b/src/interfaces/swig/Evaluation.i#L73 | 18:56 |
@wiking | in other cases the template renames | 18:56 |
@wiking | are after | 18:56 |
@wiking | the %include | 18:56 |
@wiking | could you move the template specialization | 18:57 |
@wiking | after that include | 18:57 |
@wiking | ? | 18:57 |
geektoni | I've just tried to place them at the end of the file but it still gives me problems | 18:57 |
geektoni | with problems == TypeError: 'SwigPyObject' object is not iterable | 18:58 |
geektoni | wiking: no, okay, there was a cache problem! Now it recognize the object as an iterable. | 19:06 |
geektoni | wiking: what if I have in python a Machine instance and I want to "cast" it to like a SVM one? Is that possible? | 19:20 |
-!- geektoni [~geektoni@93-34-128-38.ip49.fastwebnet.it] has quit [Remote host closed the connection] | 19:46 | |
@sukey | [https://github.com/shogun-toolbox/shogun] Pull Request https://github.com/shogun-toolbox/shogun/pull/3960 synchronized by MikeLing | 19:50 |
-!- sukey [~nodebot@ks312251.kimsufi.com] has quit [Remote host closed the connection] | 23:37 | |
-!- sukey [~nodebot@ks312251.kimsufi.com] has joined #shogun | 23:38 | |
-!- mode/#shogun [+o sukey] by ChanServ | 23:38 | |
--- Log closed Tue Aug 15 00:00:39 2017 |
Generated by irclog2html.py 2.10.0 by Marius Gedminas - find it at mg.pov.lt!