Sha256: 1f528d649535f9af17afe988aad2b2245dd6edd2f238d31b6bbdd9927f868505
Contents?: true
Size: 455 Bytes
Versions: 2
Compression:
Stored size: 455 Bytes
Contents
require 'spec_helper' describe Brainz::Neuron do before do @brainz = Brainz::Brainz.new @brainz.stubs(num_input: 2, num_output: 2, learning_rate: 1.66, momentum: 0.123) @brainz.initialize_network end subject { @brainz.network.input.neurons.first } it "should return learning rate of brainz" do subject.learning_rate.should == 1.66 end it "should return momentum of brainz" do subject.momentum.should == 0.123 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brainz-0.2.0 | spec/lib/neuron_spec.rb |
brainz-0.1.3 | spec/lib/neuron_spec.rb |