Example #1
0
 // Calculate the number of predictions for a dataset with a given number of rows and iterations.
 public long CalcNumPredict(int numRow, PredictType predType, int numIteration)
 {
     long outLen = 0L;
     PInvokeException.Check(PInvoke.BoosterCalcNumPredict(Handle, numRow, (PInvoke.CApiPredictType)predType, 0, numIteration, ref outLen),
                           nameof(PInvoke.BoosterCalcNumPredict));
     return outLen;
 }