Replies: 3 comments 6 replies
-
Thanks for opening this conversation. PyGAD 2.16.0 is released right now to support this feature. This is the release note: The example_custom_operators.py script in the GitHub project gives an example of building and using custom functions for the 3 operators. Please let me know if you have any other feature to be supported. |
Beta Was this translation helpful? Give feedback.
-
Hello, I am using the PyGAD library for the clustering task. I wanted to use a custom crossover operator, therefore I tried checking the ling https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#user-defined-crossover-mutation-and-parent-selection-operators, though it seems it got deleted. Was it move somewhere else? |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the support.
Antonio Politano
Da: priack ***@***.***>
Inviato: venerdì 5 gennaio 2024 12:15
A: ahmedfgad/GeneticAlgorithmPython ***@***.***>
Cc: POLITANO ANTONIO ***@***.***>; Comment ***@***.***>
Oggetto: Re: [ahmedfgad/GeneticAlgorithmPython] Accept user defined functions for crossover and mutate (Discussion #50)
I assume that you would have found it already, but since I was looking for the same when arrived to this thread, I leave the link for the future:
https://pygad.readthedocs.io/en/latest/utils.html#user-defined-crossover-mutation-and-parent-selection-operators
-
Reply to this email directly, view it on GitHub<#50 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANITL4OJXLRYNXVYMVBKPP3YM7OERAVCNFSM465MQ2JKU5DIOJSWCZC7NNSXTOKENFZWG5LTONUW63SDN5WW2ZLOOQ5TQMBSGIYDSOI>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Accept that parameters
mutation_type
orcrossover_type
(and evenparent_selection_type
) arecallable
instead of juststr
.Line 339:
Beta Was this translation helpful? Give feedback.
All reactions