Module: NekonekoGen::ClassifierFactory
- Defined in:
- lib/nekoneko_gen/classifier_factory.rb
Class Method Summary collapse
Class Method Details
.create(k, n, options) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/nekoneko_gen/classifier_factory.rb', line 8 def self.create(k, n, ) method = [:method] || :arow case (method) when :arow Arow.new(k, n, ) when :pa, :pa1, :pa2 PA.new(k, n, ) when :mlp MLP.new(k, n, ) else raise ArgumentError end end |