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

Method ReSize

src/io/dataset.cpp:513–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513void Dataset::ReSize(data_size_t num_data) {
514 if (num_data_ != num_data) {
515 num_data_ = num_data;
516 OMP_INIT_EX();
517 #pragma omp parallel for schedule(static)
518 for (int group = 0; group < num_groups_; ++group) {
519 OMP_LOOP_EX_BEGIN();
520 feature_groups_[group]->bin_data_->ReSize(num_data_);
521 OMP_LOOP_EX_END();
522 }
523 OMP_THROW_EX();
524 }
525}
526
527void Dataset::CopySubset(const Dataset* fullset, const data_size_t* used_indices, data_size_t num_used_indices, bool need_meta_data) {
528 CHECK(num_used_indices == num_data_);

Callers 2

BaggingMethod · 0.45
BaggingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected