Class: TinyClassifier::Untrainer
- Defined in:
- lib/tiny-classifier/untrainer.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Trainer
Methods inherited from Base
#classifier, #initialize, #parse_command_line_options
Constructor Details
This class inherits a constructor from TinyClassifier::Trainer
Instance Method Details
#run(params) ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/tiny-classifier/untrainer.rb', line 20 def run(params) @label = params[:label] prepare_label if input.empty? STDERR.puts("Error: No effective input.") false else classifier.send("untrain_#{@label}", input) save true end end |