Class: Quarry::Classifier::NaiveBayesClassifier
- Inherits:
-
Classifier
- Object
- Classifier
- Quarry::Classifier::NaiveBayesClassifier
- Defined in:
- lib/quarry_rb/classifier/naive_bayes_classifier.rb
Instance Attribute Summary
Attributes inherited from Classifier
Instance Method Summary collapse
-
#initialize(data_set) ⇒ NaiveBayesClassifier
constructor
A new instance of NaiveBayesClassifier.
Methods inherited from Classifier
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 |