Skip to content

Commit 5308cda

Browse files
authored
removed extra lpnorm (#824)
1 parent 61e842c commit 5308cda

File tree

1 file changed

+1
-1
lines changed
  • samples/csharp/getting-started/BinaryClassification_SpamDetection/SpamDetectionConsoleApp

1 file changed

+1
-1
lines changed

samples/csharp/getting-started/BinaryClassification_SpamDetection/SpamDetectionConsoleApp/Program.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ static void Main(string[] args)
4343
{
4444
WordFeatureExtractor = new Microsoft.ML.Transforms.Text.WordBagEstimator.Options { NgramLength = 2, UseAllLengths = true },
4545
CharFeatureExtractor = new Microsoft.ML.Transforms.Text.WordBagEstimator.Options { NgramLength = 3, UseAllLengths = false },
46+
Norm = Microsoft.ML.Transforms.Text.TextFeaturizingEstimator.NormFunction.L2,
4647
}, "Message"))
4748
.Append(mlContext.Transforms.CopyColumns("Features", "FeaturesText"))
48-
.Append(mlContext.Transforms.NormalizeLpNorm("Features", "Features"))
4949
.AppendCacheCheckpoint(mlContext);
5050

5151
// Set the training algorithm

0 commit comments

Comments
 (0)