You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Microsoft.ML.Data/DataLoadSave/Text/TextLoader.cs
+30-17
Original file line number
Diff line number
Diff line change
@@ -32,18 +32,16 @@ public sealed partial class TextLoader : IDataReader<IMultiStreamSource>, ICanSa
32
32
/// <summary>
33
33
/// Describes how an input column should be mapped to an <see cref="IDataView"/> column.
34
34
/// </summary>
35
-
/// <example>
36
-
/// Scalar column of <seealso cref="DataKind"/> I4 sourced from 2nd column
37
-
/// col=ColumnName:I4:1
38
-
///
39
-
/// Vector column of <seealso cref="DataKind"/> I4 that contains values from columns 1, 3 to 10
40
-
/// col=ColumnName:I4:1,3-10
41
-
///
42
-
/// Key range column of KeyType with underlying storage type U4 that contains values from columns 1, 3 to 10, that can go from 1 to 100 (0 reserved for out of range)
43
-
/// col=ColumnName:U4[100]:1,3-10
44
-
/// </example>
45
35
publicsealedclassColumn
46
36
{
37
+
// Examples of how a column is defined in command line API:
38
+
// Scalar column of <seealso cref="DataKind"/> I4 sourced from 2nd column
39
+
// col=ColumnName:I4:1
40
+
// Vector column of <seealso cref="DataKind"/> I4 that contains values from columns 1, 3 to 10
41
+
// col=ColumnName:I4:1,3-10
42
+
// Key range column of KeyType with underlying storage type U4 that contains values from columns 1, 3 to 10, that can go from 1 to 100 (0 reserved for out of range)
43
+
// col=ColumnName:U4[100]:1,3-10
44
+
47
45
/// <summary>
48
46
/// Describes how an input column should be mapped to an <see cref="IDataView"/> column.
49
47
/// </summary>
@@ -53,7 +51,7 @@ public Column() { }
53
51
/// Describes how an input column should be mapped to an <see cref="IDataView"/> column.
54
52
/// </summary>
55
53
/// <param name="name">Name of the column.</param>
56
-
/// <param name="type">Type of the items in the column.</param>
54
+
/// <param name="type"><see cref="DataKind"/> of the items in the column. If <see langword="null"/> defaults to a float.</param>
57
55
/// <param name="index">Index of the column.</param>
58
56
publicColumn(stringname,DataKind?type,intindex)
59
57
:this(name,type,new[]{newRange(index)}){}
@@ -62,7 +60,7 @@ public Column(string name, DataKind? type, int index)
62
60
/// Describes how an input column should be mapped to an <see cref="IDataView"/> column.
63
61
/// </summary>
64
62
/// <param name="name">Name of the column.</param>
65
-
/// <param name="type">Type of the items in the column.</param>
63
+
/// <param name="type"><see cref="DataKind"/> of the items in the column. If <see langword="null"/> defaults to a float.</param>
66
64
/// <param name="minIndex">The minimum inclusive index of the column.</param>
67
65
/// <param name="maxIndex">The maximum-inclusive index of the column.</param>
0 commit comments