Commit 168a862d authored by Davis King's avatar Davis King

Changed code a bit to avoid false test failure

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402973
parent e5c1db1c
...@@ -335,11 +335,11 @@ namespace ...@@ -335,11 +335,11 @@ namespace
typedef radial_basis_kernel<sample_type> kernel_type; typedef radial_basis_kernel<sample_type> kernel_type;
rbf_network_trainer<kernel_type> rbf_trainer; rbf_network_trainer<kernel_type> rbf_trainer;
rbf_trainer.set_kernel(kernel_type(gamma)); rbf_trainer.set_kernel(kernel_type(0.5*gamma));
rbf_trainer.set_num_centers(30); rbf_trainer.set_num_centers(100);
rvm_trainer<kernel_type> rvm_trainer; rvm_trainer<kernel_type> rvm_trainer;
rvm_trainer.set_kernel(kernel_type(gamma)); rvm_trainer.set_kernel(kernel_type(2*gamma));
svm_pegasos<kernel_type> pegasos_trainer; svm_pegasos<kernel_type> pegasos_trainer;
pegasos_trainer.set_kernel(kernel_type(gamma)); pegasos_trainer.set_kernel(kernel_type(gamma));
...@@ -378,7 +378,7 @@ namespace ...@@ -378,7 +378,7 @@ namespace
dlog << LDEBUG << "num rv: " << num_rv; dlog << LDEBUG << "num rv: " << num_rv;
DLIB_CASSERT(num_rv <= 17, ""); DLIB_CASSERT(num_rv <= 17, "");
DLIB_CASSERT(num_sv <= 45, ""); DLIB_CASSERT(num_sv <= 45, num_sv);
decision_function<kernel_type> df = reduced2(trainer, 19).train(x,y); decision_function<kernel_type> df = reduced2(trainer, 19).train(x,y);
print_spinner(); print_spinner();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment