Commit d2625a0d authored by Davis King's avatar Davis King

made test more robust

parent 6e06b0bd
...@@ -416,8 +416,8 @@ namespace ...@@ -416,8 +416,8 @@ namespace
trainer_part.set_c(4); trainer_part.set_c(4);
trainer.set_num_threads(4); trainer.set_num_threads(4);
trainer_part.set_num_threads(4); trainer_part.set_num_threads(4);
trainer.set_epsilon(1e-4); trainer.set_epsilon(1e-8);
trainer_part.set_epsilon(1e-4); trainer_part.set_epsilon(1e-8);
...@@ -429,7 +429,7 @@ namespace ...@@ -429,7 +429,7 @@ namespace
dlog << LINFO << "max weight magnitude: "<< max(abs(labeler.get_weights())); dlog << LINFO << "max weight magnitude: "<< max(abs(labeler.get_weights()));
// Both feature extractors should be equivalent. // Both feature extractors should be equivalent.
DLIB_TEST(length(labeler.get_weights() - labeler_part.get_weights()) < 1e-10); DLIB_TEST(max(abs(labeler.get_weights() - labeler_part.get_weights())) < 1e-6);
} }
......
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