File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
samples/csharp/getting-started/BinaryClassification_SpamDetection/SpamDetectionConsoleApp Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments