title: Why am I getting "Supported target types are: ('binary', 'multiclass'). Got 'continuous' instead." error?
body: <p>I am writing this code and keep getting the Supported target types are: ('binary', 'multiclass'). Got 'continuous' instead. error no matter what I try. Do you see the problem within my code?</p>
  
  <pre><code>df = pd.read_csv('drain.csv')
  values = df.values
  seed = 7
  numpy.random.seed(seed)
  X = df.iloc[:,:2]
  Y = df.iloc[:,2:]
  def create_model():
  # create model
      model = Sequential()
      model.add(Dense(12, input_dim=8, activation='relu'))
      model.add(Dense(8, activation='relu'))
      model.add(Dense(1, activation='sigmoid'))
      # Compile model
      model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])
      return model
  model = KerasClassifier(build_fn=create_model, epochs=10, batch_size=10, verbose=0)
  # evaluate using 10-fold cross validation
  kfold = StratifiedKFold(n_splits=10, shuffle=True, random_state=seed)
  results = cross_val_score(model, X, Y, cv=kfold)
  print(results.mean())
  </code></pre>