Skip to content

alternate the activation function #5

@minhdc

Description

@minhdc

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions