45 references to WeightingCriteria
Microsoft.ML.Samples (2)
Dynamic\Transforms\Text\ProduceNgrams.cs (1)
61weighting: NgramExtractingEstimator.WeightingCriteria.Tf));
Dynamic\Transforms\Text\ProduceWordBags.cs (1)
58weighting: NgramExtractingEstimator.WeightingCriteria.Tf);
Microsoft.ML.Tests (4)
OnnxConversionTest.cs (1)
1462NgramExtractingEstimator.WeightingCriteria weighting)
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (1)
536ngramLength: 3, weighting: NgramExtractingEstimator.WeightingCriteria.TfIdf))
Scenarios\WordBagTest.cs (2)
33ngramLength: 3, useAllLengths: false, weighting: NgramExtractingEstimator.WeightingCriteria.Tf).Append( 35ngramLength: 3, useAllLengths: false, weighting: NgramExtractingEstimator.WeightingCriteria.Tf));
Microsoft.ML.Transforms (39)
Text\NgramTransform.cs (20)
56public NgramExtractingEstimator.WeightingCriteria? Weighting; 98public NgramExtractingEstimator.WeightingCriteria Weighting = NgramExtractingEstimator.Defaults.Weighting; 129public readonly NgramExtractingEstimator.WeightingCriteria Weighting; 131public bool RequireIdf => Weighting == NgramExtractingEstimator.WeightingCriteria.Idf || Weighting == NgramExtractingEstimator.WeightingCriteria.TfIdf; 159Weighting = (NgramExtractingEstimator.WeightingCriteria)ctx.Reader.ReadInt32(); 160Contracts.CheckDecode(Enum.IsDefined(typeof(NgramExtractingEstimator.WeightingCriteria), Weighting)); 179Contracts.Assert(Enum.IsDefined(typeof(NgramExtractingEstimator.WeightingCriteria), Weighting)); 687case NgramExtractingEstimator.WeightingCriteria.TfIdf: 704case NgramExtractingEstimator.WeightingCriteria.Idf: 721case NgramExtractingEstimator.WeightingCriteria.Tf: 811mode = transformInfo.Weighting == NgramExtractingEstimator.WeightingCriteria.Idf ? "IDF" : "TFIDF"; 858/// <seealso cref="TextCatalog.ProduceNgrams(TransformsCatalog.TextTransforms, string, string, int, int, bool, int, WeightingCriteria)"/> 889public const WeightingCriteria Weighting = WeightingCriteria.Tf; 913WeightingCriteria weighting = Defaults.Weighting) 935WeightingCriteria weighting = Defaults.Weighting) 1001public readonly WeightingCriteria Weighting; 1026WeightingCriteria weighting = Defaults.Weighting, 1036WeightingCriteria weighting,
Text\TextCatalog.cs (6)
275NgramExtractingEstimator.WeightingCriteria weighting = NgramExtractingEstimator.Defaults.Weighting) => 361NgramExtractingEstimator.WeightingCriteria weighting = NgramExtractingEstimator.WeightingCriteria.Tf) 388outputColumnName, inputColumnName, 1, 0, true, maximumNgramsCount, NgramExtractingEstimator.WeightingCriteria.Tf, termSeparator: termSeparator, freqSeparator: freqSeparator); 415NgramExtractingEstimator.WeightingCriteria weighting = NgramExtractingEstimator.WeightingCriteria.Tf)
Text\WordBagTransform.cs (3)
75public NgramExtractingEstimator.WeightingCriteria? Weighting; 379public NgramExtractingEstimator.WeightingCriteria? Weighting; 426public NgramExtractingEstimator.WeightingCriteria Weighting = NgramExtractingEstimator.Defaults.Weighting;
Text\WrappedTextTransformers.cs (10)
37/// <seealso cref="TextCatalog.ProduceWordBags(TransformsCatalog.TextTransforms, string, string, int, int, bool, int, NgramExtractingEstimator.WeightingCriteria)" /> 38/// <seealso cref="TextCatalog.ProduceWordBags(TransformsCatalog.TextTransforms, string, string[], int, int, bool, int, NgramExtractingEstimator.WeightingCriteria)" /> 47private readonly NgramExtractingEstimator.WeightingCriteria _weighting; 80public NgramExtractingEstimator.WeightingCriteria Weighting; 113NgramExtractingEstimator.WeightingCriteria weighting = NgramExtractingEstimator.WeightingCriteria.Tf, 141NgramExtractingEstimator.WeightingCriteria weighting = NgramExtractingEstimator.WeightingCriteria.Tf, 167NgramExtractingEstimator.WeightingCriteria weighting = NgramExtractingEstimator.WeightingCriteria.Tf,