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

Method AsConstantTree

include/LightGBM/tree.h:170–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168 }
169
170 inline void AsConstantTree(double val) {
171 num_leaves_ = 1;
172 shrinkage_ = 1.0f;
173 leaf_value_[0] = val;
174 }
175
176 /*! \brief Serialize this object to string*/
177 std::string ToString() const;

Callers 3

TrainOneIterMethod · 0.45
TrainOneIter_oldMethod · 0.45
TrainOneIter_newMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected