shogun-toolbox/shogun — Issue #369: Weird behaviour with HistogramIntersectionKernel via java API
Author: vigsterkr
Created: 2012-02-10 16:32:56+00:00
State: open

Currently i'm using shogun via java_modular an for some reason i'm having some troubles with the HistogramIntersection kernel.
Depending on which constructor i'm using, the training time is significantly different. meaning in case a) the training time is about 30 seconds, while in case b) it's around 2 minutes. but of course if required i can time it properly...

double beta = 1.4;
int cache_size = 10;
bool slow = false;

if (slow) {
// case a
kernel = new HistogramIntersectionKernel (cache_size);
kernel.set_beta (beta);
kernel.init (trainFeats, trainFeats);
} else {
// case b
kernel = new HistogramIntersectionKernel (trainFeats, trainFeats, beta, cache_size);
}

...doing the training with the same machine