Exception: Util::UntrainedError
- Inherits:
-
StandardError
- Object
- StandardError
- Util::UntrainedError
- Defined in:
- lib/util/Util.rb
Instance Method Summary collapse
-
#initialize(modelType, method = "train") ⇒ UntrainedError
constructor
A new instance of UntrainedError.
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 |