-
Notifications
You must be signed in to change notification settings - Fork 76
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/TF compatibility issues #3
Comments
I've gotten this error also (Keras (1.1.2),Theano (0.8.2), tensorflow (0.10.0),numpy (1.11.2)). Tried both the Theano and Tensorflow model.fit calls.
|
Thanks for opening an issue. TF / Theano / Keras keep changing, and I don't have the resources to keep the repo up to date - it's mostly for demonstration purposes. The main code in the repo has been implemented into Keras, TensorFlow, and Torch - please have a look at these. |
Will do! Thank you for the feedback, it's more helpful than you think. I have a follow up question related to this and would appreciate being pointed in the right direction: What is the simplest way to measure the prediction uncertainty using an RNN and dropout? For the IMDB sentiment task, for example, I imagine making K number of forward passes in Keras, with the Dropout layer being active in a different way each time, and getting a large set of alternative predictions of the sentiment around the main prediction without dropout (then I would look at the quantiles of those alternate predictions, similar to bootstrapping). Is there a switch in Keras, Tensorflow or Torch to do the foreword passes with dropout engaged properly in each layer? And, are we supposed to also sample from the input data when measuring the uncertainty? |
I'm also curious if mxnet people are in the loop. |
yes, you want to use multiple forward passes, but you want to look at the sample mean rather than the output of the model with no dropout.
In Keras you can use
no |
thanks! I mentioned your implementation here: apache/mxnet#3930 |
Re-opening for people to see the answers above |
Hi Yarin,
Could I ask which version of TF/keras you used to run this? I am having problems running it with tensorflow=0.11.0 and keras 1.1.2. I see the following error
Exception: Error when checking model target: the list of Numpy arrays that you are passing to your model is not the size the model expected. Expected to see 1 arrays but instead got the following list of 10496 arrays: [-0.64800038508682045, -0.64800038508682045, 1.1463771479409459, 1.1463771479409459, 1.1463771479409459, -0.48487515481156884, -0.48487515481156884, 0.058875612772602504, 0.058875612772602504, -0.4848...
Cheers,
Jack
The text was updated successfully, but these errors were encountered: