Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
892fa86c
Commit
892fa86c
authored
Dec 27, 2012
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made tests more robust
parent
43d9768e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
active_learning.cpp
dlib/test/active_learning.cpp
+5
-5
No files found.
dlib/test/active_learning.cpp
View file @
892fa86c
...
...
@@ -149,13 +149,13 @@ namespace
dlog
<<
LINFO
<<
"samples.size(): "
<<
samples
.
size
();
// When we pick the best/front ranked element then the active learning method
// should
do at least as well as random selection
.
DLIB_TEST
(
test_rank_unlabeled_training_samples
(
samples
,
labels
,
max_min_margin
,
30
,
true
)
>=
1
);
DLIB_TEST
(
test_rank_unlabeled_training_samples
(
samples
,
labels
,
ratio_margin
,
30
,
true
)
>=
1
);
// should
n't do much worse than random selection (and often much better)
.
DLIB_TEST
(
test_rank_unlabeled_training_samples
(
samples
,
labels
,
max_min_margin
,
25
,
true
)
>=
0.97
);
DLIB_TEST
(
test_rank_unlabeled_training_samples
(
samples
,
labels
,
ratio_margin
,
25
,
true
)
>=
0.97
);
// However, picking the worst ranked element should do way worse than random
// selection.
DLIB_TEST
(
test_rank_unlabeled_training_samples
(
samples
,
labels
,
max_min_margin
,
30
,
false
)
<
1
);
DLIB_TEST
(
test_rank_unlabeled_training_samples
(
samples
,
labels
,
ratio_margin
,
30
,
false
)
<
1
);
DLIB_TEST
(
test_rank_unlabeled_training_samples
(
samples
,
labels
,
max_min_margin
,
25
,
false
)
<
0.8
);
DLIB_TEST
(
test_rank_unlabeled_training_samples
(
samples
,
labels
,
ratio_margin
,
25
,
false
)
<
0.8
);
}
}
a
;
...
...
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