2 writes to NumCol
Microsoft.ML.LightGbm (2)
LightGbmTrainerBase.cs (2)
576
catMetaData.
NumCol
= catBoundaries.Count - 1;
631
catMetaData.
NumCol
= rawNumCol;
29 references to NumCol
Microsoft.ML.LightGbm (29)
LightGbmTrainerBase.cs (29)
578
catMetaData.IsCategoricalFeature = new bool[catMetaData.
NumCol
];
583
for (int i = 0; i < catMetaData.
NumCol
; ++i)
827
float[] featureValuesTemp = new float[catMetaData.
NumCol
];
828
for (int i = 0; i < catMetaData.
NumCol
; ++i)
924
double[][] sampleValuePerColumn = new double[catMetaData.
NumCol
][];
925
int[][] sampleIndicesPerColumn = new int[catMetaData.
NumCol
][];
926
int[] nonZeroCntPerColumn = new int[catMetaData.
NumCol
];
929
for (int i = 0; i < catMetaData.
NumCol
; i++)
945
for (int i = 0; i < catMetaData.
NumCol
; ++i)
995
dataset = new Dataset(sampleValuePerColumn, sampleIndicesPerColumn, catMetaData.
NumCol
, nonZeroCntPerColumn, sampleIdx, numRow, param, labels, weights, groups);
1007
ch.Assert(dataset.GetNumCols() == catMetaData.
NumCol
);
1010
batchSize = Math.Max(batchSize, catMetaData.
NumCol
);
1018
int batchRow = batchSize / catMetaData.
NumCol
;
1024
if ((long)catMetaData.
NumCol
* batchRow > Utils.ArrayMaxSize)
1027
float[] features = new float[catMetaData.
NumCol
* batchRow];
1039
ch.Assert(numElem == curRowCount * catMetaData.
NumCol
);
1042
dataset.PushRows(features, curRowCount, catMetaData.
NumCol
, totalRowCount - curRowCount);
1050
ch.Assert(numElem == curRowCount * catMetaData.
NumCol
);
1053
dataset.PushRows(features, curRowCount, catMetaData.
NumCol
, totalRowCount - curRowCount);
1059
int esimateBatchRow = (int)(batchSize / (catMetaData.
NumCol
* density));
1082
curRowCount + 1, numElem, catMetaData.
NumCol
, totalRowCount - curRowCount);
1102
numElem, catMetaData.
NumCol
, totalRowCount - curRowCount);
1111
ch.Assert(features.Length >= numElem + catMetaData.
NumCol
);
1117
for (int i = 0; i < catMetaData.
NumCol
; ++i)
1119
numElem += catMetaData.
NumCol
;
1135
while (lastIdx < catMetaData.
NumCol
)
1137
numElem += catMetaData.
NumCol
;
1143
numElem += catMetaData.
NumCol
;
1159
for (int i = 0; i < catMetaData.
NumCol
; ++i)