("libqp state: primal=%f\n"
("found at least one positive MMD\n"
("All mmd estimates are negative. This is techically possible,"
111 "although extremely rare. Consider using different kernels. "
112 "This combination will lead to a bad two-sample test. Since any"
113 "combination is bad, will now just return equally distributed "
("one MMD entry is positive, performing optimisation\n"
i=0; i<num_kernels; ++i)
("starting libqp optimization\n"
("libqp returns: nIts=%d, exit_flag: %d\n"
("lowcut: weight[%i]=%f<%f setting to zero\n"
, i, weights[i],
virtual CKernel * select_kernel()
virtual void set_subkernel_weights(SGVector< float64_t > weights)
virtual CKernel * get_kernel()
static SGMatrix< float64_t > m_Q
static const float64_t INFTY
virtual SGVector< float64_t > solve_optimization(SGVector< float64_t > mmds)
Base class for kernel selection for MMD-based two-sample test statistic implementations. Provides abstract methods for selecting kernels and computing criteria or kernel weights for the implemented method. In order to implement new methods for kernel selection, simply write a new implementation of this class.
Kernel two sample test base class. Provides an interface for performing a two-sample test using a ker...
static void print_state(libqp_state_T state)
The Combined kernel is used to combine a number of kernels into a single CombinedKernel object by lin...
virtual SGVector< float64_t > compute_measures()=0
static const float64_t * get_Q_col(uint32_t i)
CKernelTwoSampleTest * m_estimator
all of classes and functions are contained in the shogun namespace
void set_const(T const_elem)