Sets the mapped_features_ from the features_ using the provided feature_space to the indexed versions of the features.
| 275 | // Sets the mapped_features_ from the features_ using the provided |
| 276 | // feature_space to the indexed versions of the features. |
| 277 | void 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. |
no test coverage detected