Guest User

Untitled

a guest
Aug 21st, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. KeyError: '[1335 1083 1263 698 751 537 652 740 432 325] not in index'
  2.  
  3. #create model
  4. model = Sequential()
  5. model.add(Dense(25, input_dim=20, init='uniform', activation='relu'))
  6. model.add(Dense(20, init='uniform', activation='relu'))
  7. model.add(Dense(1, init='uniform', activation='sigmoid'))
  8.  
  9. #compile model
  10. model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])
  11.  
  12. #Fit the model
  13. model.fit(X, Y, epochs=120, batch_size=10)
Add Comment
Please, Sign In to add comment