61 references to KeyOrdinality
Microsoft.ML.Core.Tests (1)
UnitTests\TestEntryPoints.cs (1)
1557
data = new ValueToKeyMappingEstimator(Env, "Label", "Label", keyOrdinality: ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue).Fit(data).Transform(data);
Microsoft.ML.Data (32)
Transforms\ConversionsExtensionsCatalog.cs (8)
126
/// <see cref="MapValueToKey(TransformsCatalog.ConversionTransforms, InputOutputColumnPair[], int, ValueToKeyMappingEstimator.
KeyOrdinality
, bool, IDataView)"/></remarks>
147
/// <see cref="MapValueToKey(TransformsCatalog.ConversionTransforms, InputOutputColumnPair[], int, ValueToKeyMappingEstimator.
KeyOrdinality
, bool, IDataView)"/></remarks>
232
/// If set to <see cref="ValueToKeyMappingEstimator.
KeyOrdinality
.ByOccurrence"/>, keys are assigned in the order encountered.
233
/// If set to <see cref="ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue"/>, values are sorted, and keys are assigned based on the sort order.</param>
251
ValueToKeyMappingEstimator.
KeyOrdinality
keyOrdinality = ValueToKeyMappingEstimator.Defaults.Ordinality,
267
/// If set to <see cref="ValueToKeyMappingEstimator.
KeyOrdinality
.ByOccurrence"/>, keys are assigned in the order encountered.
268
/// If set to <see cref="ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue"/>, values are sorted, and keys are assigned based on the sort order.</param>
285
ValueToKeyMappingEstimator.
KeyOrdinality
keyOrdinality = ValueToKeyMappingEstimator.Defaults.Ordinality,
Transforms\ValueToKeyMappingEstimator.cs (14)
43
/// <seealso cref="ConversionsExtensionsCatalog.MapValueToKey(TransformsCatalog.ConversionTransforms, InputOutputColumnPair[], int,
KeyOrdinality
, bool, IDataView)"/>
44
/// <seealso cref="ConversionsExtensionsCatalog.MapValueToKey(TransformsCatalog.ConversionTransforms, string, string, int,
KeyOrdinality
, bool, IDataView)"/>
45
/// <seealso cref="ConversionsExtensionsCatalog.MapValueToKey(TransformsCatalog.ConversionTransforms, InputOutputColumnPair[], int, ValueToKeyMappingEstimator.
KeyOrdinality
, bool, IDataView)"/>
46
/// <seealso cref="ConversionsExtensionsCatalog.MapValueToKey(TransformsCatalog.ConversionTransforms, string, string, int, ValueToKeyMappingEstimator.
KeyOrdinality
, bool, IDataView)"/>
53
public const
KeyOrdinality
Ordinality =
KeyOrdinality
.ByOccurrence;
83
public readonly
KeyOrdinality
KeyOrdinality;
95
int maximumNumberOfKeys,
KeyOrdinality
keyOrdinality, bool addKeyValueAnnotationsAsText)
119
/// If set to <see cref="ValueToKeyMappingEstimator.
KeyOrdinality
.ByOccurrence"/>, keys are assigned in the order encountered.
120
/// If set to <see cref="ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue"/>, values are sorted, and keys are assigned based on the sort order.</param>
126
KeyOrdinality
keyOrdinality = Defaults.Ordinality,
145
/// If set to <see cref="ValueToKeyMappingEstimator.
KeyOrdinality
.ByOccurrence"/>, keys are assigned in the order encountered.
146
/// If set to <see cref="ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue"/>, values are sorted, and keys are assigned based on the sort order.</param>
147
internal ValueToKeyMappingEstimator(IHostEnvironment env, string outputColumnName, string inputColumnName = null, int maximumNumberOfKeys = Defaults.MaximumNumberOfKeys,
KeyOrdinality
keyOrdinality = Defaults.Ordinality) :
Transforms\ValueToKeyMappingTransformer.cs (6)
56
public ValueToKeyMappingEstimator.
KeyOrdinality
? Sort;
125
public ValueToKeyMappingEstimator.
KeyOrdinality
Sort = ValueToKeyMappingEstimator.Defaults.Ordinality;
283
if (!Enum.IsDefined(typeof(ValueToKeyMappingEstimator.
KeyOrdinality
), options.Sort))
289
var
sortOrder = item.Sort ?? options.Sort;
290
if (!Enum.IsDefined(typeof(ValueToKeyMappingEstimator.
KeyOrdinality
), sortOrder))
540
var
sortOrder = columns[iinfo].KeyOrdinality;
Transforms\ValueToKeyMappingTransformerImpl.cs (4)
42
public static Builder Create(DataViewType type, ValueToKeyMappingEstimator.
KeyOrdinality
sortOrder)
50
Contracts.Assert(sortOrder == ValueToKeyMappingEstimator.
KeyOrdinality
.ByOccurrence || sortOrder == ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue);
51
bool sorted = sortOrder == ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue;
Microsoft.ML.EntryPoints (1)
FeatureCombiner.cs (1)
255
Sort = ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue
Microsoft.ML.Samples (7)
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
51
.ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue)
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (2)
55
.ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue)
71
.ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue)
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
50
.ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue)
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
50
.ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue)
Dynamic\Transforms\Conversion\KeyToValueToKey.cs (1)
45
ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue));
Dynamic\Transforms\Conversion\MapValueToKeyMultiColumn.cs (1)
35
.
KeyOrdinality
.ByValue, addKeyValueAnnotationsAsText: true);
Microsoft.ML.Samples.GPU (5)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (1)
51
.ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (2)
55
.ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue)
71
.ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (1)
50
.ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue)
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (1)
50
.ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue)
Microsoft.ML.Tests (1)
OnnxConversionTest.cs (1)
1185
[CombinatorialValues(1, 2)] int maximumNumberOfKeys, ValueToKeyMappingEstimator.
KeyOrdinality
keyOrdinality,
Microsoft.ML.Transforms (14)
CategoricalCatalog.cs (6)
32
/// <param name="keyOrdinality">How items should be ordered when vectorized. If <see cref="ValueToKeyMappingEstimator.
KeyOrdinality
.ByOccurrence"/>
33
/// choosen they will be in the order encountered. If <see cref="ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue"/>,
48
ValueToKeyMappingEstimator.
KeyOrdinality
keyOrdinality = ValueToKeyMappingEstimator.Defaults.Ordinality,
66
/// <param name="keyOrdinality">How items should be ordered when vectorized. If <see cref="ValueToKeyMappingEstimator.
KeyOrdinality
.ByOccurrence"/>
67
/// choosen they will be in the order encountered. If <see cref="ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue"/>,
81
ValueToKeyMappingEstimator.
KeyOrdinality
keyOrdinality = ValueToKeyMappingEstimator.Defaults.Ordinality,
OneHotEncoding.cs (5)
194
/// <seealso cref="CategoricalCatalog.OneHotEncoding(TransformsCatalog.CategoricalTransforms, InputOutputColumnPair[], OneHotEncodingEstimator.OutputKind, int, ValueToKeyMappingEstimator.
KeyOrdinality
, IDataView)"/>
195
/// <seealso cref="CategoricalCatalog.OneHotEncoding(TransformsCatalog.CategoricalTransforms, string, string, OneHotEncodingEstimator.OutputKind, int, ValueToKeyMappingEstimator.
KeyOrdinality
, IDataView)"/>
245
/// <param name="keyOrdinality">How items should be ordered when vectorized. If <see cref="ValueToKeyMappingEstimator.
KeyOrdinality
.ByOccurrence"/> choosen they will be in the order encountered.
246
/// If <see cref="ValueToKeyMappingEstimator.
KeyOrdinality
.ByValue"/>, items are sorted according to their default comparison, for example, text sorting will be case sensitive (for example, 'A' then 'Z' then 'a').</param>
249
int maximumNumberOfKeys = ValueToKeyMappingEstimator.Defaults.MaximumNumberOfKeys, ValueToKeyMappingEstimator.
KeyOrdinality
keyOrdinality = ValueToKeyMappingEstimator.Defaults.Ordinality)
Text\WordBagTransform.cs (3)
502
keyOrdinality: termLoaderArgs?.Sort ?? ValueToKeyMappingEstimator.
KeyOrdinality
.ByOccurrence);
605
public ValueToKeyMappingEstimator.
KeyOrdinality
Sort = ValueToKeyMappingEstimator.
KeyOrdinality
.ByOccurrence;