Ahmed Gad

Results 159 comments of Ahmed Gad

Thanks @alien2327 for sharing the code. May I know these inputs so that I can run the code? 1. model 2. opt 3. base_map 4. geodata 5. device 6. optim_target...

I edited the code you sent because it had somethings missing. I used `torch.device('cpu:0')` instead of `torch.device('cuda:0')` because I have the torch library that works on the CPU only. Is...

There is no property that saves the population in the previous generation is not saved. But you can still access it. Here are 2 ways. ## First way 1. Set...

> Does pygad automatically skipping evaluate solution that has been calculated from previous solution? @yasirroni, PyGAD skips evaluation the fitness for a previous solution if any of these conditions hold:...

The documentation is already updated to reflect this: https://github.com/ahmedfgad/GeneticAlgorithmPython/commit/d3b9ec0533d0d87b91298e8db1a6852947c93570

PyGAD uses the `cloudpickle` library which is able to pickle not only the objects but also the functions. So, yes the fitness function is pickled. When you run the code...

> @borisarloff hi, you talked about the solution_idx, in my test, the solution and solution fitness could also be wrong. > > For example, with stochastic fitness function, we have...

@whubaichuan, This would be the reason why you have this behavior. Please give a try when the new release is published.

Hi @krkaufma, Thank you. The `pygad.load()` function does run the algorithm. It is a very simple function that just loads the pickled object and return it. ```python def load(filename): try:...

No there is no other method to load the picked object. I just tested saving the model after and before completion and it does not happen to continue running after...