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

Custom Activation function #20

Open
zszazi opened this issue Dec 2, 2019 · 0 comments
Open

Custom Activation function #20

zszazi opened this issue Dec 2, 2019 · 0 comments

Comments

@zszazi
Copy link

zszazi commented Dec 2, 2019

Hey
I am having this custom activation function which is not listed in the replay.ACTIVATIONS nor in the keras package
Although I am able to Train the Keras model with custom activation function, How do I generate the plot for custom activation function in deepreplay?

on running the below cell

replay = Replay(replay_filename='spambase_dataset.h5', group_name=group_name)

fs = replay.build_feature_space(ax_fs, layer_name='hidden', scale_fixed=False)
ph = replay.build_probability_histogram(ax_ph_neg, ax_ph_pos)
lh = replay.build_loss_histogram(ax_lh)
lm = replay.build_loss_and_metric(ax_lm, 'acc')


I get the following error

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-31-f06018e9e1b6> in <module>()
      1 
----> 2 replay = Replay(replay_filename='spambase_dataset.h5', group_name=group_name)
      3 
      4 fs = replay.build_feature_space(ax_fs, layer_name='hidden', scale_fixed=False)
      5 ph = replay.build_probability_histogram(ax_ph_neg, ax_ph_pos)

15 frames
/usr/local/lib/python3.6/dist-packages/keras/utils/generic_utils.py in deserialize_keras_object(identifier, module_objects, custom_objects, printable_module_name)
    165             if fn is None:
    166                 raise ValueError('Unknown ' + printable_module_name +
--> 167                                  ':' + function_name)
    168         return fn
    169     else:

ValueError: Unknown activation function:swish

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