-
Notifications
You must be signed in to change notification settings - Fork 48
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
Question: does this work with TF Keras? #17
Comments
Hi @Raukk , Thanks for your report. I haven't tested it with TF.Keras - but from the error you pointed out with I don't think the plots make so much sense for CNNs... the idea was to demonstrate boundaries for binary classification problems. But if you use CNNs, even if you are trying to distinguish between cats and dogs, for instance, there is not a "boundary" that separates the samples from each other. Well, there actually is, but it lives in the highly dimensional space of the total number of pixels of each image. |
I tried it again, with that version. The MeanMetricWrapper error is only if I use the TF.Keras version. It's Running in a Google Colab notebook using Python 3. Quick clarification: From my understanding that CNNs internal mechanics are essentially a tiny Dense Network that is feed each window and then all the outputs get combined. I was assuming that the Weights, and Activations, and such were initialized similarly and could be displayed similarly. It's probably just a misunderstanding on my part.
|
@Raukk thanks for the info |
Glad I could help Identify this. I generally set the Activation as a parameter as well, but I grabbed a Google Example to start from, and they did it that way so I left it. I'll let you know if I see anything else as I experiment. |
I'm assuming that it doesn't work with tf.keras yet (or there are different bugs).
Is that correct or did I just do something stupid?
I ask this question because when I tried it with a simple model from a example I got some odd errors.
PS. Thank you; your article was really great, and I really like the visualizations, they are very helpful. Random question, are all the things you pointed out the same in Convolution layers as in your Dense examples, or do the visuals differ?
PSS. One thing I have trouble with is figuring out is which shapes/differences are problems and which are just harmless variations. If you had a cheat sheet explaining which things to look out for in each of the 4 graphs that would be great.
Note: This is not an bug/error report. I just thought I should provide more details.
With the simple model I got odd errors like this;
Then, I changed the tf.keras to just Keras and it worked
(except the OOM exception on the GPU; ran in Google Colab).
Here is the whole Workbook: https://gist.github.com/Raukk/2b03bd8447433b83f862c7e7c437ec46
The model code (using tf.keras) is pasted below if you want to look into it.
The text was updated successfully, but these errors were encountered: