SHARE
TWEET

Untitled

a guest Oct 16th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fc_net = NeuralNetwork()
  2.  
  3. (fc_net
  4.   .add(FCLayer(100))
  5.   .add(ActivationLayer(tanh, tanh_prime))
  6.   .add(FCLayer(50))
  7.   .add(ActivationLayer(tanh, tanh_prime))
  8.   .add(FCLayer(10))
  9.   .add(ActivationLayer(tanh, tanh_prime))
  10.   .add(ActivationLayer(softmax, softmax_prime))
  11.   .use(mse, mse_prime)
  12.   .fit(x_train[0:1000], y_train[0:1000], epochs=30, learning_rate=0.1)
  13. )
  14.  
  15. preds = net.predict(x_test[:100])
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