src/classify/trainingsample.cpp
void TrainingSample::IndexFeatures(const IntFeatureSpace &feature_space) {
  std::vector<int> indexed_features;
  feature_space.IndexAndSortFeatures(features_, num_features_, &mapped_features_);
  features_are_indexed_ = true;
  features_are_mapped_ = false;
}
// Sets the mapped_features_ from the features_ using the provided
// feature_space to the indexed versions of the features.
Sets the mapped_features_ from the features_ using the provided
feature_space to the indexed versions of the features.
Sets the mapped_features_ from the features_ using the provided feature_space to the indexed versions of the features .
void TrainingSample::IndexFeatures(const IntFeatureSpace &feature_space) {
  std::vector<int> indexed_features;
  feature_space.IndexAndSortFeatures(features_, num_features_, &mapped_features_);
  features_are_indexed_ = true;
  features_are_mapped_ = false;
}
void TrainingSample :: IndexFeatures ( const IntFeatureSpace & feature_space ) { std :: vector < int > indexed_features ; feature_space . IndexAndSortFeatures ( features_ , num_features_ , & mapped_features_ ) ; features_are_indexed_ = true ; features_are_mapped_ = false ; }
Sets the mapped_features_ from the features_ using the provided
feature_space to the indexed versions of the features.
Sets the mapped_features_ from the features_ using the provided feature_space to the indexed versions of the features .