HyperCodec / neat

Crate for implementing NeuroEvolution of Augmenting Topologies
MIT License
3 stars 0 forks source link

[TODO] activation fn registry #17

Closed HyperCodec closed 3 months ago

HyperCodec commented 4 months ago

While the most widely-used activation functions are predefined, it'd be better to have some sort of registry so that the serde deserialization works with custom activations.

It would also be good to note that there should be a separate flag or something for those activation functions which do not want to be randomly mutated to/fro.

HyperCodec commented 4 months ago

hmm this seems impractical to implement. delaying.

HyperCodec commented 3 months ago

Might implement this using a trait or something and then just boxing it. The current Arc<dyn Fn> model could be very easily replaced by Arc<dyn Activation> and then blanket impl on Fn for some default trait stuff.