daily pastebin goal
36%
SHARE
TWEET

Untitled

a guest May 16th, 2018 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. model = Sequential()
  2. model.add(Dense(5, activation='sigmoid', input_shape=(10,)))
  3. model.add(Dense(5, activation='sigmoid'))
  4. model.add(Dense(5, activation='sigmoid'))
  5.    
  6. Dense[outDims_, "activation" -> act_] :=
  7.  Sequence[LinearLayer[outDims],
  8.   Switch[act, "tanh", ElementwiseLayer[Tanh], "relu",
  9.    ElementwiseLayer[Ramp], "sigmoid",
  10.    ElementwiseLayer[LogisticSigmoid]]]
  11.  
  12. NetChain[{Dense[5, "activation" -> "sigmoid"],
  13.           Dense[5, "activation" -> "sigmoid"],
  14.           Dense[5, "activation" -> "sigmoid"]}, "Input" -> 10]
RAW Paste Data
Top