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

Method GetNumPredictAt

src/boosting/gbdt.h:189–196  ·  view source on GitHub ↗

! * \brief Get size of prediction at data_idx data * \param data_idx 0: training data, 1: 1st validation data * \return The size of prediction */

Source from the content-addressed store, hash-verified

187 * \return The size of prediction
188 */
189 int64_t GetNumPredictAt(int data_idx) const override {
190 CHECK(data_idx >= 0 && data_idx <= static_cast<int>(valid_score_updater_.size()));
191 data_size_t num_data = train_data_->num_data();
192 if (data_idx > 0) {
193 num_data = valid_score_updater_[data_idx - 1]->num_data();
194 }
195 return num_data * num_class_ * num_labels_;
196 }
197
198 /*!
199 * \brief Get prediction result at data_idx data

Callers 1

Calls 2

sizeMethod · 0.45
num_dataMethod · 0.45

Tested by

no test coverage detected