遗传算法密码破解:种群初始化
初始化一个种群
def init_population(self):
population = np.random.randint(low=self.ascii_bounder[0], high=self.ascii_bounder[1],
size=(self.n_population, self.password_size), dtype=np.int8)
return population
原文地址: http://www.cveoy.top/t/topic/nnKC 著作权归作者所有。请勿转载和采集!