MCPcopy Create free account
hub / github.com/davisking/dlib / test_dense

Function test_dense

dlib/test/auto_train_linear_classifier.cpp:162–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160// ----------------------------------------------------------------------------------------
161
162 void test_dense()
163 {
164 std::vector<dense_type> x;
165 std::vector<double> y;
166 make_problem(x, y, 30);
167
168 const auto df = auto_train_linear_classifier(x, y, false);
169 DLIB_TEST(df(dense_type{3.0, 0.0}) > 0.9);
170 DLIB_TEST(df(dense_type{-3.0, 0.0}) < 0.1);
171 }
172
173// ----------------------------------------------------------------------------------------
174

Callers 1

perform_testMethod · 0.70

Calls 2

make_problemFunction · 0.85

Tested by

no test coverage detected