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

Method query_weights

include/LightGBM/dataset.h:184–190  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

182 * \return Pointer of weights for queries
183 */
184 inline const label_t* query_weights() const {
185 if (!query_weights_.empty()) {
186 return query_weights_.data();
187 } else {
188 return nullptr;
189 }
190 }
191
192 /*!
193 * \brief Get initial scores, if not exists, will return nullptr

Callers 2

InitMethod · 0.45
InitMethod · 0.45

Calls 2

dataMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected