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

Method ResetTrainingData

src/c_api.cpp:164–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162 }
163
164 void ResetTrainingData(const Dataset* train_data) {
165 if (train_data != train_data_) {
166 std::lock_guard<std::mutex> lock(mutex_);
167 train_data_ = train_data;
168 CreateObjectiveAndMetrics();
169 // reset the boosting
170 boosting_->ResetTrainingData(train_data_,
171 objective_fun_.get(), Common::ConstPtrInVectorWrapper<Metric>(train_metric_));
172 }
173 }
174
175 void ResetConfig(const char* parameters) {
176 std::lock_guard<std::mutex> lock(mutex_);

Callers 2

ResetConfigMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected