Ahmed Gad
Ahmed Gad
Can you share a full code to test on my end? Some code is missing from the posted example. ```python import pygad import time def fitness_func(ga_instance, solution, solution_idx): #cal ISP...
Thanks for sharing the code. Please provide the following to run the code. * `Config_file_handling` * `isp_run` * `Image_metadata` * `gene_type` * `gene_space` * `on_generation`
The hash object cannot be pickled. It is an issue with the `cloudpickle` library used by PyGAD to pickle the `pygad.GA` objects.
Sorry this code from the documentation was not updated. This will be fixed in the new release. For now, please consider changing the type of the returned indices to `numpy.ndarray`...
Sometimes you use some objects that need some workaround to pickle. A minimum code sample will be helpful to figure out the issue.
> Can you provide the minimum example of your code? Particularly the part where you try to save the GA instance? @krkaufma, This is the part of the code that...
> Yes, pickle is the problem. In my program, I used tqdm to show the progress of the population, however, tqdm has a rate estimation mechanism that uses time, and...
Thanks. The issue is solved https://github.com/ahmedfgad/GeneticAlgorithmPython/commit/01cb71c555da32272ec7fcb70c64416d10ae84bb
Thanks for opening the issue. There was a bug and it is fixed. It will be available in the new release of the library.
Is it possible to use PyGAD's GPU acceleration to run a genetic algorithm as opposed to using numpy?
Yes, it is possible but this is a major change. Also, I am not sure if the GPU would help as the generic algorithm usually does not have complex time-consuming...