Pedro Guerreiro
Pedro Guerreiro
You can pass a callback function to the `run` method: ```python algorithm.run(1000, callback=foo) ``` and then create the `foo` function, that receives an instance of the algorithm. This function will...
I have the same problem (in Windows 11 Pro 22H2, OS Build 22621.3593). If i try to right-click on a `ipynb` file (using file explorer, and in a path with...
> I have the same problem (in Windows 11 Pro 22H2, OS Build 22621.3593). > > If i try to right-click on and `ipynb` file (using file explorer, and in...
Hi. No, you cannot remove the command in line 1926, because if you do so and the best solution is found in the last generation, it won't be returned by...
Just an addon: If I call this way: ``` solution, solution_fitness, solution_idx = ga_instance.best_solution(pop_fitness=ga_instance.last_generation_fitness) ``` it returns the correct value, i.e. the same as given by the call to `np.max(ga_instance.best_solutions_fitness)`...