Open Kuselokusi opened 5 years ago
You do not need the bracket or commas. It should look like this: activation_options = softplus sigmoid
Without digging into the code my assumption is that since the activation mutation rate is 0.0 it only uses the activation_default softplus and thus never tries to read activation_options.
Thank you, I didn't realise that was the mistake I was making. Is the use of two activation functions with a mutation something that is advisable when applying neat to a particular problem. I ask because if I were to use an activation_mutate_rate of 0.01 and give two activation functions in the options, how does someone know when the activation function has been mutated over the generations?...can this information be extracted somehow using code?
You can evaluate each individual genome and see what nodes it has. You can then traverse the nodes and see what the activation and aggregation type is on each.
The mutation rate is probably of less concern than node_add_prob and node_delete_prob which are set at .5. This means you have a 50% chance of adding or deleting a new node and it's default will default to the activation default function.
Depending on the complexity of the problem you are trying to solve you may need more or less nodes and the closer you can get to that from the start the better. The more nodes you have the longer your search time will be.
Having multiple activation functions is fine and you can include those that you think will work well with your problem space. You can also set the default to random so that the initial population starts with different node activation types.
Hi, I have recently attempted to change the "activation_mutate_rate" in my config file however I get the error: "neat.activations.InvalidActivationFunction: No such activation function: '[softplus,' "
But this does not make sense because this is a valid activation function. And this activation function works when "activation_mutate_rate = 0.0" which make this error quite strange.
Please see my config file below