Exception: TinyClassifier::InvalidWrongCategory

Inherits:
InvalidCategory show all
Defined in:
lib/tiny-classifier/errors.rb

Instance Attribute Summary

Attributes inherited from InvalidCategory

#categories, #category

Instance Method Summary collapse

Methods inherited from InvalidCategory

#initialize

Constructor Details

This class inherits a constructor from TinyClassifier::InvalidCategory

Instance Method Details

#messageObject



70
71
72
# File 'lib/tiny-classifier/errors.rb', line 70

def message
  "You need to specify one of valid categories to untrain: #{@categories.join(", ")}"
end