Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Activation function fixes #40

Merged
merged 2 commits into from
Jun 23, 2019

Conversation

naigonakoii
Copy link
Contributor

This fixes an issue that trying to resume evolution from an xml will fail if a custom activation function was used.

Naigon and others added 2 commits June 7, 2019 22:04
…m an XML run.

ActivationFunctionRegistry.cs
  - Create an internal dictionary that maps activation function id to the instance.
  - Defaults to the known ones of the system, using the private __Instance variables.

NetworkXmlIO.cs
  - Remove switch case from GetActivationFunction, instead use the internal dictionary from ActivationFunctionRegistry. This allows extending the functions by the end user.
…nd user from needing to make a separate call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants