Error in keras - name 'Dense' is not defined
<p>I'm new to Deep Neural Network libraries in python. I've installed Theano &amp; keras in my windows system by following these steps(I already had anaconda):</p>

<p>Install TDM GCC x64.</p>

<p>Run the below code from command prompt</p>

<pre><code>conda update conda
conda update --all
conda install mingw libpython
pip install git+git://github.com/Theano/Theano.git
pip install git+git://github.com/fchollet/keras.git
</code></pre>

<p>When I'm running the following code in Ipython, </p>

<pre><code>import numpy as np
import keras.models
from keras.models import Sequential
model = Sequential()
model.add(Dense(32, input_shape=(784,)))
model.add(Activation('relu'))
</code></pre>

<p>it is showing the following error:</p>

<hr>

<p>NameError</p>

<p>Traceback (most recent call last)</p>

<p>----> 1 model.add(Dense(32, input_shape=(784,)))</p>

<p>NameError: name 'Dense' is not defined</p>

<p><a href="http://i.stack.imgur.com/q9ZMp.png" rel="noreferrer">Here</a> is the error message screenshot.</p>

<p>How come sequential was imported successfully and 'Dense' was not defined?</p>