class Ai4cr::NeuralNetwork::Cmn::Chain
- Ai4cr::NeuralNetwork::Cmn::Chain
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
ai4cr/neural_network/cmn/chain.crConstructors
- .new(pull : JSON::PullParser)
-
.new(net_set : Array(Ai4cr::NeuralNetwork::Cmn::MiniNet))
NOTE When passing in the array for net_set, ..
Instance Method Summary
- #calc_structure
- #error_stats
- #errors : Array(Hash(Symbol, Int32))
- #eval(inputs_given)
- #guesses_best
- #net_set : Array(MiniNet)
- #net_set=(net_set : Array(MiniNet))
- #net_set_indexes_reversed : Array(Int32)
- #net_set_size : Int32
- #structure : Array(Int32)
-
#train(inputs_given, outputs_expected, until_min_avg_error = 0.1)
TODO utilize until_min_avg_error
- #validate
- #validate!
- #weight_height_mismatches : Array(Hash(Symbol, Int32))
Constructor Detail
def self.new(net_set : Array(Ai4cr::NeuralNetwork::Cmn::MiniNet))
#
NOTE When passing in the array for net_set, .. if you're including just one type of MiniNet, e.g.: net0 = Ai4cr::NeuralNetwork::Cmn::MiniNet::Sigmoid.new(height: 256, width: 300, history_size: 60) net1 = Ai4cr::NeuralNetwork::Cmn::MiniNet::Sigmoid.new(height: 300, width: 3, history_size: 60)
... and you try to pass in like below, you'll get a type error: cns = Ai4cr::NeuralNetwork::Cmn::Chain.new([net0, net1])
... So, you'll need to init the array like: arr = Array(Ai4cr::NeuralNetwork::Cmn::MiniNet).new arr << net0 arr << net1
... and then pass it in like: cns = Ai4cr::NeuralNetwork::Cmn::Chain.new(arr)
Instance Method Detail
def train(inputs_given, outputs_expected, until_min_avg_error = 0.1)
#
TODO utilize until_min_avg_error