Do you have any example with the number of genes more than 2 in a chromosome?
I tried to increase the number of genes to 3 in example #2 (Simple mathematical expression inference), however I got "TypeError: add expected 2 arguments, got 3".
I'm new to Python, not sure if I understand the code correctly, but it seems that the "add" operator does not work as a linker for more than 2 genes since it only accepts two parameters.
This is because the built-in 'add' operator in Python can only accept two arguments. If you have three genes, you need to provide a custom 'add' function that can accept three parameters. See this issue for more information.
Hi Shuhua,
Thank you for creating this great package!
Do you have any example with the number of genes more than 2 in a chromosome? I tried to increase the number of genes to 3 in example #2 (Simple mathematical expression inference), however I got "TypeError: add expected 2 arguments, got 3". I'm new to Python, not sure if I understand the code correctly, but it seems that the "add" operator does not work as a linker for more than 2 genes since it only accepts two parameters.
Regards, Shaun