Commit 65c6a30e authored by Davis King's avatar Davis King

Changed all the structural SVM tools to use a default PSI cache size of 5.

parent b5a90e52
......@@ -208,7 +208,7 @@ namespace dlib
verbose = false;
eps = 0.1;
num_threads = 2;
max_cache_size = 40;
max_cache_size = 5;
}
feature_extractor fe;
......
......@@ -49,7 +49,7 @@ namespace dlib
- this object isn't verbose
- #get_epsilon() == 0.1
- #get_num_threads() == 2
- #get_max_cache_size() == 40
- #get_max_cache_size() == 5
- #get_feature_extractor() == a default initialized feature_extractor
- #forces_assignment() == false
!*/
......
......@@ -31,7 +31,7 @@ namespace dlib
verbose = false;
eps = 0.1;
num_threads = 2;
max_cache_size = 40;
max_cache_size = 5;
loss_pos = 1.0;
loss_neg = 1.0;
}
......
......@@ -47,7 +47,7 @@ namespace dlib
- this object isn't verbose
- #get_epsilon() == 0.1
- #get_num_threads() == 2
- #get_max_cache_size() == 40
- #get_max_cache_size() == 5
- #get_loss_on_positive_class() == 1.0
- #get_loss_on_negative_class() == 1.0
!*/
......
......@@ -44,7 +44,7 @@ namespace dlib
verbose = false;
eps = 0.3;
num_threads = 2;
max_cache_size = 40;
max_cache_size = 5;
match_eps = 0.5;
loss_per_missed_target = 1;
loss_per_false_alarm = 1;
......
......@@ -51,7 +51,7 @@ namespace dlib
- this object isn't verbose
- #get_epsilon() == 0.3
- #get_num_threads() == 2
- #get_max_cache_size() == 40
- #get_max_cache_size() == 5
- #get_match_eps() == 0.5
- #get_loss_per_missed_target() == 1
- #get_loss_per_false_alarm() == 1
......
......@@ -241,7 +241,7 @@ namespace dlib
verbose = false;
eps = 0.1;
num_threads = 2;
max_cache_size = 40;
max_cache_size = 5;
loss_values.assign(num_labels(), 1);
}
......
......@@ -48,7 +48,7 @@ namespace dlib
- this object isn't verbose
- #get_epsilon() == 0.1
- #get_num_threads() == 2
- #get_max_cache_size() == 40
- #get_max_cache_size() == 5
- #get_feature_extractor() == a default initialized feature_extractor
!*/
......@@ -61,7 +61,7 @@ namespace dlib
- this object isn't verbose
- #get_epsilon() == 0.1
- #get_num_threads() == 2
- #get_max_cache_size() == 40
- #get_max_cache_size() == 5
- #get_feature_extractor() == fe
!*/
......
......@@ -215,7 +215,7 @@ namespace dlib
eps(0.001),
verbose(false),
skip_cache(true),
max_cache_size(10),
max_cache_size(5),
C(1)
{}
......
......@@ -29,7 +29,7 @@ namespace dlib
INITIAL VALUE
- get_epsilon() == 0.001
- get_max_cache_size() == 10
- get_max_cache_size() == 5
- get_c() == 1
- This object will not be verbose
......
......@@ -299,7 +299,7 @@ namespace
DLIB_TEST(trainer.forces_assignment() == false);
DLIB_TEST(trainer.get_c() == 100);
DLIB_TEST(trainer.get_num_threads() == 2);
DLIB_TEST(trainer.get_max_cache_size() == 40);
DLIB_TEST(trainer.get_max_cache_size() == 5);
trainer.set_forces_assignment(force_assignment);
......
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