Skip to content

Commit adc2db2

Browse files
committed
Fix typos
1 parent 56bc251 commit adc2db2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Microsoft.ML.Data/DataView/Transposer.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -810,14 +810,14 @@ public DataViewSlicer(IHost host, IDataView input, int[] toSlice)
810810
{
811811
var splitter = _splitters[c] = Splitter.Create(_input, toSlice[c]);
812812
_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.
815815
_incolToLim[c] = outputColumnCount += splitter.ColumnCount;
816816
// toSlice[c] stores the input column index processed by the c-th splitter. In the output schema, we map a
817817
// 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.
821821
nameToCol[_input.Schema[toSlice[c]].Name] = outputColumnCount - 1;
822822
}
823823
// Here outputColumnCount denotes the total number of columns produced by all splitters.

0 commit comments

Comments
 (0)