class NeuralNetwork::Connection
Attributes
source[RW]
target[RW]
weight[RW]
Public Class Methods
new(source, target)
click to toggle source
# File lib/neural_network/connection.rb, line 5 def initialize(source, target) @source = source # neuron @target = target # neuron @weight = 0.4 # rand end
Public Instance Methods
to_s()
click to toggle source
# File lib/neural_network/connection.rb, line 11 def to_s "Connection: #{@source} #{@target} #{@weight}" end