Code Monkey home page Code Monkey logo

Comments (7)

alexander-rakhlin avatar alexander-rakhlin commented on August 21, 2024

Hi. Thanks for the interest. I will check it later. So far please try to temporally change in ~/.keras/keras.json located in your user directory:

"image_dim_ordering": "tf",
to
"image_dim_ordering": "th",

and let me know whether it helps

or more likely something is wrong with embedding_weights you get from your trained word2vec. I've uploaded pretrained word2vec model, try with it.
use default:

embedding_dim = 20          
min_word_count = 1  # Minimum word count                        
context = 10        # Context window size  

from cnn-for-sentence-classification-in-keras.

cristhianrivera avatar cristhianrivera commented on August 21, 2024

Thank you for your answer.
Same error :

ValueError: Error when checking model input: expected dropout_input_2 to have 3 dimensions, but got array with shape (10662L, 56L).

I'll then try with Tensor Flow backend and tell you my comments.

I also tried withthe updated pretrained word2vec and same error.

I'll continue working on this issue.

from cnn-for-sentence-classification-in-keras.

cristhianrivera avatar cristhianrivera commented on August 21, 2024

Hello again, after a lot of problems with TensorFlow, everything is working... although I'd like to know if there's a chance to use Theano instead of TensorFlow.

from cnn-for-sentence-classification-in-keras.

alexander-rakhlin avatar alexander-rakhlin commented on August 21, 2024

It was originally for Theano. I'll let you know when I have a moment to run it with recent Keras. Version conflict is another possible reason

from cnn-for-sentence-classification-in-keras.

cristhianrivera avatar cristhianrivera commented on August 21, 2024

Thank you for your time. Could you please tell me, which version of Theano and Keras are you using?

from cnn-for-sentence-classification-in-keras.

alexander-rakhlin avatar alexander-rakhlin commented on August 21, 2024

I have verified it, and it works as intended. My versions are Theano v0.8.2, Keras v1.2.0 and it's not too much behind the current 1.2.2. Also, added minor changes, they don't affect overall behavior.

from cnn-for-sentence-classification-in-keras.

cristhianrivera avatar cristhianrivera commented on August 21, 2024

After changes on my configuration files and your updates, it is running well on Theano.
Thank you for your time.

from cnn-for-sentence-classification-in-keras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.