Exception: Util::UntrainedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/util/Util.rb

Instance Method Summary collapse

Constructor Details

#initialize(modelType, method = "train") ⇒ UntrainedError

Returns a new instance of UntrainedError.



3
4
5
# File 'lib/util/Util.rb', line 3

def initialize(modelType, method = "train")
    super("Model must be trained (hint: Call the `" + method + "` method of your " + modelType + " instance)")
end