NormalBayesClassifier classifier is an abstract class
I'm trying to figure out how to use the Normal Bayes Classifier as explained here.
Mat trainingData;
Mat trainingLabels;
Mat evalData;
Mat results;
cv::ml::NormalBayesClassifier classifier;
//Train classifier...
classifier.train(trainingData, trainingLabels);
//Evaluate classifier...
classifier.predict(evalData,&results);
But I get the following build error:
cv::ml::NormalBayesClassifier classifier is an abstract class
I tried making a subclass of NormalBayesClassifier
and using that instead but I didn't manage.. What am I doing wrong?