diff --git a/doc/pub/week42/html/._week42-bs089.html b/doc/pub/week42/html/._week42-bs089.html new file mode 100644 index 000000000..0a7f5776f --- /dev/null +++ b/doc/pub/week42/html/._week42-bs089.html @@ -0,0 +1,460 @@ + + +
+ + + + + +
+ + + + +
+ + +
model.compile(optimizer='adam',
+ loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True),
+ metrics=['accuracy'])
+
+history = model.fit(train_images, train_labels, epochs=10,
+ validation_data=(test_images, test_labels))
++
+ +
+ + +
+ + + + +
+ + +
plt.plot(history.history['accuracy'], label='accuracy')
+plt.plot(history.history['val_accuracy'], label = 'val_accuracy')
+plt.xlabel('Epoch')
+plt.ylabel('Accuracy')
+plt.ylim([0.5, 1])
+plt.legend(loc='lower right')
+
+test_loss, test_acc = model.evaluate(test_images, test_labels, verbose=2)
+
+print(test_acc)
++ +
+ +
+ + +