-
-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fitness function is being saved? #263
Comments
found the workaround myself: try:
ga_instance = pygad.load('test')
ga_instance.fitness_func = fitness_func still, would be nice to reflect this in documentation |
PyGAD uses the When you run the code for the first time with the commented print statement, then the After loading the saved As you suggested, you can force change the fitness function by setting the |
steps to reproduce:
expected results:
TEST TEST TEST
being printedactual results:
nothing happens
does this means that the code of fitness function is saved too?
is there a way to update my code after the ga was saved?
The text was updated successfully, but these errors were encountered: