示例#1
0
 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);
     }
 }
示例#2
0
        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];
        }
示例#3
0
文件: data.cs 项目: Donaim/vneuralnet
 public DynamicTrainer(DynamicVNN nn, trainingSet tset, double learningrate, double moment) : base(nn, tset, learningrate, moment)
 {
     dnn = nn;
 }
示例#4
0
文件: data.cs 项目: Donaim/vneuralnet
 public randomUpdateTrainer(vnn nn, trainingSet tset, double learningRate, double momentum) : base(nn, tset, learningRate, momentum)
 {
 }