title: Artificial Neural Network - Compiling error
body: <p>I am learning Deep Learning myself and am facing issues while performing ANN. Here's what I am doing:</p>
  
  <p>Initializing the ANN (I've split the dataset beforehand):</p>
  
  <pre><code>classifier = Sequential()
  </code></pre>
  
  <p>Adding the input layer and the first hidden layer:</p>
  
  <pre><code>classifier.add(Dense(input_dim = 11, kernel_initializer = 'uniform', activation = 'relu', units = 6))
  </code></pre>
  
  <p>Adding the second hidden layer:</p>
  
  <pre><code>classifier.add(Dense(units = 6, kernel_initializer = 'uniform', activation = 'relu'))
  </code></pre>
  
  <p>Adding the output layer:</p>
  
  <pre><code>classifier.add(Dense(units = 1, kernel_initializer = 'uniform', activation = 'sigmoid'))
  </code></pre>
  
  <p>Compiling the ANN by employing Stochastic gradient descent:</p>
  
  <pre><code>classifier.compile(optimizer = 'adam', loss = 'binary_crossentropy', metrics = ['accuracy'])
  </code></pre>
  
  <p>After this, when I select and run the last command, I get an error that reads:</p>
  
  <pre><code>TypeError: sigmoid_cross_entropy_with_logits() got an unexpected keyword argument 'labels'
  </code></pre>
  
  <p>I noticed when I use <code>loss = mean_squared_error</code>, it compiles fine. Can you tell me what's going on?</p>
  
  <p><code>Sypder</code> and <code>Python</code> latest as on the day I am posting this. 
  <code>Windows 10</code>.
  Thanos, TensorFlow and Keras latest</p>
  
  <p>Thanks in advance.</p>