Exemplo n.º 1
0
    def __init__(self, Inputs, Width, Height, Iterations=1, Name=""):
        NeuralNet.__init__(self,
                           Inputs,
                           Outputs=0,
                           Layers=Width,
                           NeuronsPerLayer=Height,
                           Name=Name)

        # Remove uneeded member variables.
        del self.NumberOfOutputs, self.NumberOfNeuronsPerLayer, self.NumberOfLayers, self.HasBiasLayer

        #
        self.transferSynapses = dict()
        tmp = TransferSynapse(self)

        #
        self.Map = None

        #
        self.Width = Width

        #
        self.Height = Height

        #
        self.inputLayer = None

        #
        self.totalIterations = Iterations

        #
        self.iteration = 1
Exemplo n.º 2
0
 def __init__ (self, Inputs, Width, Height, Iterations=1, Name=""):
     NeuralNet.__init__ (self, Inputs, Outputs=0, Layers=Width, NeuronsPerLayer=Height, Name=Name)
     
     # Remove uneeded member variables.
     del self.NumberOfOutputs, self.NumberOfNeuronsPerLayer, self.NumberOfLayers, self.HasBiasLayer
     
     #
     self.transferSynapses = dict ()
     tmp = TransferSynapse (self)
     
     #
     self.Map = None
     
     #
     self.Width = Width
     
     #
     self.Height= Height
     
     #
     self.inputLayer = None
     
     #
     self.totalIterations = Iterations
     
     #
     self.iteration = 1
Exemplo n.º 3
0
 def __init__(self,
              Inputs,
              Outputs,
              Layers=None,
              NeuronsPerLayer=None,
              Name=""):
     """ Pass the arguments to the parent class. """
     NeuralNet.__init__(self, Inputs, Outputs, Layers, NeuronsPerLayer,
                        Name)
Exemplo n.º 4
0
    def __init__ (self, Inputs, Outputs, Layers=None, NeuronsPerLayer=None, \
                   AddBias=False, StepActivation=None, Name=""):
        NeuralNet.__init__ (self, Inputs, Outputs, Layers, NeuronsPerLayer, Name)

        if AddBias:
            self.HasBiasLayer = True
        
        # Temporary layers
        self._TempLayers = list ()
Exemplo n.º 5
0
    def __init__ (self, Inputs, Outputs, Layers=None, NeuronsPerLayer=None, \
                   AddBias=False, StepActivation=None, Name=""):
        NeuralNet.__init__(self, Inputs, Outputs, Layers, NeuronsPerLayer,
                           Name)

        if AddBias:
            self.HasBiasLayer = True

        # Temporary layers
        self._TempLayers = list()
Exemplo n.º 6
0
 def __init__ (self, Inputs, Outputs, Layers=None, NeuronsPerLayer=None, Name=""):
     """ Pass the arguments to the parent class. """
     NeuralNet.__init__ (self, Inputs, Outputs, Layers, NeuronsPerLayer, Name)