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

Method AddScore

src/boosting/score_updater.hpp:85–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 inline bool has_init_score() const { return has_init_score_; }
84
85 inline void AddScore(double val, int cur_tree_id) {
86 const size_t offset = static_cast<size_t>(num_data_) * cur_tree_id;
87 #pragma omp parallel for schedule(static)
88 for (int i = 0; i < num_data_; ++i) {
89 score_[offset + i] += val;
90 }
91 }
92
93 inline void MultiplyScore(double val, int cur_tree_id) {
94 const size_t offset = static_cast<size_t>(num_data_) * cur_tree_id;

Callers 11

RollbackOneIterMethod · 0.45
AddValidDatasetMethod · 0.45
RefitTreeMethod · 0.45
BoostFromAverageMethod · 0.45
TrainOneIter_oldMethod · 0.45
TrainOneIter_newMethod · 0.45
RollbackOneIterMethod · 0.45
UpdateScoreMethod · 0.45
ResetTrainingDataMethod · 0.45
DroppingTreesMethod · 0.45
NormalizeMethod · 0.45

Calls 2

dataMethod · 0.80
AddPredictionToScoreMethod · 0.45

Tested by

no test coverage detected