Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- KeyError: '[1335 1083 1263 698 751 537 652 740 432 325] not in index'
- #create model
- model = Sequential()
- model.add(Dense(25, input_dim=20, init='uniform', activation='relu'))
- model.add(Dense(20, init='uniform', activation='relu'))
- model.add(Dense(1, init='uniform', activation='sigmoid'))
- #compile model
- model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy'])
- #Fit the model
- model.fit(X, Y, epochs=120, batch_size=10)
Add Comment
Please, Sign In to add comment