var NN = {}; NN.TrainingSet = {}; NN.TrainingSet.Instances = []; NN.TrainingSet.Create = function() { var obj = {}; obj.Input = []; obj.Output = []; obj.Order = []; NN.TrainingSet.Instances.push(obj); return obj; }; NN.TrainingSet.AddPoint = function(inTrainingSet, inType, inData) { inTrainingSet.Input.push(inData); inTrainingSet.Output.push(inType); inTrainingSet.Order.push(inTrainingSet.Order.length); }; NN.TrainingSet.AddCloud = function(inTrainingSet, inLabel, inCloud) { var i; for(i=0; i=0; i--) { input = NN.Layer.Backward(inNetwork.Layers[i], input); NN.Layer.Adjust(inNetwork.Layers[i], inNetwork.LearningRate); } }; NN.Network.Batch = function(inNetwork, inTrainingSet, inIterations) { var i; for(i=0; i