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

Method perform_test

dlib/test/svm_struct.cpp:613–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611 }
612
613 void perform_test (
614 )
615 {
616 std::vector<sample_type> samples;
617 std::vector<scalar_type> labels;
618
619 dlib::rand rnd;
620
621 dlog << LINFO << "test with 100 samples per class";
622 make_dataset(samples, labels, 100, rnd);
623 run_test(samples, labels, 1.155);
624
625 dlog << LINFO << "test with 1 sample per class";
626 make_dataset(samples, labels, 1, rnd);
627 run_test(samples, labels, 0.251);
628
629 dlog << LINFO << "test with 2 sample per class";
630 make_dataset(samples, labels, 2, rnd);
631 run_test(samples, labels, 0.444);
632 }
633 } a;
634
635

Callers

nothing calls this directly

Calls 2

make_datasetFunction · 0.70
run_testFunction · 0.70

Tested by

no test coverage detected