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

Method perform_test

dlib/test/empirical_kernel_map.cpp:416–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414 }
415
416 void perform_test (
417 )
418 {
419 ++thetime;
420 typedef matrix<double,0,1> sample_type;
421 dlog << LINFO << "time seed: " << thetime;
422 rnd.set_seed(cast_to_string(thetime));
423
424 print_spinner();
425 test_projection_error();
426 print_spinner();
427 dlog << LINFO << "test with linear kernel";
428 test_with_kernel(linear_kernel<sample_type>());
429 print_spinner();
430 dlog << LINFO << "test with rbf kernel";
431 test_with_kernel(radial_basis_kernel<sample_type>(0.2));
432 print_spinner();
433 }
434 };
435
436 // Create an instance of this object. Doing this causes this test

Callers

nothing calls this directly

Calls 3

cast_to_stringFunction · 0.85
print_spinnerFunction · 0.85
set_seedMethod · 0.45

Tested by

no test coverage detected