| 14 | namespace LightGBM { |
| 15 | |
| 16 | PredictionEarlyStopInstance 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 | |
| 25 | PredictionEarlyStopInstance CreateMulticlass(const PredictionEarlyStopConfig& config) { |
| 26 | // margin_threshold will be captured by value |
no outgoing calls
no test coverage detected