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

Function CreateNone

src/boosting/prediction_early_stop.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace LightGBM {
15
16PredictionEarlyStopInstance CreateNone(const PredictionEarlyStopConfig&) {
17 return PredictionEarlyStopInstance{
18 [](const double*, int) {
19 return false;
20 },
21 std::numeric_limits<int>::max() // make sure the lambda is almost never called
22 };
23}
24
25PredictionEarlyStopInstance CreateMulticlass(const PredictionEarlyStopConfig& config) {
26 // margin_threshold will be captured by value

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected