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, options)
  method = options[:method] || :arow
  case (method)
  when :arow
    Arow.new(k, n, options)
  when :pa, :pa1, :pa2
    PA.new(k, n, options)
  when :mlp
    MLP.new(k, n, options)
  else
    raise ArgumentError
  end
end