예제 #1
0
 public Group(string name, int numberOfNeuron, Neuron sampleNeuron,
              IGroupLearningStrategy groupLearningStrategy, ExtraInputPatternDelegate extraInputGenerator = null)
 {
     learningStrategy = groupLearningStrategy;
     AddCopyNeurons(numberOfNeuron, sampleNeuron);
     getExtraInput = extraInputGenerator;
 }
예제 #2
0
        public int AddGroup(string groupName, int numberOfNeurons, Neuron sampleNeuron,
                            IGroupLearningStrategy groupLearningStrategy, ExtraInputPatternDelegate extraInputGenerator, int layerIdx)
        {
            Group g = new Group(groupName, numberOfNeurons, sampleNeuron, groupLearningStrategy, extraInputGenerator);

            return(AddGroup(g, layerIdx));
        }
예제 #3
0
        public int AddGroup(string groupName, int numberOfNeurons, Neuron sampleNeuron,
                            IGroupLearningStrategy groupLearningStrategy, int layerIdx)
        {
            Group g = new Group(groupName, numberOfNeurons, sampleNeuron, groupLearningStrategy);

            return(AddGroup(g, layerIdx));
        }
예제 #4
0
 public void SetLearningOn(IGroupLearningStrategy groupLearningStrategy)
 {
     learningStrategy = groupLearningStrategy;
 }
예제 #5
0
 public void ResumeLearning()
 {
     learningStrategy = learningStrategyHolder;
 }
예제 #6
0
 public void SetLearningOff()
 {
     learningStrategyHolder = learningStrategy;
     learningStrategy       = new GroupLearningStrategies.LearningOffGroupStrategy();
 }