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

Method weights

include/LightGBM/dataset.h:151–157  ·  view source on GitHub ↗

! * \brief Get weights, if not exists, will return nullptr * \return Pointer of weights */

Source from the content-addressed store, hash-verified

149 * \return Pointer of weights
150 */
151 inline const label_t* weights() const {
152 if (!weights_.empty()) {
153 return weights_.data();
154 } else {
155 return nullptr;
156 }
157 }
158
159 /*!
160 * \brief Get data boundaries on queries, if not exists, will return nullptr

Callers 14

InitMethod · 0.45
InitMethod · 0.45
InitMethod · 0.45
InitMethod · 0.45
InitMethod · 0.45
InitMethod · 0.45
GetFloatFieldMethod · 0.45
InitMethod · 0.45
InitMethod · 0.45
InitMethod · 0.45
InitMethod · 0.45
InitMethod · 0.45

Calls 2

dataMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected