20 using namespace shogun;
44 for (
index_t k_idx=0; k_idx<combined->get_num_kernels(); k_idx++)
46 CKernel* subkernel=combined->get_kernel(k_idx);
47 REQUIRE(kernel,
"%s::%s(): Subkernel (%d) of current kernel is not"
59 "Only 64 bit float dense features allowed, these are \"%s\""
70 "Only 64 bit float streaming dense features allowed, these (p) "
71 "are \"%s\" and of type %d\n",
76 "Only 64 bit float streaming dense features allowed, these (q) "
77 "are \"%s\" and of type %d\n",
96 void CMMDKernelSelectionMedian::init()
107 SG_ERROR(
"%s::compute_measures(): Not implemented. Use select_kernel() "
128 for (
index_t i=0; i<num_data; ++i)
132 subset[i+num_data]=i+m;
189 for (
index_t i=0; i<dists.num_rows; ++i)
191 for (
index_t j=i+1; j<dists.num_rows; ++j)
192 dist_vec[write_idx++]=dists(i,j);
197 SG_DEBUG(
"median_distance: %f\n", median_distance);
202 SG_DEBUG(
"kernel width (shogun): %f\n", shogun_sigma);
214 "%d-th kernel is not a Gaussian but \"%s\"!\n",
get_name(), i,
221 if (distance<min_distance)