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

Method get_features

dlib/test/sequence_labeler.cpp:153–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152 template <typename feature_setter, typename EXP>
153 void get_features (
154 feature_setter& set_feature,
155 const sequence_type& x,
156 const matrix_exp<EXP>& y,
157 unsigned long position
158 ) const
159 {
160 if (y.size() > 1)
161 set_feature(y(1)*num_label_states + y(0));
162
163 set_feature(num_label_states*num_label_states +
164 y(0)*num_sample_states + x.item[position]);
165 }
166 };
167
168 void serialize(const feature_extractor&, std::ostream&) {}

Callers

nothing calls this directly

Calls 2

yFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected