Module: CooCoo::Trainer

Defined in:
lib/coo-coo/trainer.rb,
lib/coo-coo/trainer/base.rb,
lib/coo-coo/trainer/batch.rb,
lib/coo-coo/trainer/stochastic.rb,
lib/coo-coo/trainer/batch_stats.rb,
lib/coo-coo/trainer/momentum_stochastic.rb

Defined Under Namespace

Classes: Base, Batch, BatchStats, MomentumStochastic, Stochastic

Class Method Summary collapse

Class Method Details

.from_name(name) ⇒ Object



17
18
19
# File 'lib/coo-coo/trainer.rb', line 17

def self.from_name(name)
  const_get(name).instance
end

.listObject



10
11
12
13
14
15
# File 'lib/coo-coo/trainer.rb', line 10

def self.list
  constants.
    select { |c| const_get(c).ancestors.include?(Base) }.
    collect(&:to_s).
    sort
end