Commit 94ae09f5 authored by Davis King's avatar Davis King

Just added some comments about setting up proper input validation

when the user uses the sequence label rejection feature.
parent 7a83a30d
...@@ -159,8 +159,12 @@ namespace dlib ...@@ -159,8 +159,12 @@ namespace dlib
const matrix_exp<EXP>& node_states const matrix_exp<EXP>& node_states
) const ) const
{ {
// Note that it is intentional that we don't call fe.reject_labeling() here /* TODO, uncomment this and setup some input validation to catch when rejection
// because doing so would break the structural svm optimizer. 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; double loss = 0;
if (node_states(0) != label[node_id]) if (node_states(0) != label[node_id])
......
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