We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61e842c commit 5308cdaCopy full SHA for 5308cda
samples/csharp/getting-started/BinaryClassification_SpamDetection/SpamDetectionConsoleApp/Program.cs
@@ -43,9 +43,9 @@ static void Main(string[] args)
43
{
44
WordFeatureExtractor = new Microsoft.ML.Transforms.Text.WordBagEstimator.Options { NgramLength = 2, UseAllLengths = true },
45
CharFeatureExtractor = new Microsoft.ML.Transforms.Text.WordBagEstimator.Options { NgramLength = 3, UseAllLengths = false },
46
+ Norm = Microsoft.ML.Transforms.Text.TextFeaturizingEstimator.NormFunction.L2,
47
}, "Message"))
48
.Append(mlContext.Transforms.CopyColumns("Features", "FeaturesText"))
- .Append(mlContext.Transforms.NormalizeLpNorm("Features", "Features"))
49
.AppendCacheCheckpoint(mlContext);
50
51
// Set the training algorithm
0 commit comments