--- Log opened Wed Dec 07 00:00:16 2011 | ||
-!- blackburn [~blackburn@188.168.128.146] has quit [Quit: Leaving.] | 00:07 | |
-!- in3xes [~in3xes@180.149.49.230] has joined #shogun | 03:26 | |
-!- k_matsuda [8370b643@gateway/web/freenode/ip.131.112.182.67] has joined #shogun | 04:14 | |
k_matsuda | hi, i considering modshogun ruby bindings to perform MKL. | 04:15 |
---|---|---|
k_matsuda | but i have a problem about ruby binding | 04:16 |
k_matsuda | i initialiized Modshogun::CombinedKernel.new() | 04:16 |
k_matsuda | and combined_kernel.append_kernel(individual_kernel) | 04:17 |
k_matsuda | to perform lerning, Modshogun::MKLClassification.new(); mklsvm.set_kernel(combined_kernel) | 04:17 |
k_matsuda | and set labels by mklsvm.set_labels(Modshogun::Labels.new([1,-1])) | 04:18 |
k_matsuda | i expect MKLClassification#get_kernel will return CombinedKernel object | 04:20 |
-!- k_matsuda [8370b643@gateway/web/freenode/ip.131.112.182.67] has quit [Ping timeout: 265 seconds] | 04:24 | |
-!- k_matsuda [~k_matsuda@peter.pi.titech.ac.jp] has joined #shogun | 04:28 | |
k_matsuda | sorry, my network is bad... | 04:29 |
k_matsuda | i initialiized Modshogun::CombinedKernel.new() and combined_kernel.append_kernel(individual_kernel) | 04:30 |
k_matsuda | to perform lerning, Modshogun::MKLClassification.new(); mklsvm.set_kernel(combined_kernel) | 04:30 |
k_matsuda | and set labels by mklsvm.set_labels(Modshogun::Labels.new([1,-1])) | 04:30 |
k_matsuda | i expect MKLClassification#get_kernel will return CombinedKernel object but it return Kernel object. | 04:30 |
k_matsuda | so, i cannot get weight of individual kernels by CombinedKernel#get_subkernel_weights method. | 04:32 |
k_matsuda | i try like http://permalink.gmane.org/gmane.comp.ai.machine-learning.shogun/687 | 04:33 |
k_matsuda | but, kernel.get_first_kernel() is not work. | 04:34 |
k_matsuda | because get_kernel method return Kernel object (not CombinedKernel) | 04:34 |
k_matsuda | So, what to do get weight of individual kernels? | 04:35 |
k_matsuda | I use shogun git-head (installed yesterday) and use ruby-1.9.2 | 04:36 |
-!- in3xes [~in3xes@180.149.49.230] has quit [Ping timeout: 244 seconds] | 06:04 | |
sonne|work | k_matsuda: I understand the problem | 08:54 |
sonne|work | you currently can only work around this by saving the combined kernel object | 08:55 |
sonne|work | problem is simply that swig has no notion of casting objects | 08:55 |
sonne|work | k_matsuda: actually you can use combined_kernel.KernelToCombinedKernel(generic_kernel_obj) | 09:00 |
sonne|work | we added that very recently... | 09:01 |
k_matsuda | thanks for your advice! | 09:18 |
k_matsuda | i'did like this: | 09:19 |
-k_matsuda:#shogun- # cast learned Kernel obj to CombinedKernel | 09:20 | |
-k_matsuda:#shogun- casted_kernel = combined_kernel.KernelToCombinedKernel(mklsvm.get_kernel) | 09:20 | |
-k_matsuda:#shogun- w = [] | 09:20 | |
-k_matsuda:#shogun- individual_kernel = casted_kernel.get_first_kernel() | 09:20 | |
-k_matsuda:#shogun- while individual_kernel | 09:20 | |
-k_matsuda:#shogun- w << individual_kernel.get_combined_kernel_weight() | 09:20 | |
-k_matsuda:#shogun- individual_kernel = casted_kernel.get_next_kernel() | 09:20 | |
-k_matsuda:#shogun- end | 09:20 | |
-k_matsuda:#shogun- p w | 09:20 | |
k_matsuda | it seems work well... | 09:20 |
sonne|work | k_matsuda: I think there is even a get_subkernel_weights() function so you don't need the loop | 09:34 |
k_matsuda | what is as argument for get_subkernel_weights() ? | 09:41 |
k_matsuda | i tryed that : | 09:41 |
-k_matsuda:#shogun- casted_kernel.get_subkernel_weights(casted_kernel.get_num_subkernels) | 09:43 | |
k_matsuda | but i get : | 09:43 |
-k_matsuda:#shogun- Wrong arguments for overloaded method 'CombinedKernel.get_subkernel_weights'. (ArgumentError) | 09:43 | |
-k_matsuda:#shogun- Possible C/C++ prototypes are: | 09:43 | |
-k_matsuda:#shogun- void CombinedKernel.get_subkernel_weights(int32_t &num_weights) | 09:43 | |
-k_matsuda:#shogun- void CombinedKernel.get_subkernel_weights(float64_t **weights, int32_t *num_weights | 09:43 | |
k_matsuda | i'm not familiar to SWIG/Ruby.. i dont know how to reference or pointer for native code. | 09:44 |
sonne|work | ok that is a bug | 09:53 |
k_matsuda | I want interface like : float64_t * CombinedKernel::get_subkernel_weight(void) | 09:59 |
k_matsuda | i use loop of get_first_kernel()/get_next_kernel() a while | 10:00 |
k_matsuda | very thanks for advice! | 10:01 |
15SAAI18M | shogun: Soeren Sonnenburg master * r50fb405 / (2 files): add get/set functions for combined kernel weights (forgotten sgvector transition) - http://git.io/RZrbXA | 10:08 |
sonne|work | k_matsuda: ok submitted | 10:08 |
shogun-buildbot | build #384 of cmdline_static is complete: Failure [failed test_1] Build details are at http://www.shogun-toolbox.org/buildbot/builders/cmdline_static/builds/384 blamelist: sonne@debian.org | 10:11 |
shogun-buildbot | build #359 of python_static is complete: Failure [failed test_1] Build details are at http://www.shogun-toolbox.org/buildbot/builders/python_static/builds/359 blamelist: sonne@debian.org | 10:13 |
k_matsuda | I leave once, but I'll continue check channel logs, and greatly appreciate every advices. | 10:40 |
-!- k_matsuda [~k_matsuda@peter.pi.titech.ac.jp] has quit [Remote host closed the connection] | 10:41 | |
-!- sonne|work [~sonnenbu@194.78.35.195] has left #shogun [] | 14:27 | |
-!- sonne|work [~sonnenbu@194.78.35.195] has joined #shogun | 14:28 | |
-!- blackburn [5bdfb203@gateway/web/freenode/ip.91.223.178.3] has joined #shogun | 14:52 | |
-!- blackburn [5bdfb203@gateway/web/freenode/ip.91.223.178.3] has quit [Ping timeout: 265 seconds] | 15:57 | |
-!- sonne|work [~sonnenbu@194.78.35.195] has quit [Quit: Leaving.] | 16:20 | |
15SAAI18M | shogun: Soeren Sonnenburg master * r2b03faf / src/configure : | 17:42 |
15SAAI18M | shogun: disable hmm parallel learning/structures and thus parallel hmm | 17:42 |
15SAAI18M | shogun: training/application at all. | 17:42 |
15SAAI18M | shogun: this is a temporary workaround to not see crashes and wrong results when | 17:42 |
15SAAI18M | shogun: learning - http://git.io/nrr5rw | 17:42 |
15SAAI18M | shogun: Soeren Sonnenburg master * r1a2c5b0 / examples/undocumented/libshogun/classifier_mklmulticlass.cpp : adjust example to SGVector style - http://git.io/9jsrVg | 19:56 |
15SAAI18M | shogun: Soeren Sonnenburg master * r2c4ee34 / (9 files in 6 dirs): fix other places to work with SGVector - http://git.io/kUNIhQ | 19:56 |
shogun-buildbot | build #386 of cmdline_static is complete: Success [build successful] Build details are at http://www.shogun-toolbox.org/buildbot/builders/cmdline_static/builds/386 | 20:01 |
shogun-buildbot | build #387 of cmdline_static is complete: Failure [failed test_1] Build details are at http://www.shogun-toolbox.org/buildbot/builders/cmdline_static/builds/387 blamelist: sonne@debian.org | 20:06 |
shogun-buildbot | build #361 of python_static is complete: Success [build successful] Build details are at http://www.shogun-toolbox.org/buildbot/builders/python_static/builds/361 | 20:08 |
shogun-buildbot | build #362 of python_static is complete: Failure [failed test_1] Build details are at http://www.shogun-toolbox.org/buildbot/builders/python_static/builds/362 blamelist: sonne@debian.org | 20:08 |
-!- in3xes [~in3xes@180.149.49.227] has joined #shogun | 21:46 | |
-!- in3xes [~in3xes@180.149.49.227] has quit [Read error: Connection reset by peer] | 21:48 | |
-!- in3xes [~in3xes@180.149.49.227] has joined #shogun | 22:05 | |
-!- in3xes [~in3xes@180.149.49.227] has quit [Read error: Connection reset by peer] | 22:05 | |
-!- in3xes [~in3xes@180.149.49.227] has joined #shogun | 22:27 | |
-!- in3xes_ [~in3xes@180.149.49.227] has joined #shogun | 22:35 | |
-!- in3xes_ [~in3xes@180.149.49.227] has quit [Remote host closed the connection] | 22:35 | |
-!- in3xes [~in3xes@180.149.49.227] has quit [Ping timeout: 248 seconds] | 22:36 | |
-!- in3xes [~in3xes@180.149.49.227] has joined #shogun | 22:39 | |
-!- in3xes [~in3xes@180.149.49.227] has quit [Remote host closed the connection] | 22:43 | |
-!- in3xes [~in3xes@180.149.49.227] has joined #shogun | 22:44 | |
-!- in3xes [~in3xes@180.149.49.227] has quit [Remote host closed the connection] | 22:49 | |
-!- in3xes [~in3xes@180.149.49.227] has joined #shogun | 22:49 | |
-!- blackburn [~blackburn@188.168.2.160] has joined #shogun | 22:57 | |
blackburn | sonney2k: forgot to join channel :) | 22:59 |
blackburn | I guess you are sleeping already | 22:59 |
--- Log closed Thu Dec 08 00:00:19 2011 |
Generated by irclog2html.py 2.10.0 by Marius Gedminas - find it at mg.pov.lt!