title: ANN model for multiclass classification
body: <p>I don't know what the problem is and why I'm getting this error:</p>
  <pre class="lang-py prettyprint-override"><code>ValueError: in user code:
  ValueError: Shapes (None, 1) and (None, 6) are incompatible
  </code></pre>
  <p>Can anyone please help me with this code?</p>
  <pre class="lang-py prettyprint-override"><code>import pandas as pd
  import numpy as np
  import matplotlib.pyplot as plt
  import seaborn as sns
  import tensorflow as tf
  from tensorflow.keras.models import Sequential
  from tensorflow.keras.layers import Dense, Activation,Dropout
  from sklearn.preprocessing import MinMaxScaler
  %matplotlib inline
  
  df = pd.read_csv('test.csv')
  dft = pd.read_csv('train.csv')
  
  X_train = df.drop('label',axis=1).values
  y_train = df['label'].values
  
  X_test = dft.drop('label',axis=1).values
  y_test = dft['label'].values
  
  scaler = MinMaxScaler()
  scaler.fit(X_train)
  X_train = scaler.transform(X_train)
  X_test = scaler.transform(X_test)
  
  model = Sequential()
  model.add(Dense(units=30, activation='relu'))
  model.add(Dense(units=15, activation='relu'))
  model.add(Dense(6, activation='softmax'))
  
  model.compile(optimizer='rmsprop', loss='categorical_crossentropy', metrics=['accuracy'])
  model.fit(x=X_train, y=y_train, epochs=15, batch_size=10, validation_data=(X_test, y_test))
  </code></pre>