Class: Ai4r::Classifiers::ErrorNode

Inherits:
Object
  • Object
show all
Defined in:
lib/ai4r/classifiers/id3.rb

Overview

:nodoc: all

Instance Method Summary collapse

Instance Method Details

#get_rulesObject


324
325
326
# File 'lib/ai4r/classifiers/id3.rb', line 324

def get_rules
  return []
end

#value(data) ⇒ Object

Raises:


321
322
323
# File 'lib/ai4r/classifiers/id3.rb', line 321

def value(data)
  raise ModelFailureError, "There was not enough information during training to do a proper induction for the data element #{data}."
end