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)
43
43
{
44
44
WordFeatureExtractor = new Microsoft . ML . Transforms . Text . WordBagEstimator . Options { NgramLength = 2 , UseAllLengths = true } ,
45
45
CharFeatureExtractor = new Microsoft . ML . Transforms . Text . WordBagEstimator . Options { NgramLength = 3 , UseAllLengths = false } ,
46
+ Norm = Microsoft . ML . Transforms . Text . TextFeaturizingEstimator . NormFunction . L2 ,
46
47
} , "Message" ) )
47
48
. Append ( mlContext . Transforms . CopyColumns ( "Features" , "FeaturesText" ) )
48
- . Append ( mlContext . Transforms . NormalizeLpNorm ( "Features" , "Features" ) )
49
49
. AppendCacheCheckpoint ( mlContext ) ;
50
50
51
51
// Set the training algorithm
You can’t perform that action at this time.
0 commit comments