Опечатка в типах в lab2
This commit is contained in:
@@ -3,7 +3,7 @@ import numpy as np
|
||||
from gen import GARunConfig, genetic_algorithm
|
||||
|
||||
|
||||
def fitness_function(chromosome: np.ndarray) -> np.ndarray:
|
||||
def fitness_function(chromosome: np.ndarray) -> np.float64:
|
||||
return chromosome[0] ** 2 + 2 * chromosome[1] ** 2
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user