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 @@ + + + + + + + + +Week 42 Solving differential equations and Convolutional (CNN) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +

 

 

 

+ + + + +

Compile and train the model

+ +

+ + +

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))
+
+

+

+ +

+ + +
+ + + + + + + +
+ +
+ + + + + + diff --git a/doc/pub/week42/html/._week42-bs090.html b/doc/pub/week42/html/._week42-bs090.html new file mode 100644 index 000000000..9d4668ce0 --- /dev/null +++ b/doc/pub/week42/html/._week42-bs090.html @@ -0,0 +1,463 @@ + + + + + + + + +Week 42 Solving differential equations and Convolutional (CNN) + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +

 

 

 

+ + + + +

Finally, evaluate the model

+ +

+ + +

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)
+
+

+ +

+ +

+ + +
+ + + + + + + +
+ +
+ + + + + +