SHARE
TWEET

Untitled

a guest Mar 19th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from keras.wrappers.scikit_learn import KerasClassifier
  2.  
  3. # notice how we go back to stating hyperparameters at init time
  4. # this is the "scikit-learn" way
  5. model = KerasClassifier(
  6.     twoLayerFeedForward, epochs=100, batch_size=500, verbose=0
  7. )
  8.  
  9. # now fit and predict
  10. model.fit(X, y)
  11. y_pred = model.predict(X)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top