MCPcopy Create free account
hub / github.com/creatale/node-dv / IndexFeatures

Method IndexFeatures

deps/tesseract/classify/trainingsample.cpp:277–283  ·  view source on GitHub ↗

Sets the mapped_features_ from the features_ using the provided feature_space to the indexed versions of the features.

Source from the content-addressed store, hash-verified

275// Sets the mapped_features_ from the features_ using the provided
276// feature_space to the indexed versions of the features.
277void TrainingSample::IndexFeatures(const IntFeatureSpace& feature_space) {
278 GenericVector<int> indexed_features;
279 feature_space.IndexAndSortFeatures(features_, num_features_,
280 &mapped_features_);
281 features_are_indexed_ = true;
282 features_are_mapped_ = false;
283}
284
285// Sets the mapped_features_ from the features using the provided
286// feature_map.

Callers 3

PostLoadCleanupMethod · 0.45
PreTrainingSetupMethod · 0.45

Calls 1

IndexAndSortFeaturesMethod · 0.45

Tested by

no test coverage detected