April 2018
Beginner to intermediate
566 pages
12h 17m
English
Here, we will look at the code snippet that performs the actual testing. We will be obtaining all the testing matrices that have been explained so far. We are going to test all the different ML algorithms so that we can compare the accuracy score.
You can see the testing result for the multinomial naive Bayes algorithm in the following figure:

Figure 5.9: Code snippet for testing multinomial naive Bayes algorithm
As you can see, using this algorithm we have achieved an accuracy score of 81.5%.
You can see the testing result for SVM with the rbf kernel algorithm ...
Read now
Unlock full access