TrainerEstimators\TreeEstimators.cs (21)
440var dataMatrix = new float[_rowNumber * _columnNumber];
442var labels = new uint[_rowNumber];
445for (/*row index*/ int i = 0; i < _rowNumber; ++i)
487sampleValueGroupedByColumn[j] = new double[_rowNumber];
488sampleIndicesGroupedByColumn[j] = new int[_rowNumber];
489sampleNonZeroCntPerColumn[j] = _rowNumber;
491for (int i = 0; i < _rowNumber; ++i)
501float[] floatLabels = new float[_rowNumber];
502for (int i = 0; i < _rowNumber; ++i)
506var gbmDataSet = new Trainers.LightGbm.Dataset(sampleValueGroupedByColumn, sampleIndicesGroupedByColumn, _columnNumber, sampleNonZeroCntPerColumn, _rowNumber, _rowNumber, "", floatLabels);
509gbmDataSet.PushRows(dataMatrix, _rowNumber, _columnNumber, 0);
512lgbmProbabilities = new double[_rowNumber * _classNumber];
514lgbmRawScores = new double[_rowNumber * _classNumber];
536_rowNumber, _columnNumber, 1, (int)WrappedLightGbmInterface.CApiPredictType.Normal, 0, numberOfTrainingIterations, "", ref nativeLength, result0);
538_rowNumber, _columnNumber, 1, (int)WrappedLightGbmInterface.CApiPredictType.Raw, 0, numberOfTrainingIterations, "", ref nativeLength, result1);
559for (int i = 0; i < _rowNumber; ++i)
595for (int i = 0; i < _rowNumber; ++i)
630for (int i = 0; i < _rowNumber; ++i)
666for (int i = 0; i < _rowNumber; ++i)
695for (int i = 0; i < _rowNumber; ++i)