Parent

Methods

Files

Ai4r::Classifiers::NaiveBayes::DataEntry

DataEntry stores the instance of the data entry the data is accessible via entries stores the class-column in the attribute klass and removes the column for the class-entry

Attributes

entries[RW]
klass[RW]

Public Class Methods

new(attributes, klass) click to toggle source
# File lib/ai4r/classifiers/naive_bayes.rb, line 247
def initialize(attributes, klass)
  @klass = klass
  @entries = attributes
end

Public Instance Methods

[](index) click to toggle source

wrapper method for the access to @entries

# File lib/ai4r/classifiers/naive_bayes.rb, line 253
def [](index)
  @entries[index]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.