@@ -810,14 +810,14 @@ public DataViewSlicer(IHost host, IDataView input, int[] toSlice)
810
810
{
811
811
var splitter = _splitters [ c ] = Splitter . Create ( _input , toSlice [ c ] ) ;
812
812
_host . Assert ( splitter . ColumnCount >= 1 ) ;
813
- // One splitter can produce multiple columns because it split a input column into multiple output columns.
814
- // _incolToLim[c] stores (the last output column index of the c-th splitter) - 1.
813
+ // One splitter can produce multiple columns because it splits a input column into multiple output columns.
814
+ // _incolToLim[c] stores (the last output column index of the c-th splitter) + 1.
815
815
_incolToLim [ c ] = outputColumnCount += splitter . ColumnCount ;
816
816
// toSlice[c] stores the input column index processed by the c-th splitter. In the output schema, we map a
817
817
// output column name to the last column produced by the associated splitter. For example, if input column
818
- // "Features" (index 5) gets splitted into three output columns "Features" (index 0), "Features" (index 1),
819
- // "Features" (index 2), nameToCol["Features"] should return 2. Note that output column names are identical
820
- // to their source column name.
818
+ // "Features" (column index 5) gets splitted into three output columns "Features" (column index 0), "Features"
819
+ // (column index 1), "Features" (column index 2), nameToCol["Features"] should return 2. Note that output column
820
+ // names are identical to their source column name.
821
821
nameToCol [ _input . Schema [ toSlice [ c ] ] . Name ] = outputColumnCount - 1 ;
822
822
}
823
823
// Here outputColumnCount denotes the total number of columns produced by all splitters.
0 commit comments