Database Reference
In-Depth Information
val nbRocCats = nbMetricsCats.areaUnderROC
println(f"${nbModelCats.getClass.getSimpleName}\nAccuracy:
${nbAccuracyCats * 100}%2.4f%%\nArea under PR: ${nbPrCats *
100.0}%2.4f%%\nArea under ROC: ${nbRocCats * 100.0}%2.4f%%")
You should see the following output:
NaiveBayesModel
Accuracy: 60.9601%
Area under PR: 74.0522%
Area under ROC: 60.5138%
So, by ensuring that we use the correct form of input, we have improved the performance
of the naïve Bayes model slightly from 58 percent to 60 percent.
Search WWH ::




Custom Search