Exception: TinyClassifier::InvalidCorrectCategory

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



76
77
78
# File 'lib/tiny-classifier/errors.rb', line 76

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