Hi there,
I am using STGP. Trees are represented as PrimtiveTrees.
To access a particular node in a tree I can index in as tree[5] for example.
How would I then go about modifying this node? i.e.
tree[5] = updated_value
The type of the node is a
Custom class, but when extracting from the tree it is of type
deap.gp.Custom.So how can I convert my variable to this deap.gp form?
I cant use the from string method, as this is broken for custom types and lists, both of which I need
Thanks!