Class: Quarry::Classifier::NaiveBayesClassifier

Inherits:
Classifier
  • Object
show all
Defined in:
lib/quarry_rb/classifier/naive_bayes_classifier.rb

Instance Attribute Summary

Attributes inherited from Classifier

#classifier

Instance Method Summary collapse

Methods inherited from Classifier

#classify, #prepare, #rank

Constructor Details

#initialize(data_set) ⇒ NaiveBayesClassifier

Returns a new instance of NaiveBayesClassifier.



4
5
6
7
# File 'lib/quarry_rb/classifier/naive_bayes_classifier.rb', line 4

def initialize(data_set)
  @classifier = Quarry::Classifier::ImplNaiveBayesClassifier.new(data_set.data_set)
  super(data_set)
end