Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Adding Keras-Contrib functions using string alias #564

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

sleepingcat4
Copy link

- What I did
I have added the method on how to add functions as activations and others from keras-contrib library using string alias

- How I did it
I used get_custom_objects() function from keras.utils.generic_utils

- How you can verify it
I added an example snippet code to teach how string alias method can be used to add functions from keras-contrib library in the README.md file. I don't think that requires to write a test as it only shows how to add string alias not creating or compiling an entire model.


This pull request fixes #issue_number_here

TAWSIF AHMED added 3 commits October 21, 2022 11:05
Updated with an example on how to use keras-contrib activation functions in subclass method model architecture
@google-cla
Copy link

google-cla bot commented Oct 21, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@sleepingcat4 sleepingcat4 marked this pull request as draft October 21, 2022 05:47
@sleepingcat4 sleepingcat4 reopened this Oct 21, 2022
@sleepingcat4 sleepingcat4 marked this pull request as ready for review October 21, 2022 05:49
@sleepingcat4 sleepingcat4 reopened this Oct 21, 2022
In the recent version of Keras-contrib library you have to use name of the activation function in the calling itself to import it., That means now you have to write
"keras_contrib.layers.advanced_activations.[function name, ex: pelu] import PELU
@sleepingcat4
Copy link
Author

I have updated advanced functions importing method in the README file to comply with the latest version of Keras-Contrib

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant