Ejemplo n.º 1
0
 public virtual void printNet(NeuralNet n)
 {
     inputLayer.printLayer(n.InputLayer);
     Console.WriteLine();
     if (n.HiddenLayer != null)
     {
         hiddenLayer.printLayer(n.ListOfHiddenLayer);
         Console.WriteLine();
     }
     outputLayer.printLayer(n.OutputLayer);
 }
Ejemplo n.º 2
0
        public virtual void printTrainedNetResult(NeuralNet n)
        {
            switch (n.trainType)
            {
            case TrainingTypesENUM.BACKPROPAGATION:
                Backpropagation b = new Backpropagation();
                b.printTrainedNetResult(n);
                break;

            default:
                throw new System.ArgumentException(n.trainType + " does not exist in TrainingTypesENUM");
            }
        }
Ejemplo n.º 3
0
        public virtual NeuralNet trainNet(NeuralNet n)
        {
            NeuralNet trainedNet = new NeuralNet();

            switch (n.trainType)
            {
            case TrainingTypesENUM.BACKPROPAGATION:
                Backpropagation b = new Backpropagation();
                trainedNet = b.train(n);
                return(trainedNet);

            default:
                throw new System.ArgumentException(n.trainType + " does not exist in TrainingTypesENUM");
            }
        }