예제 #1
0
        public void Initialise()
        {
            Console.WriteLine("Loading Training Data Set...");
            TrainingDataSet = DataSetItem.GetTrainingSet().Randomise(0);
            Console.WriteLine("Loading Generalisation Data Set...");
            GeneralisationDataSet = DataSetItem.GetGeneralisationSet().Randomise(1);

            Console.WriteLine("Creating LeNet...");
            Network = new LeNetNetwork('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
            Snapshot = new LeNetSnapshot(Network);
        }
예제 #2
0
        public void Initialise()
        {
            Console.WriteLine("Loading Training Data Set...");
            TrainingDataSet = DataSetItem.GetTrainingSet().Randomise(0);
            Console.WriteLine("Loading Generalisation Data Set...");
            GeneralisationDataSet = DataSetItem.GetGeneralisationSet().Randomise(1);

            Console.WriteLine("Creating LeNet...");
            Network  = new LeNetNetwork('0', '1', '2', '3', '4', '5', '6', '7', '8', '9');
            Snapshot = new LeNetSnapshot(Network);
        }
예제 #3
0
 public LeNetSnapshot(LeNetNetwork network)
 {
     Network = network;
     Input = new StepSnapshot(network.inputLayer);
     FirstConvolutions = network.FirstConvolutions.Select(step => new StepSnapshot(step)).ToArray();
     FirstSubsampling = network.FirstSubsampling.Select(step => new StepSnapshot(step)).ToArray();
     SecondConvolutions = network.SecondConvolutions.Select(step => new StepSnapshot(step)).ToArray();
     SecondSubsampling = network.SecondSubsampling.Select(step => new StepSnapshot(step)).ToArray();
     Consolidation = new StepSnapshot(network.Consolidation, 1);
     Output = new StepSnapshot(network.Output, LeNetConfiguration.OutputWidth);
     Marking = new StepSnapshot(network.Marking, network.Marking.Length);
 }
예제 #4
0
 public LeNetSnapshot(LeNetNetwork network)
 {
     Network            = network;
     Input              = new StepSnapshot(network.inputLayer);
     FirstConvolutions  = network.FirstConvolutions.Select(step => new StepSnapshot(step)).ToArray();
     FirstSubsampling   = network.FirstSubsampling.Select(step => new StepSnapshot(step)).ToArray();
     SecondConvolutions = network.SecondConvolutions.Select(step => new StepSnapshot(step)).ToArray();
     SecondSubsampling  = network.SecondSubsampling.Select(step => new StepSnapshot(step)).ToArray();
     Consolidation      = new StepSnapshot(network.Consolidation, 1);
     Output             = new StepSnapshot(network.Output, LeNetConfiguration.OutputWidth);
     Marking            = new StepSnapshot(network.Marking, network.Marking.Length);
 }