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

Add new activation functions #56

Open
mehrdad-dev opened this issue Jun 8, 2022 · 2 comments
Open

Add new activation functions #56

mehrdad-dev opened this issue Jun 8, 2022 · 2 comments

Comments

@mehrdad-dev
Copy link

mehrdad-dev commented Jun 8, 2022

How can I add an activation function like tanh for the "output_activation" parameter?
@yingkaisha

Thanks!

@akaiml
Copy link

akaiml commented Jul 9, 2022

Hi @mehrdad-dev, Did you get to know how to add tanh as an output activation function?

@mehrdad-dev
Copy link
Author

mehrdad-dev commented Jul 10, 2022

you should change the code directly!
like this, and then pass your activation function

if activation:
        if activation == 'Sigmoid':
            X = Activation('sigmoid', name='{}_activation'.format(name))(X)            
        else:
            X = activation(X)

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

2 participants