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

Keras Layer compatibility #3

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

Conversation

Kevin-McIsaac
Copy link

Made CWT class compatible with Keras Layers

Use upgrade script then remediated code using v1.compatibility
make pip installable as a module
make pip installable
Import CWT package from git hub and use tensorflow 2.0 calling methods
To simplify and speed up calculations, include new option to output as 3 channels of Magnitude
Make compatible with Keras Layer so it can be used in a  Keras model, e.g., 

    tf.keras.Sequential([ComplexMorletCWT(lower_freq = 20, upper_freq = 500, n_scales = 64, stride=64, 
                                            wavelet_width = 16, fs=2042, output='Magnitude'),
                             efn.EfficientNetB4(include_top=False,weights='imagenet'),
                             L.GlobalAveragePooling2D(),
                             L.Dense(32,activation='relu'),
                             L.Dense(1, activation='sigmoid')])
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

Successfully merging this pull request may close these issues.

None yet

1 participant