Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
65c6a30e
Commit
65c6a30e
authored
Aug 06, 2013
by
Davis King
Browse files
Changed all the structural SVM tools to use a default PSI cache size of 5.
parent
b5a90e52
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
12 additions
and
12 deletions
+12
-12
dlib/svm/structural_assignment_trainer.h
dlib/svm/structural_assignment_trainer.h
+1
-1
dlib/svm/structural_assignment_trainer_abstract.h
dlib/svm/structural_assignment_trainer_abstract.h
+1
-1
dlib/svm/structural_graph_labeling_trainer.h
dlib/svm/structural_graph_labeling_trainer.h
+1
-1
dlib/svm/structural_graph_labeling_trainer_abstract.h
dlib/svm/structural_graph_labeling_trainer_abstract.h
+1
-1
dlib/svm/structural_object_detection_trainer.h
dlib/svm/structural_object_detection_trainer.h
+1
-1
dlib/svm/structural_object_detection_trainer_abstract.h
dlib/svm/structural_object_detection_trainer_abstract.h
+1
-1
dlib/svm/structural_sequence_labeling_trainer.h
dlib/svm/structural_sequence_labeling_trainer.h
+1
-1
dlib/svm/structural_sequence_labeling_trainer_abstract.h
dlib/svm/structural_sequence_labeling_trainer_abstract.h
+2
-2
dlib/svm/structural_svm_problem.h
dlib/svm/structural_svm_problem.h
+1
-1
dlib/svm/structural_svm_problem_abstract.h
dlib/svm/structural_svm_problem_abstract.h
+1
-1
dlib/test/assignment_learning.cpp
dlib/test/assignment_learning.cpp
+1
-1
No files found.
dlib/svm/structural_assignment_trainer.h
View file @
65c6a30e
...
@@ -208,7 +208,7 @@ namespace dlib
...
@@ -208,7 +208,7 @@ namespace dlib
verbose
=
false
;
verbose
=
false
;
eps
=
0.1
;
eps
=
0.1
;
num_threads
=
2
;
num_threads
=
2
;
max_cache_size
=
40
;
max_cache_size
=
5
;
}
}
feature_extractor
fe
;
feature_extractor
fe
;
...
...
dlib/svm/structural_assignment_trainer_abstract.h
View file @
65c6a30e
...
@@ -49,7 +49,7 @@ namespace dlib
...
@@ -49,7 +49,7 @@ namespace dlib
- this object isn't verbose
- this object isn't verbose
- #get_epsilon() == 0.1
- #get_epsilon() == 0.1
- #get_num_threads() == 2
- #get_num_threads() == 2
- #get_max_cache_size() ==
40
- #get_max_cache_size() ==
5
- #get_feature_extractor() == a default initialized feature_extractor
- #get_feature_extractor() == a default initialized feature_extractor
- #forces_assignment() == false
- #forces_assignment() == false
!*/
!*/
...
...
dlib/svm/structural_graph_labeling_trainer.h
View file @
65c6a30e
...
@@ -31,7 +31,7 @@ namespace dlib
...
@@ -31,7 +31,7 @@ namespace dlib
verbose
=
false
;
verbose
=
false
;
eps
=
0.1
;
eps
=
0.1
;
num_threads
=
2
;
num_threads
=
2
;
max_cache_size
=
40
;
max_cache_size
=
5
;
loss_pos
=
1.0
;
loss_pos
=
1.0
;
loss_neg
=
1.0
;
loss_neg
=
1.0
;
}
}
...
...
dlib/svm/structural_graph_labeling_trainer_abstract.h
View file @
65c6a30e
...
@@ -47,7 +47,7 @@ namespace dlib
...
@@ -47,7 +47,7 @@ namespace dlib
- this object isn't verbose
- this object isn't verbose
- #get_epsilon() == 0.1
- #get_epsilon() == 0.1
- #get_num_threads() == 2
- #get_num_threads() == 2
- #get_max_cache_size() ==
40
- #get_max_cache_size() ==
5
- #get_loss_on_positive_class() == 1.0
- #get_loss_on_positive_class() == 1.0
- #get_loss_on_negative_class() == 1.0
- #get_loss_on_negative_class() == 1.0
!*/
!*/
...
...
dlib/svm/structural_object_detection_trainer.h
View file @
65c6a30e
...
@@ -44,7 +44,7 @@ namespace dlib
...
@@ -44,7 +44,7 @@ namespace dlib
verbose
=
false
;
verbose
=
false
;
eps
=
0.3
;
eps
=
0.3
;
num_threads
=
2
;
num_threads
=
2
;
max_cache_size
=
40
;
max_cache_size
=
5
;
match_eps
=
0.5
;
match_eps
=
0.5
;
loss_per_missed_target
=
1
;
loss_per_missed_target
=
1
;
loss_per_false_alarm
=
1
;
loss_per_false_alarm
=
1
;
...
...
dlib/svm/structural_object_detection_trainer_abstract.h
View file @
65c6a30e
...
@@ -51,7 +51,7 @@ namespace dlib
...
@@ -51,7 +51,7 @@ namespace dlib
- this object isn't verbose
- this object isn't verbose
- #get_epsilon() == 0.3
- #get_epsilon() == 0.3
- #get_num_threads() == 2
- #get_num_threads() == 2
- #get_max_cache_size() ==
40
- #get_max_cache_size() ==
5
- #get_match_eps() == 0.5
- #get_match_eps() == 0.5
- #get_loss_per_missed_target() == 1
- #get_loss_per_missed_target() == 1
- #get_loss_per_false_alarm() == 1
- #get_loss_per_false_alarm() == 1
...
...
dlib/svm/structural_sequence_labeling_trainer.h
View file @
65c6a30e
...
@@ -241,7 +241,7 @@ namespace dlib
...
@@ -241,7 +241,7 @@ namespace dlib
verbose
=
false
;
verbose
=
false
;
eps
=
0.1
;
eps
=
0.1
;
num_threads
=
2
;
num_threads
=
2
;
max_cache_size
=
40
;
max_cache_size
=
5
;
loss_values
.
assign
(
num_labels
(),
1
);
loss_values
.
assign
(
num_labels
(),
1
);
}
}
...
...
dlib/svm/structural_sequence_labeling_trainer_abstract.h
View file @
65c6a30e
...
@@ -48,7 +48,7 @@ namespace dlib
...
@@ -48,7 +48,7 @@ namespace dlib
- this object isn't verbose
- this object isn't verbose
- #get_epsilon() == 0.1
- #get_epsilon() == 0.1
- #get_num_threads() == 2
- #get_num_threads() == 2
- #get_max_cache_size() ==
40
- #get_max_cache_size() ==
5
- #get_feature_extractor() == a default initialized feature_extractor
- #get_feature_extractor() == a default initialized feature_extractor
!*/
!*/
...
@@ -61,7 +61,7 @@ namespace dlib
...
@@ -61,7 +61,7 @@ namespace dlib
- this object isn't verbose
- this object isn't verbose
- #get_epsilon() == 0.1
- #get_epsilon() == 0.1
- #get_num_threads() == 2
- #get_num_threads() == 2
- #get_max_cache_size() ==
40
- #get_max_cache_size() ==
5
- #get_feature_extractor() == fe
- #get_feature_extractor() == fe
!*/
!*/
...
...
dlib/svm/structural_svm_problem.h
View file @
65c6a30e
...
@@ -215,7 +215,7 @@ namespace dlib
...
@@ -215,7 +215,7 @@ namespace dlib
eps
(
0.001
),
eps
(
0.001
),
verbose
(
false
),
verbose
(
false
),
skip_cache
(
true
),
skip_cache
(
true
),
max_cache_size
(
10
),
max_cache_size
(
5
),
C
(
1
)
C
(
1
)
{}
{}
...
...
dlib/svm/structural_svm_problem_abstract.h
View file @
65c6a30e
...
@@ -29,7 +29,7 @@ namespace dlib
...
@@ -29,7 +29,7 @@ namespace dlib
INITIAL VALUE
INITIAL VALUE
- get_epsilon() == 0.001
- get_epsilon() == 0.001
- get_max_cache_size() ==
10
- get_max_cache_size() ==
5
- get_c() == 1
- get_c() == 1
- This object will not be verbose
- This object will not be verbose
...
...
dlib/test/assignment_learning.cpp
View file @
65c6a30e
...
@@ -299,7 +299,7 @@ namespace
...
@@ -299,7 +299,7 @@ namespace
DLIB_TEST
(
trainer
.
forces_assignment
()
==
false
);
DLIB_TEST
(
trainer
.
forces_assignment
()
==
false
);
DLIB_TEST
(
trainer
.
get_c
()
==
100
);
DLIB_TEST
(
trainer
.
get_c
()
==
100
);
DLIB_TEST
(
trainer
.
get_num_threads
()
==
2
);
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
);
trainer
.
set_forces_assignment
(
force_assignment
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment