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
/// <param name="inputColumn">Name of the input column.</param>
24
23
/// <param name="outputColumn">Name of the column to be transformed.</param>
24
+
/// <param name="inputColumn">Name of the input column. If set to <see langword="null"/>, the value of the <paramref name="outputColumn"/>
25
+
/// will be used as input.</param>
25
26
/// <param name="hashBits">Number of bits to hash into. Must be between 1 and 31, inclusive.</param>
26
27
/// <param name="invertHash">During hashing we constuct mappings between original values and the produced hash values.
27
28
/// Text representation of original values are stored in the slot names of the metadata for the new column.Hashing, as such, can map many initial values to one.
28
29
/// <paramref name="invertHash"/> specifies the upper bound of the number of distinct input values mapping to a hash that should be retained.
29
30
/// <value>0</value> does not retain any input values. <value>-1</value> retains all input values mapping to each hash.</param>
/// <param name="inputColumn">Name of the column to be transformed.</param>
105
+
/// <param name="inputColumn">Name of the column to be transformed. If set to <see langword="null"/>, the value of the <paramref name="outputColumn"/>
106
+
/// will be used as input.</param>
103
107
/// <param name="outputColumn">Name of the output column.</param>
104
108
/// <param name="maxNumTerms">Maximum number of keys to keep per column when auto-training.</param>
105
109
/// <param name="sort">How items should be ordered when vectorized. If <see cref="ValueToKeyMappingTransformer.SortOrder.Occurrence"/> choosen they will be in the order encountered.
106
110
/// If <see cref="ValueToKeyMappingTransformer.SortOrder.Value"/>, items are sorted according to their default comparison, for example, text sorting will be case sensitive (for example, 'A' then 'Z' then 'a').</param>
Copy file name to clipboardExpand all lines: src/Microsoft.ML.Data/Transforms/Hashing.cs
+11-8Lines changed: 11 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -135,8 +135,8 @@ public sealed class ColumnInfo
135
135
/// Text representation of original values are stored in the slot names of the metadata for the new column.Hashing, as such, can map many initial values to one.
136
136
/// <paramref name="invertHash"/> specifies the upper bound of the number of distinct input values mapping to a hash that should be retained.
137
137
/// <value>0</value> does not retain any input values. <value>-1</value> retains all input values mapping to each hash.</param>
138
-
publicColumnInfo(stringinput,
139
-
stringoutput=null,
138
+
publicColumnInfo(stringoutput,
139
+
stringinput=null,
140
140
inthashBits=HashingEstimator.Defaults.HashBits,
141
141
uintseed=HashingEstimator.Defaults.Seed,
142
142
boolordered=HashingEstimator.Defaults.Ordered,
@@ -146,7 +146,7 @@ public ColumnInfo(string input,
146
146
throwContracts.ExceptParam(nameof(invertHash),"Value too small, must be -1 or larger");
147
147
if(invertHash!=0&&hashBits>=31)
148
148
throwContracts.ExceptParam(nameof(hashBits),$"Cannot support invertHash for a {0} bit hash. 30 is the maximum possible.",hashBits);
/// Initializes a new instance of <see cref="HashingEstimator"/>.
1212
1214
/// </summary>
1213
1215
/// <param name="env">Host Environment.</param>
1214
-
/// <param name="inputColumn">Name of the column to be transformed.</param>
1216
+
/// <param name="inputColumn">Name of the column to be transformed.
1217
+
/// If set to <see langword="null"/> the value specified for the <paramref name="outputColumn"/> will be used.</param>
1215
1218
/// <param name="outputColumn">Name of the output column. </param>
1216
1219
/// <param name="hashBits">Number of bits to hash into. Must be between 1 and 31, inclusive.</param>
1217
1220
/// <param name="invertHash">During hashing we constuct mappings between original values and the produced hash values.
1218
1221
/// Text representation of original values are stored in the slot names of the metadata for the new column.Hashing, as such, can map many initial values to one.
1219
1222
/// <paramref name="invertHash"/> specifies the upper bound of the number of distinct input values mapping to a hash that should be retained.
1220
1223
/// <value>0</value> does not retain any input values. <value>-1</value> retains all input values mapping to each hash.</param>
0 commit comments