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

Method NextFloat

include/LightGBM/utils/random.h:59–62  ·  view source on GitHub ↗

! * \brief Generate random float data * \return The random float between [0.0, 1.0) */

Source from the content-addressed store, hash-verified

57 * \return The random float between [0.0, 1.0)
58 */
59 inline float NextFloat() {
60 // get random float in [0,1)
61 return static_cast<float>(RandInt16()) / (32768.0f);
62 }
63 /*!
64 * \brief Sample K data from {0,1,...,N-1}
65 * \param N

Callers 4

BaggingHelperMethod · 0.45
BalancedBaggingHelperMethod · 0.45
BaggingHelperMethod · 0.45
DroppingTreesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected