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
[Argument(ArgumentType.AtMostOnce,HelpText="Whether the position of each term should be included in the hash",
50
72
ShortName="ord")]
51
-
publicboolOrdered;
73
+
publicboolOrdered=Defaults.Ordered;
52
74
53
75
[Argument(ArgumentType.AtMostOnce,HelpText="Limit the number of keys used to generate the slot name to this many. 0 means no invert hashing, -1 means no limit.",
54
76
ShortName="ih")]
55
-
publicintInvertHash;
77
+
publicintInvertHash=Defaults.InvertHash;
56
78
}
57
79
58
80
publicsealedclassColumn:OneToOneColumn
@@ -234,6 +256,25 @@ public override void Save(ModelSaveContext ctx)
/// Convenience constructor for public facing API.
261
+
/// </summary>
262
+
/// <param name="env">Host Environment.</param>
263
+
/// <param name="input">Input <see cref="IDataView"/>. This is the output from previous transform or loader.</param>
264
+
/// <param name="name">Name of the output column.</param>
265
+
/// <param name="source">Name of the column to be transformed. If this is null '<paramref name="name"/>' will be used.</param>
266
+
/// <param name="hashBits">Number of bits to hash into. Must be between 1 and 31, inclusive.</param>
267
+
/// <param name="invertHash">Limit the number of keys used to generate the slot name to this many. 0 means no invert hashing, -1 means no limit.</param>
HelpText="Whether to combine multiple indicator vectors into a single bag vector instead of concatenating them. This is only relevant when the input is a vector.")]
80
-
publicboolBag;
85
+
publicboolBag=Defaults.Bag;
81
86
}
82
87
83
88
internalconststringSummary="Converts a key column to an indicator vector.";
/// Convenience constructor for public facing API.
122
+
/// </summary>
123
+
/// <param name="env">Host Environment.</param>
124
+
/// <param name="input">Input <see cref="IDataView"/>. This is the output from previous transform or loader.</param>
125
+
/// <param name="name">Name of the output column.</param>
126
+
/// <param name="source">Name of the input column. If this is null '<paramref name="name"/>' will be used.</param>
127
+
/// <param name="bag">Whether to combine multiple indicator vectors into a single bag vector instead of concatenating them. This is only relevant when the input is a vector.</param>
0 commit comments