ahmedfgad / GeneticAlgorithmPython

Source code of PyGAD, a Python 3 library for building the genetic algorithm and training machine learning algorithms (Keras & PyTorch).
https://pygad.readthedocs.io
BSD 3-Clause "New" or "Revised" License
1.79k stars 451 forks source link

AttributeError #233

Open hanyhabib opened 9 months ago

hanyhabib commented 9 months ago

First of all, Thank you for your efforts.

When I updated PYGAD to release 3.2.0, I've got an error regarding the pygad.kerasga module the erroe message is "AttributeError: module 'pygad' has no attribute 'kerasga'". I was trying the simple regression example

ahmedfgad commented 9 months ago

Thanks @hanyhabib.

I tested this example and it is working well without any error: https://github.com/ahmedfgad/GeneticAlgorithmPython/blob/master/examples/KerasGA/regression_example.py

Please consider importing kerasga using import pygad.kerasga and verify if the issue still exists.