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

alternate the activation function #5

Open
minhdc opened this issue Jul 12, 2021 · 0 comments
Open

alternate the activation function #5

minhdc opened this issue Jul 12, 2021 · 0 comments

Comments

@minhdc
Copy link

minhdc commented Jul 12, 2021

I am customizing my hopfield network based on your implementation, are there any possibilities to alternate your default activation function of this Hopfield network ?

I found that you wrote your activation function in library.py which is:

def sign_0(array):  # x=0 -> sign_0(x) = 1
    return np.where(array >= -1e-15, 1, -1)  # machine precision: null festhalten

I would like to change it into arctan(). Thanks!

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

No branches or pull requests

1 participant