42 using namespace internal;
43 using std::unique_ptr;
44 using std::shared_ptr;
50 num_null_samples = DEFAULT_NUM_NULL_SAMPLES;
51 stype = DEFAULT_STYPE;
52 null_approximation_method = DEFAULT_NULL_APPROXIMATION_METHOD;
59 std::unique_ptr<CKernelSelectionStrategy>
strategy;
61 static constexpr
index_t DEFAULT_NUM_NULL_SAMPLES = 250;
78 #if EIGEN_VERSION_AT_LEAST(3,1,0) 79 Eigen::initParallel();
81 self=unique_ptr<Self>(
new Self());
91 self->strategy->use_method(method)
92 .use_weighted(weighted);
98 self->strategy->use_method(method)
99 .use_num_runs(num_runs)
100 .use_num_folds(num_folds)
106 return self->strategy.get();
111 self->strategy->add_kernel(kernel);
118 data_mgr.set_train_mode(
true);
120 data_mgr.set_train_mode(
false);
131 self->num_null_samples=null_samples;
136 return self->num_null_samples;
151 self->null_approximation_method=nmethod;
156 return self->null_approximation_method;
virtual void select_kernel()
EStatisticType get_statistic_type() const
void set_num_null_samples(index_t null_samples)
index_t get_num_null_samples() const
Kernel two sample test base class. Provides an interface for performing a two-sample test using a ker...
CKernelSelectionStrategy const * get_kernel_selection_strategy() const
void add_kernel(CKernel *kernel)
virtual const char * get_name() const
internal::DataManager & get_data_mgr()
internal::KernelManager & get_kernel_mgr()
all of classes and functions are contained in the shogun namespace
The class Features is the base class of all feature objects.
std::unique_ptr< CKernelSelectionStrategy > strategy
ENullApproximationMethod get_null_approximation_method() const
void set_statistic_type(EStatisticType stype)
void set_null_approximation_method(ENullApproximationMethod nmethod)
virtual void set_kernel(CKernel *kernel)
void set_kernel_selection_strategy(EKernelSelectionMethod method, bool weighted=false)
ENullApproximationMethod null_approximation_method