public static void check_ex(vnn nn, VNNAddOn.trainingSet tset) { if (nn.nInput != tset.inputs[0].Length) { throw new NNSetNotMatch(true); } if (nn.nOutput != tset.outputs[0].Length) { throw new NNSetNotMatch(false); } }
public trainer(vnn net, trainingSet set, double learning_rate, double moment) { exceptions.NNSetNotMatch.check_ex(net, set); NN = net; tset = set; momentum = moment; learningRate = learning_rate; outputErrorGradients = new double[net.nOutput]; hiddenErrorGradients = new double[net.nHidden]; deltaHiddenOutput = new double[net.nOutput, net.nHidden + 1]; deltaInputHidden = new double[net.nHidden, net.nInput + 1]; }
public DynamicTrainer(DynamicVNN nn, trainingSet tset, double learningrate, double moment) : base(nn, tset, learningrate, moment) { dnn = nn; }
public randomUpdateTrainer(vnn nn, trainingSet tset, double learningRate, double momentum) : base(nn, tset, learningRate, momentum) { }