MCPcopy Create free account
hub / github.com/davisking/dlib / is_sequence_labeling_problem

Function is_sequence_labeling_problem

dlib/svm/svm.h:181–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179 typename sequence_type
180 >
181 bool is_sequence_labeling_problem (
182 const std::vector<sequence_type>& samples,
183 const std::vector<std::vector<unsigned long> >& labels
184 )
185 {
186 if (is_learning_problem(samples, labels))
187 {
188 for (unsigned long i = 0; i < samples.size(); ++i)
189 {
190 if (samples[i].size() != labels[i].size())
191 return false;
192 }
193 return true;
194 }
195
196 return false;
197 }
198
199// ----------------------------------------------------------------------------------------
200

Callers 4

trainMethod · 0.85
test_sequence_labelerFunction · 0.85

Calls 2

is_learning_problemFunction · 0.85
sizeMethod · 0.45

Tested by 1

test_sequence_labelerFunction · 0.68