Replicating GANN regression examples. #218
mjcallaway
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @mjcallaway, For the first example, the code published in the documentation is not updated. Please use the code in this script: https://github.com/ahmedfgad/GeneticAlgorithmPython/blob/master/examples/gann/example_regression.py. The documentation will be updated soon. For the second example (fish classification), I tested it and the fitness does not pass 0.0034. But maybe the result posted at the documentation is reached after making some changes in mutation or initial population. Not sure yet to be honest. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've tried running the code for the two regression examples in the documentation here:
https://pygad.readthedocs.io/en/latest/gann.html#examples
but a typical fitness value plot is not as expected, being much worse than those shown; predictions are also very poor and errors are large. Am I missing something, or have the plots in the documentation been specially selected and are not typical outputs?
Regression Example 1 output
Predictions of the trained network : [array([0.33516124]), array([1.38754763])]
Absolute error : 0.7.
Regression Example 2 output
Absolute error : 290.8024640876485.
Beta Was this translation helpful? Give feedback.
All reactions