src/training/common/intfeaturemap.cpp
int IntFeatureMap::FinalizeMapping(SampleIterator *it) {
  if (mapping_changed_) {
    feature_map_.CompleteMerges();
    compact_size_ = feature_map_.CompactSize();
#ifdef EXPERIMENT_ON
    it->MapSampleFeatures(*this);
#endif
    mapping_changed_ = false;
  }
  return compact_size_;
}
// After deleting some features, finish setting up the mapping, and map
// all the samples. Returns the size of the compacted feature space.
After deleting some features, finish setting up the mapping, and map
all the samples. Returns the size of the compacted feature space.
After deleting some features finish setting up the mapping and map all the samples . Returns the size of the compacted feature space .
int IntFeatureMap::FinalizeMapping(SampleIterator *it) {
  if (mapping_changed_) {
    feature_map_.CompleteMerges();
    compact_size_ = feature_map_.CompactSize();
#ifdef EXPERIMENT_ON
    it->MapSampleFeatures(*this);
#endif
    mapping_changed_ = false;
  }
  return compact_size_;
}
int IntFeatureMap :: FinalizeMapping ( SampleIterator * it ) { if ( mapping_changed_ ) { feature_map_ . CompleteMerges ( ) ; compact_size_ = feature_map_ . CompactSize ( ) ; #ifdef EXPERIMENT_ON it -> MapSampleFeatures ( * this ) ; #endif mapping_changed_ = false ; } return compact_size_ ; }
After deleting some features, finish setting up the mapping, and map
all the samples.
After deleting some features finish setting up the mapping and map all the samples .