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