20 CMMDKernelSelectionCombOpt::CMMDKernelSelectionCombOpt() :
21 CMMDKernelSelectionComb()
26 CMMDKernelSelectionCombOpt::CMMDKernelSelectionCombOpt(
28 CMMDKernelSelectionComb(mmd)
31 REQUIRE(dynamic_cast<CLinearTimeMMD*>(mmd),
"%s::%s(): Only "
32 "CLinearTimeMMD is currently supported! Provided instance is "
40 CMMDKernelSelectionCombOpt::~CMMDKernelSelectionCombOpt()
44 void CMMDKernelSelectionCombOpt::init()
50 SG_ADD(&m_lambda,
"lambda",
"Regularization parameter lambda",
72 ((
CLinearTimeMMD*)m_estimator)->compute_statistic_and_Q(mmds, m_Q);
77 SG_DEBUG(
"regularizing matrix Q by adding %f to diagonal\n", m_lambda)
78 for (
index_t i=0; i<num_kernels; ++i)
84 m_Q.display_matrix(
"(regularized) Q");
85 mmds.display_vector(
"mmds");
99 #endif //USE_GPL_SHOGUN
int32_t get_num_subkernels()
Kernel two sample test base class. Provides an interface for performing a two-sample test using a ker...
CKernel * get_kernel(int32_t idx)
The Combined kernel is used to combine a number of kernels into a single CombinedKernel object by lin...
virtual const char * get_name() const =0
all of classes and functions are contained in the shogun namespace
This class implements the linear time Maximum Mean Statistic as described in [1] for streaming data (...
virtual const char * get_name() const