MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / SetUp

Method SetUp

src/test/test_kernelmatrix.cpp:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 SvmParam param;
77
78 void SetUp() override {
79 param = SvmParam();
80 dataSet.load_from_file(DATASET_DIR "test_dataset.txt");
81 rows.resize(n_rows);
82 kernel_rows.resize(n_rows * dataSet.n_instances());
83 for (unsigned i = 0; i < n_rows; ++i) {
84 rows.host_data()[i] = i * 3 + 4;
85 }
86 instances = DataSet::node2d(dataSet.instances().begin(), dataSet.instances().begin() + n_rows);
87 }
88
89 void TearDown() override {
90 KernelMatrix *kernelMatrix = new KernelMatrix(dataSet.instances(), param);

Callers

nothing calls this directly

Calls 7

SvmParamClass · 0.85
resizeMethod · 0.80
instancesMethod · 0.80
load_from_fileMethod · 0.45
n_instancesMethod · 0.45
host_dataMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected