Guest User

Untitled

a guest
Dec 15th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. x = Convolution2D(32, (3, 3), padding ='same', kernel_initializer='he_normal')(model_input)
  2. x = Activation('relu')(x)
  3. x = MaxPooling2D(pool_size=(2, 2))(x)
  4. x = Convolution2D(32, (3, 3), kernel_initializer='he_normal')(x)
  5. x = Activation('relu')(x)
  6. x = MaxPooling2D(pool_size=(2, 2))(x)
  7. x = Dropout(0.25)(x)
  8. x = Flatten()(x)
  9. conv_out = (Dense(512, activation='relu', kernel_constraint=maxnorm(3)))(x)
  10.  
  11. lst = [x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13]
  12.  
  13. sgd = SGD(lr=lrate, momentum=0.9, decay=lrate/nb_epoch, nesterov=False)
  14. model.compile(loss='categorical_crossentropy', optimizer=sgd, metrics=['accuracy'])
Add Comment
Please, Sign In to add comment