lib/quarry/src/classifier/classifier.h in thera-0.0.7 vs lib/quarry/src/classifier/classifier.h in thera-0.0.8
- old
+ new
@@ -44,9 +44,11 @@
else
nominal_features[i] = true;
}
}
+ virtual ~Classifier() {}
+
virtual void prepare() {};
virtual Classifier *clone(DataSet::DataSet *new_data_set) = 0;
virtual double score(int category, DataSet::Example *example) = 0;
virtual int classify(DataSet::Example *example);
virtual vector<Score> *rank(DataSet::Example *example);