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
58
ShortName="ord")]
51
-
publicboolOrdered;
59
+
publicboolOrdered=Defaults.Ordered;
52
60
53
61
[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
62
ShortName="ih")]
55
-
publicintInvertHash;
63
+
publicintInvertHash=Defaults.InvertHash;
56
64
}
57
65
58
66
publicsealedclassColumn:OneToOneColumn
@@ -234,6 +242,27 @@ public override void Save(ModelSaveContext ctx)
/// Convenience constructor for public facing API.
247
+
/// </summary>
248
+
/// <param name="env">Host Environment.</param>
249
+
/// <param name="input">Input <see cref="IDataView"/>. This is the output from previous transform or loader.</param>
250
+
/// <param name="name">Name of the output column.</param>
251
+
/// <param name="source">Name of the column to be transformed. If this is null '<paramref name="name"/>' will be used.</param>
252
+
/// <param name="hashBits">Number of bits to hash into. Must be between 1 and 31, inclusive.</param>
253
+
/// <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>
// REVIEW: A more intelligent heuristic, based on the expected size of the inputs, perhaps?
39
46
[Argument(ArgumentType.LastOccurenceWins,HelpText="The pool will have this many rows",ShortName="rows")]
40
-
publicintPoolRows=1000;
47
+
publicintPoolRows=Defaults.PoolRows;
41
48
42
49
// REVIEW: Come up with a better way to specify the desired set of functionality.
43
50
[Argument(ArgumentType.LastOccurenceWins,HelpText="If true, the transform will not attempt to shuffle the input cursor but only shuffle based on the pool. This parameter has no effect if the input data was not itself shufflable.",ShortName="po")]
44
-
publicboolPoolOnly;
51
+
publicboolPoolOnly=Defaults.PoolOnly;
45
52
46
53
[Argument(ArgumentType.LastOccurenceWins,HelpText="If true, the transform will always provide a shuffled view.",ShortName="force")]
47
-
publicboolForceShuffle;
54
+
publicboolForceShuffle=Defaults.ForceShuffle;
48
55
49
56
[Argument(ArgumentType.LastOccurenceWins,HelpText="If true, the transform will always shuffle the input. The default value is the same as forceShuffle.",ShortName="forceSource")]
/// Convenience constructor for public facing API.
91
+
/// </summary>
92
+
/// <param name="env">Host Environment.</param>
93
+
/// <param name="input">Input <see cref="IDataView"/>. This is the output from previous transform or loader.</param>
94
+
/// <param name="poolRows">The pool will have this many rows</param>
95
+
/// <param name="poolOnly">If true, the transform will not attempt to shuffle the input cursor but only shuffle based on the pool. This parameter has no effect if the input data was not itself shufflable.</param>
96
+
/// <param name="forceShuffle">If true, the transform will always provide a shuffled view.</param>
0 commit comments