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
94ae09f5
Commit
94ae09f5
authored
Dec 03, 2011
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just added some comments about setting up proper input validation
when the user uses the sequence label rejection feature.
parent
7a83a30d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
structural_svm_sequence_labeling_problem.h
dlib/svm/structural_svm_sequence_labeling_problem.h
+6
-2
No files found.
dlib/svm/structural_svm_sequence_labeling_problem.h
View file @
94ae09f5
...
...
@@ -159,8 +159,12 @@ namespace dlib
const
matrix_exp
<
EXP
>&
node_states
)
const
{
// Note that it is intentional that we don't call fe.reject_labeling() here
// because doing so would break the structural svm optimizer.
/* TODO, uncomment this and setup some input validation to catch when rejection
is used incorrectly.
if (dlib::impl::call_reject_labeling_if_exists(fe, sequence, node_states, node_id))
return -std::numeric_limits<double>::infinity();
*/
double
loss
=
0
;
if
(
node_states
(
0
)
!=
label
[
node_id
])
...
...
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