MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / ValidFeatureIndices

Method ValidFeatureIndices

include/LightGBM/dataset.h:370–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368 return group_bin_boundaries_.back();
369 }
370 inline std::vector<int> ValidFeatureIndices() const {
371 std::vector<int> ret;
372 for (int i = 0; i < num_total_features_; ++i) {
373 if (used_feature_map_[i] >= 0) {
374 ret.push_back(i);
375 }
376 }
377 return ret;
378 }
379 void ReSize(data_size_t num_data);
380
381 void CopySubset(const Dataset* fullset, const data_size_t* used_indices, data_size_t num_used_indices, bool need_meta_data);

Callers 2

InitMethod · 0.45
InitMethod · 0.45

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected