Demo entry 6644815

asdf

   

Submitted by anonymous on Oct 07, 2017 at 04:35
Language: Python 3. Code size: 360 Bytes.

model = Sequential()
model.add(Dense(10, input_shape=(28*28,), kernel_initializer='he_normal', activation='tanh'))
model.add(Dense(10, activation='softmax'))
model.compile(optimizer='sgd', loss='categorical_crossentropy', metrics=['accuracy'])
# Train Model
history = model.fit(x=xt, y=yt, validation_data= (xv,yv), epochs=256, batch_size=1024, verbose=0)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).