예제 #1
0
파일: runHere.py 프로젝트: Sharpenski/GA_FA
def mutFunctions(member):
    
    # print "Mutating the functions"
    index = random.randint(0, len(member.functions)-1)
    member.functions[index] = activation.luckyDip()
    return member
예제 #2
0
def mutFunctions(member):

    # print "Mutating the functions"
    index = random.randint(0, len(member.functions) - 1)
    member.functions[index] = activation.luckyDip()
    return member
예제 #3
0
파일: ANN.py 프로젝트: Sharpenski/GA_FA
 def assignFunctions(self):
     functions = []
     for i in range(self.noNeurons):
         toAdd = activation.luckyDip()
         functions.append(toAdd)
     return functions
예제 #4
0
파일: ANN.py 프로젝트: Sharpenski/GA_FA
 def assignFunctions(self):
     functions = []
     for i in range(self.noNeurons):   
         toAdd = activation.luckyDip()
         functions.append(toAdd)    
     return functions