diff --git a/generate_X_y.ipynb b/generate_X_y.ipynb index 1ac06ba..f4f3323 100644 --- a/generate_X_y.ipynb +++ b/generate_X_y.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": 2, + "execution_count": 14, "metadata": {}, "outputs": [], "source": [ @@ -19,28 +19,31 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 15, "metadata": {}, "outputs": [], "source": [ "include_previous_frame = False\n", "ignore_zero_output = False\n", "frames_ahead = 0\n", - "previous_outputs = 5" + "previous_outputs = 0" ] }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 16, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "['./gameplay_logs/1553422630.470564', './gameplay_logs/1553422654.9455032']" + "['./gameplay_logs/1553448946.270552',\n", + " './gameplay_logs/1553448965.3654816',\n", + " './gameplay_logs/1553449015.2570503',\n", + " './gameplay_logs/1553449071.8743048']" ] }, - "execution_count": 4, + "execution_count": 16, "metadata": {}, "output_type": "execute_result" } @@ -53,7 +56,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 17, "metadata": { "scrolled": true }, @@ -62,10 +65,14 @@ "name": "stdout", "output_type": "stream", "text": [ - "processing folder ./gameplay_logs/1553422630.470564 ...\n", - "Done with folder ./gameplay_logs/1553422630.470564\n", - "processing folder ./gameplay_logs/1553422654.9455032 ...\n", - "Done with folder ./gameplay_logs/1553422654.9455032\n", + "processing folder ./gameplay_logs/1553448946.270552 ...\n", + "Done with folder ./gameplay_logs/1553448946.270552\n", + "processing folder ./gameplay_logs/1553448965.3654816 ...\n", + "Done with folder ./gameplay_logs/1553448965.3654816\n", + "processing folder ./gameplay_logs/1553449015.2570503 ...\n", + "Done with folder ./gameplay_logs/1553449015.2570503\n", + "processing folder ./gameplay_logs/1553449071.8743048 ...\n", + "Done with folder ./gameplay_logs/1553449071.8743048\n", "Done generating!\n" ] } @@ -86,14 +93,11 @@ " X = None\n", " y = None\n", "\n", - "# i=-1\n", " limit = len(game_info['images'])-45 #Skip last 45 frames (after loss)\n", " previous_features = None\n", - "# for image_name in game_info['images']:\n", " keys = list(game_info['images'].keys())\n", " for i in range(len(keys)):\n", " image_name = keys[i]\n", - "# prev_image_name = keys[i-1] if i > 0 else None\n", " \n", " if i>=limit:\n", " break;\n", @@ -127,11 +131,6 @@ " while j < previous_outputs and (i-j-1)>=0:\n", " prev_x_drags[j] = game_info[\"images\"][keys[(i-j-1)]][\"prev_drag_x\"]\n", " j+=1\n", - "# game_info[\"images\"][image_name][\"prev_drag_x\"]\n", - "# if prev_image_name is None:\n", - "# prev_x_drag = np.atleast_2d(0)\n", - "# else:\n", - "# prev_x_drag = np.atleast_2d(game_info[\"images\"][prev_image_name][\"prev_drag_x\"])\n", " to_add = np.append(to_add, np.atleast_2d(prev_x_drags), axis=1)\n", " \n", " if X is None:\n", @@ -152,37 +151,38 @@ " np.savez(f, X=X, y=y)\n", " \n", " print(\"Done with folder \"+folder)\n", - "# break\n", " \n", "print(\"Done generating!\")" ] }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 18, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "[0 0 0 0 0] [0 0 0 0 0]\n", - "[[0]\n", - " [0]\n", - " [0]\n", - " [0]\n", - " [0]]\n" + "[1 0 0 0 0] [1 0 0 0 0]\n", + "[[ 8]\n", + " [10]\n", + " [ 6]\n", + " [ 3]\n", + " [ 2]]\n", + "(1285, 1278)\n" ] } ], "source": [ "print(X[5,-5:], X[6,-5:])\n", - "print(y[0:5])" + "print(y[0:5])\n", + "print(X.shape)" ] }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 19, "metadata": {}, "outputs": [ { @@ -218,16 +218,16 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 20, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "(1570, 1283)" + "(3677, 1278)" ] }, - "execution_count": 8, + "execution_count": 20, "metadata": {}, "output_type": "execute_result" } @@ -238,16 +238,16 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 21, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "(1570, 1)" + "(3677, 1)" ] }, - "execution_count": 9, + "execution_count": 21, "metadata": {}, "output_type": "execute_result" } diff --git a/run.py b/run.py index 6ad170b..830ede8 100644 --- a/run.py +++ b/run.py @@ -1,3 +1,108 @@ -from control import jumpy_control +#!/usr/bin/env python +# encoding: utf-8 -jumpy_control.test_control() +from control.jumpy_control import Jumpy, JumpyHelper +import cv2 +from pynput import mouse +from pynput.mouse import Button +from threading import Thread +import time +import json +import os +import numpy as np +from keras.models import Sequential +import queue + + +def main(): + folder = "./gameplay_logs" + with open(f"{folder}/nn_model_config.json", "r") as f: + config = json.load(f) + + classifier = Sequential.from_config(config) + classifier.load_weights(f"{folder}/nn_weights.hdf5") + print(classifier.input_shape[1]) + j = Jumpy() + recording, draw_positions, draw_prediction = 0, 1, 1 + previous_features = None + previous_outputs = 0 + i = 0 + prev_x_drags = [0] * previous_outputs + q = queue.Queue() + + while 1: + img = j.next_rgb() + helper = JumpyHelper(img) + if helper.is_playing_screen(): + + if draw_positions: + positions = helper.get_classified_positions() + for (x, y, type) in positions: + color = (255, 255, 255) + if type == "ball": + color = (255, 0, 0) + if type == "land": + color = (0, 255, 0) + if type == "dangerous": + color = (0, 0, 255) + cv2.circle(img, (x, y), 4, color, 2) + + features = np.atleast_2d(helper.get_features()) + to_predict = features + print("features shape", features.shape) + if previous_outputs and \ + classifier.input_shape[1] == to_predict.shape[1] + previous_outputs: + to_predict = np.append( + to_predict, np.atleast_2d(prev_x_drags), axis=1) + if classifier.input_shape[1] > to_predict.shape[1]: + if previous_features is None: + previous_features = np.zeros_like(features) + to_predict = np.append(features, previous_features, axis=1) + y = classifier.predict(to_predict) + y = round(y[0, 0]) + print(y) + + if draw_prediction: + img = cv2.putText(img, "{}".format(y), + (50, img.shape[0]-60), + cv2.FONT_HERSHEY_DUPLEX, 0.7, + (0, 0, 0), 2, cv2.LINE_AA) + + j.drag_distance(y) + previous_features = features + + if previous_outputs: + del prev_x_drags[-1] + prev_x_drags = [y] + prev_x_drags + + if recording: + q.put(img) + + else: + previous_features = None + if previous_outputs: + prev_x_drags = [0] * previous_outputs + while not q.empty(): + i += 1 + item = q.get() + cv2.imwrite("images/gameplay_{}.png".format(i), item) + + if helper.is_continue_screen(): + j.click_no_thanks_button() + elif helper.is_main_menu_screen(): + j.click_play_single_button() + elif helper.is_screboard_screen(): + j.click_back_button() + + cv2.imshow('jumpy', img) + k = cv2.waitKey(10) & 0xFF + if k == ord('q'): + break + if k == ord('p'): + x = helper.get_features() + print(x) + + +################### +if __name__ == "__main__": + main() \ No newline at end of file diff --git a/train.ipynb b/train.ipynb index e72796c..6cc7927 100644 --- a/train.ipynb +++ b/train.ipynb @@ -21,7 +21,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -35,7 +35,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ @@ -45,15 +45,15 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - "(1570, 1283)\n", - "(1570, 1)\n" + "(3677, 1278)\n", + "(3677, 1)\n" ] } ], @@ -69,7 +69,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 5, "metadata": { "scrolled": true }, @@ -89,7 +89,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 6, "metadata": { "scrolled": true }, @@ -99,135 +99,135 @@ "output_type": "stream", "text": [ "Epoch 1/250\n", - "1570/1570 [==============================] - 2s 2ms/step - loss: 12.0788 - acc: 0.3726 - absolute_diff: 1.9255\n", + "3677/3677 [==============================] - 1s 290us/step - loss: 13.0708 - acc: 0.5031 - absolute_diff: 1.8039\n", "Epoch 2/250\n", - "1570/1570 [==============================] - 0s 185us/step - loss: 7.8496 - acc: 0.2497 - absolute_diff: 1.7592\n", + "3677/3677 [==============================] - 1s 139us/step - loss: 11.7036 - acc: 0.3019 - absolute_diff: 1.9301\n", "Epoch 3/250\n", - "1570/1570 [==============================] - 0s 190us/step - loss: 6.7686 - acc: 0.2962 - absolute_diff: 1.5752\n", + "3677/3677 [==============================] - 1s 161us/step - loss: 10.6397 - acc: 0.2752 - absolute_diff: 1.8885\n", "Epoch 4/250\n", - "1570/1570 [==============================] - 0s 177us/step - loss: 5.9822 - acc: 0.3045 - absolute_diff: 1.5325\n", + "3677/3677 [==============================] - 1s 171us/step - loss: 9.3923 - acc: 0.2766 - absolute_diff: 1.8126\n", "Epoch 5/250\n", - "1570/1570 [==============================] - 0s 189us/step - loss: 5.3278 - acc: 0.3045 - absolute_diff: 1.4707\n", + "3677/3677 [==============================] - 1s 173us/step - loss: 8.0262 - acc: 0.2918 - absolute_diff: 1.6954\n", "Epoch 6/250\n", - "1570/1570 [==============================] - 0s 204us/step - loss: 4.8531 - acc: 0.2994 - absolute_diff: 1.4357\n", + "3677/3677 [==============================] - 1s 150us/step - loss: 6.6559 - acc: 0.3141 - absolute_diff: 1.5458\n", "Epoch 7/250\n", - "1570/1570 [==============================] - 0s 173us/step - loss: 4.2733 - acc: 0.2809 - absolute_diff: 1.3924\n", + "3677/3677 [==============================] - 0s 134us/step - loss: 5.6241 - acc: 0.3247 - absolute_diff: 1.4419\n", "Epoch 8/250\n", - "1570/1570 [==============================] - 0s 177us/step - loss: 3.3644 - acc: 0.3369 - absolute_diff: 1.2127\n", + "3677/3677 [==============================] - 1s 154us/step - loss: 4.3074 - acc: 0.3495 - absolute_diff: 1.2823\n", "Epoch 9/250\n", - "1570/1570 [==============================] - 0s 194us/step - loss: 3.1220 - acc: 0.3089 - absolute_diff: 1.2102\n", + "3677/3677 [==============================] - 0s 133us/step - loss: 3.6360 - acc: 0.3704 - absolute_diff: 1.1656\n", "Epoch 10/250\n", - "1570/1570 [==============================] - 0s 184us/step - loss: 2.8356 - acc: 0.3178 - absolute_diff: 1.1650\n", + "3677/3677 [==============================] - 1s 144us/step - loss: 3.0803 - acc: 0.3816 - absolute_diff: 1.1004\n", "Epoch 11/250\n", - "1570/1570 [==============================] - 0s 224us/step - loss: 2.0150 - acc: 0.3694 - absolute_diff: 0.9828\n", + "3677/3677 [==============================] - 1s 136us/step - loss: 2.6935 - acc: 0.4088 - absolute_diff: 1.0095\n", "Epoch 12/250\n", - "1570/1570 [==============================] - 0s 187us/step - loss: 1.6295 - acc: 0.4357 - absolute_diff: 0.8408\n", + "3677/3677 [==============================] - 1s 149us/step - loss: 2.2221 - acc: 0.4188 - absolute_diff: 0.9271\n", "Epoch 13/250\n", - "1570/1570 [==============================] - 0s 260us/step - loss: 1.4646 - acc: 0.4280 - absolute_diff: 0.8159\n", + "3677/3677 [==============================] - 1s 157us/step - loss: 1.8178 - acc: 0.4827 - absolute_diff: 0.7895\n", "Epoch 14/250\n", - "1570/1570 [==============================] - 0s 246us/step - loss: 1.1465 - acc: 0.4834 - absolute_diff: 0.6904\n", + "3677/3677 [==============================] - 1s 142us/step - loss: 1.5805 - acc: 0.5113 - absolute_diff: 0.7172\n", "Epoch 15/250\n", - "1570/1570 [==============================] - 0s 250us/step - loss: 0.9526 - acc: 0.5217 - absolute_diff: 0.6185\n", + "3677/3677 [==============================] - 1s 150us/step - loss: 1.5484 - acc: 0.4890 - absolute_diff: 0.7389\n", "Epoch 16/250\n", - "1570/1570 [==============================] - 0s 201us/step - loss: 0.9134 - acc: 0.5159 - absolute_diff: 0.6229\n", + "3677/3677 [==============================] - 1s 169us/step - loss: 1.4246 - acc: 0.5273 - absolute_diff: 0.6693\n", "Epoch 17/250\n", - "1570/1570 [==============================] - 0s 191us/step - loss: 0.8620 - acc: 0.5382 - absolute_diff: 0.5828\n", + "3677/3677 [==============================] - 1s 181us/step - loss: 1.4592 - acc: 0.5186 - absolute_diff: 0.6998\n", "Epoch 18/250\n", - "1570/1570 [==============================] - 0s 211us/step - loss: 0.7431 - acc: 0.5599 - absolute_diff: 0.5414\n", + "3677/3677 [==============================] - 1s 145us/step - loss: 1.2567 - acc: 0.5640 - absolute_diff: 0.6125\n", "Epoch 19/250\n", - "1570/1570 [==============================] - 0s 196us/step - loss: 0.6173 - acc: 0.6185 - absolute_diff: 0.4631\n", + "3677/3677 [==============================] - 1s 142us/step - loss: 1.1254 - acc: 0.5910 - absolute_diff: 0.5524\n", "Epoch 20/250\n", - "1570/1570 [==============================] - 0s 205us/step - loss: 0.5589 - acc: 0.6637 - absolute_diff: 0.4089\n", + "3677/3677 [==============================] - 1s 153us/step - loss: 1.1197 - acc: 0.5883 - absolute_diff: 0.5638\n", "Epoch 21/250\n", - "1570/1570 [==============================] - 0s 198us/step - loss: 0.5168 - acc: 0.6675 - absolute_diff: 0.3975\n", + "3677/3677 [==============================] - 1s 209us/step - loss: 1.1540 - acc: 0.5978 - absolute_diff: 0.5589\n", "Epoch 22/250\n", - "1570/1570 [==============================] - 0s 221us/step - loss: 0.6884 - acc: 0.5261 - absolute_diff: 0.5561\n", + "3677/3677 [==============================] - 1s 161us/step - loss: 1.1412 - acc: 0.5684 - absolute_diff: 0.5951\n", "Epoch 23/250\n", - "1570/1570 [==============================] - 0s 185us/step - loss: 0.6535 - acc: 0.5879 - absolute_diff: 0.4975\n", + "3677/3677 [==============================] - 1s 188us/step - loss: 1.2028 - acc: 0.5926 - absolute_diff: 0.5725\n", "Epoch 24/250\n", - "1570/1570 [==============================] - 0s 200us/step - loss: 0.5824 - acc: 0.6357 - absolute_diff: 0.4369\n", + "3677/3677 [==============================] - 1s 209us/step - loss: 0.9716 - acc: 0.6209 - absolute_diff: 0.5034\n", "Epoch 25/250\n", - "1570/1570 [==============================] - 0s 207us/step - loss: 0.4081 - acc: 0.7255 - absolute_diff: 0.3248\n", + "3677/3677 [==============================] - 1s 196us/step - loss: 0.8785 - acc: 0.6609 - absolute_diff: 0.4474\n", "Epoch 26/250\n", - "1570/1570 [==============================] - 0s 198us/step - loss: 0.3694 - acc: 0.7497 - absolute_diff: 0.2924\n", + "3677/3677 [==============================] - 1s 149us/step - loss: 0.8903 - acc: 0.6505 - absolute_diff: 0.4645\n", "Epoch 27/250\n", - "1570/1570 [==============================] - 0s 220us/step - loss: 0.3679 - acc: 0.7707 - absolute_diff: 0.2745\n", + "3677/3677 [==============================] - 1s 175us/step - loss: 0.8205 - acc: 0.6853 - absolute_diff: 0.4139\n", "Epoch 28/250\n", - "1570/1570 [==============================] - 0s 256us/step - loss: 0.3866 - acc: 0.6911 - absolute_diff: 0.3490\n", + "3677/3677 [==============================] - 1s 159us/step - loss: 0.7807 - acc: 0.6889 - absolute_diff: 0.4069\n", "Epoch 29/250\n", - "1570/1570 [==============================] - 0s 273us/step - loss: 0.3515 - acc: 0.7395 - absolute_diff: 0.2994\n", + "3677/3677 [==============================] - 1s 161us/step - loss: 0.8093 - acc: 0.6715 - absolute_diff: 0.4297\n", "Epoch 30/250\n", - "1570/1570 [==============================] - 0s 205us/step - loss: 0.3084 - acc: 0.7720 - absolute_diff: 0.2580\n", + "3677/3677 [==============================] - 1s 162us/step - loss: 0.8478 - acc: 0.6682 - absolute_diff: 0.4408\n", "Epoch 31/250\n", - "1570/1570 [==============================] - 0s 194us/step - loss: 0.2895 - acc: 0.7752 - absolute_diff: 0.2510\n", + "3677/3677 [==============================] - 1s 167us/step - loss: 0.8487 - acc: 0.6783 - absolute_diff: 0.4289\n", "Epoch 32/250\n", - "1570/1570 [==============================] - 0s 234us/step - loss: 0.2854 - acc: 0.7854 - absolute_diff: 0.2439\n", + "3677/3677 [==============================] - 1s 161us/step - loss: 0.7428 - acc: 0.7071 - absolute_diff: 0.3848\n", "Epoch 33/250\n", - "1570/1570 [==============================] - 0s 262us/step - loss: 0.3106 - acc: 0.7650 - absolute_diff: 0.2631\n", + "3677/3677 [==============================] - 1s 171us/step - loss: 0.7783 - acc: 0.7114 - absolute_diff: 0.3884\n", "Epoch 34/250\n", - "1570/1570 [==============================] - 0s 200us/step - loss: 0.2876 - acc: 0.7841 - absolute_diff: 0.2465\n", + "3677/3677 [==============================] - 1s 159us/step - loss: 0.7450 - acc: 0.6976 - absolute_diff: 0.3941\n", "Epoch 35/250\n", - "1570/1570 [==============================] - 0s 233us/step - loss: 0.2709 - acc: 0.7943 - absolute_diff: 0.2318\n", + "3677/3677 [==============================] - 1s 165us/step - loss: 0.7573 - acc: 0.6957 - absolute_diff: 0.3982\n", "Epoch 36/250\n", - "1570/1570 [==============================] - 0s 236us/step - loss: 0.2957 - acc: 0.7662 - absolute_diff: 0.2605\n", + "3677/3677 [==============================] - 1s 156us/step - loss: 0.8691 - acc: 0.6731 - absolute_diff: 0.4403\n", "Epoch 37/250\n", - "1570/1570 [==============================] - 0s 207us/step - loss: 0.3104 - acc: 0.7452 - absolute_diff: 0.2822\n", + "3677/3677 [==============================] - 1s 149us/step - loss: 0.6850 - acc: 0.7098 - absolute_diff: 0.3778\n", "Epoch 38/250\n", - "1570/1570 [==============================] - 0s 252us/step - loss: 0.3106 - acc: 0.7420 - absolute_diff: 0.2879\n", + "3677/3677 [==============================] - 1s 154us/step - loss: 0.7040 - acc: 0.7218 - absolute_diff: 0.3631\n", "Epoch 39/250\n", - "1570/1570 [==============================] - 0s 250us/step - loss: 0.3573 - acc: 0.7127 - absolute_diff: 0.3178\n", + "3677/3677 [==============================] - 1s 147us/step - loss: 0.6880 - acc: 0.7202 - absolute_diff: 0.3628\n", "Epoch 40/250\n", - "1570/1570 [==============================] - 0s 198us/step - loss: 0.2981 - acc: 0.7650 - absolute_diff: 0.2637\n", + "3677/3677 [==============================] - 1s 160us/step - loss: 0.6771 - acc: 0.7422 - absolute_diff: 0.3370\n", "Epoch 41/250\n", - "1570/1570 [==============================] - 0s 201us/step - loss: 0.2475 - acc: 0.7975 - absolute_diff: 0.2236\n", + "3677/3677 [==============================] - 1s 187us/step - loss: 0.6812 - acc: 0.7332 - absolute_diff: 0.3508\n", "Epoch 42/250\n", - "1570/1570 [==============================] - 0s 197us/step - loss: 0.2204 - acc: 0.8287 - absolute_diff: 0.1873\n", + "3677/3677 [==============================] - 1s 141us/step - loss: 0.7069 - acc: 0.7017 - absolute_diff: 0.3862\n", "Epoch 43/250\n", - "1570/1570 [==============================] - 0s 211us/step - loss: 0.2111 - acc: 0.8376 - absolute_diff: 0.1822\n", + "3677/3677 [==============================] - 1s 154us/step - loss: 0.7021 - acc: 0.7267 - absolute_diff: 0.3595\n", "Epoch 44/250\n", - "1570/1570 [==============================] - 0s 246us/step - loss: 0.2363 - acc: 0.8255 - absolute_diff: 0.1943\n", + "3677/3677 [==============================] - 1s 163us/step - loss: 0.6198 - acc: 0.7430 - absolute_diff: 0.3302\n", "Epoch 45/250\n", - "1570/1570 [==============================] - 0s 200us/step - loss: 0.2003 - acc: 0.8471 - absolute_diff: 0.1701\n", + "3677/3677 [==============================] - 1s 189us/step - loss: 0.6691 - acc: 0.7136 - absolute_diff: 0.3666\n", "Epoch 46/250\n", - "1570/1570 [==============================] - 0s 201us/step - loss: 0.2319 - acc: 0.8019 - absolute_diff: 0.2153\n", + "3677/3677 [==============================] - 1s 199us/step - loss: 0.7722 - acc: 0.6870 - absolute_diff: 0.4058\n", "Epoch 47/250\n", - "1570/1570 [==============================] - 0s 236us/step - loss: 0.2821 - acc: 0.7592 - absolute_diff: 0.2599\n", + "3677/3677 [==============================] - 1s 161us/step - loss: 0.6652 - acc: 0.7343 - absolute_diff: 0.3424\n", "Epoch 48/250\n", - "1570/1570 [==============================] - 0s 211us/step - loss: 0.2344 - acc: 0.8185 - absolute_diff: 0.2000\n", + "3677/3677 [==============================] - 1s 177us/step - loss: 0.6818 - acc: 0.7299 - absolute_diff: 0.3500\n", "Epoch 49/250\n", - "1570/1570 [==============================] - 0s 195us/step - loss: 0.2307 - acc: 0.8032 - absolute_diff: 0.2140\n", + "3677/3677 [==============================] - 1s 210us/step - loss: 0.6571 - acc: 0.7161 - absolute_diff: 0.3628\n", "Epoch 50/250\n", - "1570/1570 [==============================] - 0s 199us/step - loss: 0.2787 - acc: 0.7656 - absolute_diff: 0.2541\n", + "3677/3677 [==============================] - 1s 185us/step - loss: 0.6187 - acc: 0.7580 - absolute_diff: 0.3174\n", "Epoch 51/250\n", - "1570/1570 [==============================] - 0s 209us/step - loss: 0.2933 - acc: 0.7548 - absolute_diff: 0.2694\n", + "3677/3677 [==============================] - 1s 211us/step - loss: 0.5573 - acc: 0.7691 - absolute_diff: 0.2945\n", "Epoch 52/250\n", - "1570/1570 [==============================] - 0s 181us/step - loss: 0.3249 - acc: 0.7242 - absolute_diff: 0.3025\n", + "3677/3677 [==============================] - 1s 204us/step - loss: 0.6490 - acc: 0.7528 - absolute_diff: 0.3236\n", "Epoch 53/250\n", - "1570/1570 [==============================] - 0s 210us/step - loss: 0.2340 - acc: 0.7803 - absolute_diff: 0.2350\n", + "3677/3677 [==============================] - 1s 194us/step - loss: 0.6362 - acc: 0.7465 - absolute_diff: 0.3312\n", "Epoch 54/250\n", - "1570/1570 [==============================] - 0s 196us/step - loss: 0.2347 - acc: 0.8064 - absolute_diff: 0.2096\n", + "3677/3677 [==============================] - 1s 230us/step - loss: 0.5788 - acc: 0.7522 - absolute_diff: 0.3171\n", "Epoch 55/250\n", - "1570/1570 [==============================] - 0s 192us/step - loss: 0.2070 - acc: 0.8140 - absolute_diff: 0.2013\n", + "3677/3677 [==============================] - 1s 175us/step - loss: 0.6049 - acc: 0.7433 - absolute_diff: 0.3293\n", "Epoch 56/250\n", - "1570/1570 [==============================] - 0s 178us/step - loss: 0.1814 - acc: 0.8490 - absolute_diff: 0.1637\n", + "3677/3677 [==============================] - 1s 175us/step - loss: 0.6277 - acc: 0.7541 - absolute_diff: 0.3212\n", "Epoch 57/250\n", - "1570/1570 [==============================] - 0s 202us/step - loss: 0.2255 - acc: 0.8038 - absolute_diff: 0.2115\n", + "3677/3677 [==============================] - 1s 185us/step - loss: 0.6735 - acc: 0.7169 - absolute_diff: 0.3666\n", "Epoch 58/250\n", - "1570/1570 [==============================] - 0s 193us/step - loss: 0.1816 - acc: 0.8490 - absolute_diff: 0.1624\n", + "3677/3677 [==============================] - 1s 235us/step - loss: 0.6622 - acc: 0.7131 - absolute_diff: 0.3652\n", "Epoch 59/250\n", - "1570/1570 [==============================] - 0s 247us/step - loss: 0.1577 - acc: 0.8847 - absolute_diff: 0.1280\n", + "3677/3677 [==============================] - 1s 211us/step - loss: 0.5565 - acc: 0.7555 - absolute_diff: 0.3087\n", "Epoch 60/250\n", - "1570/1570 [==============================] - 0s 220us/step - loss: 0.1452 - acc: 0.8841 - absolute_diff: 0.1255\n", + "3677/3677 [==============================] - 1s 156us/step - loss: 0.5832 - acc: 0.7528 - absolute_diff: 0.3187\n", "Epoch 61/250\n", - "1570/1570 [==============================] - 0s 175us/step - loss: 0.1552 - acc: 0.8758 - absolute_diff: 0.1357\n", + "3677/3677 [==============================] - 1s 162us/step - loss: 0.5897 - acc: 0.7468 - absolute_diff: 0.3228\n", "Epoch 62/250\n", - "1570/1570 [==============================] - 0s 223us/step - loss: 0.1901 - acc: 0.8293 - absolute_diff: 0.1815\n", + "3677/3677 [==============================] - 1s 178us/step - loss: 0.5187 - acc: 0.7794 - absolute_diff: 0.2793\n", "Epoch 63/250\n", - "1570/1570 [==============================] - 0s 198us/step - loss: 0.2947 - acc: 0.7121 - absolute_diff: 0.3057\n", + "3677/3677 [==============================] - 1s 172us/step - loss: 0.5343 - acc: 0.7751 - absolute_diff: 0.2866\n", "Epoch 64/250\n", - "1570/1570 [==============================] - 0s 226us/step - loss: 0.2116 - acc: 0.8102 - absolute_diff: 0.2025\n", + "3677/3677 [==============================] - 1s 181us/step - loss: 0.5155 - acc: 0.7871 - absolute_diff: 0.2701\n", "Epoch 65/250\n", - "1570/1570 [==============================] - 0s 195us/step - loss: 0.2033 - acc: 0.8248 - absolute_diff: 0.1885\n", + "3677/3677 [==============================] - 1s 180us/step - loss: 0.5359 - acc: 0.7737 - absolute_diff: 0.2894\n", "Epoch 66/250\n" ] }, @@ -235,135 +235,135 @@ "name": "stdout", "output_type": "stream", "text": [ - "1570/1570 [==============================] - 0s 228us/step - loss: 0.2357 - acc: 0.7745 - absolute_diff: 0.2376\n", + "3677/3677 [==============================] - 1s 153us/step - loss: 0.5593 - acc: 0.7615 - absolute_diff: 0.3021\n", "Epoch 67/250\n", - "1570/1570 [==============================] - 0s 168us/step - loss: 0.2163 - acc: 0.8127 - absolute_diff: 0.2045\n", + "3677/3677 [==============================] - 1s 143us/step - loss: 0.5807 - acc: 0.7563 - absolute_diff: 0.3130\n", "Epoch 68/250\n", - "1570/1570 [==============================] - 0s 168us/step - loss: 0.3115 - acc: 0.7274 - absolute_diff: 0.2962\n", + "3677/3677 [==============================] - 1s 152us/step - loss: 0.5849 - acc: 0.7468 - absolute_diff: 0.3239\n", "Epoch 69/250\n", - "1570/1570 [==============================] - 0s 168us/step - loss: 0.3200 - acc: 0.7153 - absolute_diff: 0.3083\n", + "3677/3677 [==============================] - 1s 154us/step - loss: 0.6115 - acc: 0.7596 - absolute_diff: 0.3128\n", "Epoch 70/250\n", - "1570/1570 [==============================] - 0s 168us/step - loss: 0.2206 - acc: 0.7924 - absolute_diff: 0.2185\n", + "3677/3677 [==============================] - 1s 148us/step - loss: 0.7490 - acc: 0.7117 - absolute_diff: 0.3802\n", "Epoch 71/250\n", - "1570/1570 [==============================] - 0s 177us/step - loss: 0.1556 - acc: 0.8771 - absolute_diff: 0.1299\n", + "3677/3677 [==============================] - 1s 149us/step - loss: 0.5899 - acc: 0.7498 - absolute_diff: 0.3209\n", "Epoch 72/250\n", - "1570/1570 [==============================] - 0s 202us/step - loss: 0.1449 - acc: 0.8987 - absolute_diff: 0.1121\n", + "3677/3677 [==============================] - 1s 151us/step - loss: 0.5537 - acc: 0.7544 - absolute_diff: 0.3076\n", "Epoch 73/250\n", - "1570/1570 [==============================] - 0s 180us/step - loss: 0.1419 - acc: 0.8968 - absolute_diff: 0.1140\n", + "3677/3677 [==============================] - 1s 142us/step - loss: 0.4985 - acc: 0.7865 - absolute_diff: 0.2698\n", "Epoch 74/250\n", - "1570/1570 [==============================] - 0s 158us/step - loss: 0.1562 - acc: 0.8924 - absolute_diff: 0.1197\n", + "3677/3677 [==============================] - 1s 147us/step - loss: 0.5917 - acc: 0.7362 - absolute_diff: 0.3361\n", "Epoch 75/250\n", - "1570/1570 [==============================] - 0s 176us/step - loss: 0.1771 - acc: 0.8376 - absolute_diff: 0.1720\n", + "3677/3677 [==============================] - 1s 146us/step - loss: 0.6207 - acc: 0.7280 - absolute_diff: 0.3402\n", "Epoch 76/250\n", - "1570/1570 [==============================] - 0s 178us/step - loss: 0.1348 - acc: 0.8924 - absolute_diff: 0.1166\n", + "3677/3677 [==============================] - 1s 146us/step - loss: 0.5313 - acc: 0.7784 - absolute_diff: 0.2807\n", "Epoch 77/250\n", - "1570/1570 [==============================] - 0s 176us/step - loss: 0.1995 - acc: 0.8070 - absolute_diff: 0.2032\n", + "3677/3677 [==============================] - 1s 144us/step - loss: 0.5134 - acc: 0.7871 - absolute_diff: 0.2703\n", "Epoch 78/250\n", - "1570/1570 [==============================] - 0s 168us/step - loss: 0.2008 - acc: 0.8204 - absolute_diff: 0.1930\n", + "3677/3677 [==============================] - 1s 158us/step - loss: 0.4871 - acc: 0.8001 - absolute_diff: 0.2562\n", "Epoch 79/250\n", - "1570/1570 [==============================] - 0s 169us/step - loss: 0.1847 - acc: 0.8325 - absolute_diff: 0.1783\n", + "3677/3677 [==============================] - 1s 170us/step - loss: 0.4547 - acc: 0.8099 - absolute_diff: 0.2399\n", "Epoch 80/250\n", - "1570/1570 [==============================] - 0s 171us/step - loss: 0.2142 - acc: 0.8025 - absolute_diff: 0.2108\n", + "3677/3677 [==============================] - 1s 153us/step - loss: 0.4835 - acc: 0.7917 - absolute_diff: 0.2630\n", "Epoch 81/250\n", - "1570/1570 [==============================] - 0s 184us/step - loss: 0.1742 - acc: 0.8433 - absolute_diff: 0.1669\n", + "3677/3677 [==============================] - 1s 145us/step - loss: 0.4756 - acc: 0.8047 - absolute_diff: 0.2469\n", "Epoch 82/250\n", - "1570/1570 [==============================] - 0s 177us/step - loss: 0.2174 - acc: 0.8006 - absolute_diff: 0.2102\n", + "3677/3677 [==============================] - 1s 153us/step - loss: 0.4990 - acc: 0.7862 - absolute_diff: 0.2695\n", "Epoch 83/250\n", - "1570/1570 [==============================] - 0s 174us/step - loss: 0.1784 - acc: 0.8312 - absolute_diff: 0.1764\n", + "3677/3677 [==============================] - 1s 148us/step - loss: 0.4760 - acc: 0.7911 - absolute_diff: 0.2627\n", "Epoch 84/250\n", - "1570/1570 [==============================] - 0s 177us/step - loss: 0.1294 - acc: 0.8930 - absolute_diff: 0.1146\n", + "3677/3677 [==============================] - 1s 140us/step - loss: 0.4937 - acc: 0.7835 - absolute_diff: 0.2695\n", "Epoch 85/250\n", - "1570/1570 [==============================] - 0s 190us/step - loss: 0.1345 - acc: 0.8987 - absolute_diff: 0.1108\n", + "3677/3677 [==============================] - 1s 144us/step - loss: 0.4700 - acc: 0.8031 - absolute_diff: 0.2513\n", "Epoch 86/250\n", - "1570/1570 [==============================] - 0s 176us/step - loss: 0.1440 - acc: 0.8783 - absolute_diff: 0.1312\n", + "3677/3677 [==============================] - 1s 149us/step - loss: 0.4550 - acc: 0.8137 - absolute_diff: 0.2401\n", "Epoch 87/250\n", - "1570/1570 [==============================] - 0s 203us/step - loss: 0.1455 - acc: 0.8955 - absolute_diff: 0.1159\n", + "3677/3677 [==============================] - 1s 146us/step - loss: 0.4846 - acc: 0.7985 - absolute_diff: 0.2573\n", "Epoch 88/250\n", - "1570/1570 [==============================] - 0s 176us/step - loss: 0.1895 - acc: 0.8236 - absolute_diff: 0.1866\n", + "3677/3677 [==============================] - 1s 153us/step - loss: 0.4476 - acc: 0.8028 - absolute_diff: 0.2483\n", "Epoch 89/250\n", - "1570/1570 [==============================] - 0s 168us/step - loss: 0.2004 - acc: 0.8051 - absolute_diff: 0.2051\n", + "3677/3677 [==============================] - 1s 158us/step - loss: 0.4487 - acc: 0.8200 - absolute_diff: 0.2293\n", "Epoch 90/250\n", - "1570/1570 [==============================] - 0s 156us/step - loss: 0.1500 - acc: 0.8662 - absolute_diff: 0.1389\n", + "3677/3677 [==============================] - 1s 141us/step - loss: 0.4691 - acc: 0.8107 - absolute_diff: 0.2426\n", "Epoch 91/250\n", - "1570/1570 [==============================] - 0s 167us/step - loss: 0.1265 - acc: 0.9064 - absolute_diff: 0.1013\n", + "3677/3677 [==============================] - 1s 154us/step - loss: 0.4587 - acc: 0.8039 - absolute_diff: 0.2497\n", "Epoch 92/250\n", - "1570/1570 [==============================] - 0s 171us/step - loss: 0.1162 - acc: 0.9223 - absolute_diff: 0.0860\n", + "3677/3677 [==============================] - 1s 177us/step - loss: 0.4597 - acc: 0.8039 - absolute_diff: 0.2491\n", "Epoch 93/250\n", - "1570/1570 [==============================] - 0s 166us/step - loss: 0.1098 - acc: 0.9242 - absolute_diff: 0.0854\n", + "3677/3677 [==============================] - 1s 177us/step - loss: 0.5066 - acc: 0.7756 - absolute_diff: 0.2779\n", "Epoch 94/250\n", - "1570/1570 [==============================] - 0s 198us/step - loss: 0.1130 - acc: 0.9312 - absolute_diff: 0.0777\n", + "3677/3677 [==============================] - 1s 187us/step - loss: 0.4686 - acc: 0.7941 - absolute_diff: 0.2603\n", "Epoch 95/250\n", - "1570/1570 [==============================] - 0s 177us/step - loss: 0.1191 - acc: 0.9038 - absolute_diff: 0.1013\n", + "3677/3677 [==============================] - 1s 202us/step - loss: 0.5266 - acc: 0.7895 - absolute_diff: 0.2720\n", "Epoch 96/250\n", - "1570/1570 [==============================] - 0s 168us/step - loss: 0.1411 - acc: 0.8701 - absolute_diff: 0.1369\n", + "3677/3677 [==============================] - 1s 158us/step - loss: 0.4337 - acc: 0.8186 - absolute_diff: 0.2301\n", "Epoch 97/250\n", - "1570/1570 [==============================] - 0s 192us/step - loss: 0.1684 - acc: 0.8433 - absolute_diff: 0.1662\n", + "3677/3677 [==============================] - 1s 175us/step - loss: 0.4344 - acc: 0.8170 - absolute_diff: 0.2312\n", "Epoch 98/250\n", - "1570/1570 [==============================] - 0s 174us/step - loss: 0.1536 - acc: 0.8694 - absolute_diff: 0.1389\n", + "3677/3677 [==============================] - 1s 162us/step - loss: 0.5185 - acc: 0.7900 - absolute_diff: 0.2709\n", "Epoch 99/250\n", - "1570/1570 [==============================] - 0s 192us/step - loss: 0.1772 - acc: 0.8427 - absolute_diff: 0.1682\n", + "3677/3677 [==============================] - 1s 163us/step - loss: 0.4909 - acc: 0.7911 - absolute_diff: 0.2657\n", "Epoch 100/250\n", - "1570/1570 [==============================] - 0s 168us/step - loss: 0.1707 - acc: 0.8465 - absolute_diff: 0.1631\n", + "3677/3677 [==============================] - 1s 163us/step - loss: 0.4946 - acc: 0.7724 - absolute_diff: 0.2858\n", "Epoch 101/250\n", - "1570/1570 [==============================] - 0s 189us/step - loss: 0.1225 - acc: 0.9140 - absolute_diff: 0.0962\n", + "3677/3677 [==============================] - 1s 161us/step - loss: 0.4771 - acc: 0.7963 - absolute_diff: 0.2581\n", "Epoch 102/250\n", - "1570/1570 [==============================] - 0s 187us/step - loss: 0.1316 - acc: 0.8936 - absolute_diff: 0.1146\n", + "3677/3677 [==============================] - 1s 170us/step - loss: 0.4200 - acc: 0.8230 - absolute_diff: 0.2236\n", "Epoch 103/250\n", - "1570/1570 [==============================] - 0s 198us/step - loss: 0.1187 - acc: 0.9089 - absolute_diff: 0.0981\n", + "3677/3677 [==============================] - 1s 157us/step - loss: 0.4156 - acc: 0.8170 - absolute_diff: 0.2282\n", "Epoch 104/250\n", - "1570/1570 [==============================] - 0s 194us/step - loss: 0.1319 - acc: 0.8943 - absolute_diff: 0.1127\n", + "3677/3677 [==============================] - 1s 158us/step - loss: 0.4285 - acc: 0.8278 - absolute_diff: 0.2206\n", "Epoch 105/250\n", - "1570/1570 [==============================] - 0s 199us/step - loss: 0.1558 - acc: 0.8554 - absolute_diff: 0.1516\n", + "3677/3677 [==============================] - 1s 157us/step - loss: 0.4037 - acc: 0.8325 - absolute_diff: 0.2110\n", "Epoch 106/250\n", - "1570/1570 [==============================] - 0s 197us/step - loss: 0.1585 - acc: 0.8529 - absolute_diff: 0.1541\n", + "3677/3677 [==============================] - 1s 165us/step - loss: 0.4385 - acc: 0.8319 - absolute_diff: 0.2176\n", "Epoch 107/250\n", - "1570/1570 [==============================] - 0s 184us/step - loss: 0.1334 - acc: 0.8790 - absolute_diff: 0.1280\n", + "3677/3677 [==============================] - 1s 162us/step - loss: 0.4880 - acc: 0.7890 - absolute_diff: 0.2654\n", "Epoch 108/250\n", - "1570/1570 [==============================] - 0s 188us/step - loss: 0.1494 - acc: 0.8752 - absolute_diff: 0.1357\n", + "3677/3677 [==============================] - 1s 162us/step - loss: 0.4707 - acc: 0.7871 - absolute_diff: 0.2649\n", "Epoch 109/250\n", - "1570/1570 [==============================] - 0s 193us/step - loss: 0.1638 - acc: 0.8732 - absolute_diff: 0.1382\n", + "3677/3677 [==============================] - 1s 164us/step - loss: 0.4385 - acc: 0.8191 - absolute_diff: 0.2309\n", "Epoch 110/250\n", - "1570/1570 [==============================] - 0s 251us/step - loss: 0.1676 - acc: 0.8478 - absolute_diff: 0.1631\n", + "3677/3677 [==============================] - 1s 156us/step - loss: 0.4330 - acc: 0.8259 - absolute_diff: 0.2219\n", "Epoch 111/250\n", - "1570/1570 [==============================] - 0s 296us/step - loss: 0.1559 - acc: 0.8586 - absolute_diff: 0.1490\n", + "3677/3677 [==============================] - 1s 169us/step - loss: 0.4404 - acc: 0.8083 - absolute_diff: 0.2426\n", "Epoch 112/250\n", - "1570/1570 [==============================] - 0s 222us/step - loss: 0.1317 - acc: 0.8911 - absolute_diff: 0.1172\n", + "3677/3677 [==============================] - 1s 171us/step - loss: 0.4144 - acc: 0.8123 - absolute_diff: 0.2325\n", "Epoch 113/250\n", - "1570/1570 [==============================] - 0s 180us/step - loss: 0.1358 - acc: 0.8943 - absolute_diff: 0.1127\n", + "3677/3677 [==============================] - 1s 161us/step - loss: 0.4333 - acc: 0.8088 - absolute_diff: 0.2388\n", "Epoch 114/250\n", - "1570/1570 [==============================] - 0s 292us/step - loss: 0.1451 - acc: 0.8796 - absolute_diff: 0.1293\n", + "3677/3677 [==============================] - 1s 172us/step - loss: 0.4273 - acc: 0.8077 - absolute_diff: 0.2396\n", "Epoch 115/250\n", - "1570/1570 [==============================] - 0s 274us/step - loss: 0.1876 - acc: 0.8242 - absolute_diff: 0.1847\n", + "3677/3677 [==============================] - 1s 163us/step - loss: 0.3982 - acc: 0.8439 - absolute_diff: 0.1988\n", "Epoch 116/250\n", - "1570/1570 [==============================] - 0s 270us/step - loss: 0.2216 - acc: 0.8057 - absolute_diff: 0.2083\n", + "3677/3677 [==============================] - 1s 165us/step - loss: 0.4396 - acc: 0.8134 - absolute_diff: 0.2350\n", "Epoch 117/250\n", - "1570/1570 [==============================] - 0s 189us/step - loss: 0.1795 - acc: 0.8529 - absolute_diff: 0.1580\n", + "3677/3677 [==============================] - 1s 169us/step - loss: 0.3836 - acc: 0.8344 - absolute_diff: 0.2075\n", "Epoch 118/250\n", - "1570/1570 [==============================] - 0s 228us/step - loss: 0.1735 - acc: 0.8510 - absolute_diff: 0.1580\n", + "3677/3677 [==============================] - 1s 186us/step - loss: 0.3899 - acc: 0.8355 - absolute_diff: 0.2086\n", "Epoch 119/250\n", - "1570/1570 [==============================] - 0s 187us/step - loss: 0.1662 - acc: 0.8567 - absolute_diff: 0.1541\n", + "3677/3677 [==============================] - 1s 167us/step - loss: 0.4497 - acc: 0.8110 - absolute_diff: 0.2377\n", "Epoch 120/250\n", - "1570/1570 [==============================] - 0s 243us/step - loss: 0.1425 - acc: 0.8726 - absolute_diff: 0.1331\n", + "3677/3677 [==============================] - 1s 169us/step - loss: 0.4190 - acc: 0.8159 - absolute_diff: 0.2323\n", "Epoch 121/250\n", - "1570/1570 [==============================] - 0s 202us/step - loss: 0.1208 - acc: 0.8987 - absolute_diff: 0.1083\n", + "3677/3677 [==============================] - 1s 172us/step - loss: 0.4107 - acc: 0.8254 - absolute_diff: 0.2206\n", "Epoch 122/250\n", - "1570/1570 [==============================] - 0s 211us/step - loss: 0.1443 - acc: 0.8815 - absolute_diff: 0.1274\n", + "3677/3677 [==============================] - 1s 171us/step - loss: 0.3852 - acc: 0.8287 - absolute_diff: 0.2124\n", "Epoch 123/250\n", - "1570/1570 [==============================] - 0s 279us/step - loss: 0.1628 - acc: 0.8713 - absolute_diff: 0.1401\n", + "3677/3677 [==============================] - 1s 189us/step - loss: 0.4206 - acc: 0.8208 - absolute_diff: 0.2260\n", "Epoch 124/250\n", - "1570/1570 [==============================] - 0s 232us/step - loss: 0.1376 - acc: 0.8924 - absolute_diff: 0.1146\n", + "3677/3677 [==============================] - 1s 168us/step - loss: 0.4102 - acc: 0.8238 - absolute_diff: 0.2211\n", "Epoch 125/250\n", - "1570/1570 [==============================] - 0s 190us/step - loss: 0.1555 - acc: 0.8567 - absolute_diff: 0.1503\n", + "3677/3677 [==============================] - 1s 156us/step - loss: 0.4374 - acc: 0.8175 - absolute_diff: 0.2323\n", "Epoch 126/250\n", - "1570/1570 [==============================] - 0s 191us/step - loss: 0.1272 - acc: 0.9006 - absolute_diff: 0.1076\n", + "3677/3677 [==============================] - 1s 175us/step - loss: 0.4129 - acc: 0.8420 - absolute_diff: 0.2059\n", "Epoch 127/250\n", - "1570/1570 [==============================] - 0s 189us/step - loss: 0.1147 - acc: 0.9159 - absolute_diff: 0.0917\n", + "3677/3677 [==============================] - 1s 176us/step - loss: 0.3916 - acc: 0.8417 - absolute_diff: 0.2013\n", "Epoch 128/250\n", - "1570/1570 [==============================] - 0s 187us/step - loss: 0.1114 - acc: 0.9178 - absolute_diff: 0.0892\n", + "3677/3677 [==============================] - 1s 169us/step - loss: 0.3982 - acc: 0.8306 - absolute_diff: 0.2132\n", "Epoch 129/250\n", - "1570/1570 [==============================] - 0s 195us/step - loss: 0.1178 - acc: 0.9108 - absolute_diff: 0.0981\n", + "3677/3677 [==============================] - 1s 161us/step - loss: 0.3820 - acc: 0.8461 - absolute_diff: 0.1980\n", "Epoch 130/250\n", - "1570/1570 [==============================] - 0s 189us/step - loss: 0.1137 - acc: 0.9140 - absolute_diff: 0.0924\n", + "3677/3677 [==============================] - 1s 168us/step - loss: 0.3815 - acc: 0.8434 - absolute_diff: 0.1988\n", "Epoch 131/250\n" ] }, @@ -371,135 +371,135 @@ "name": "stdout", "output_type": "stream", "text": [ - "1570/1570 [==============================] - 0s 188us/step - loss: 0.1212 - acc: 0.9032 - absolute_diff: 0.1025\n", + "3677/3677 [==============================] - 1s 154us/step - loss: 0.3867 - acc: 0.8420 - absolute_diff: 0.1993\n", "Epoch 132/250\n", - "1570/1570 [==============================] - 0s 230us/step - loss: 0.1298 - acc: 0.8936 - absolute_diff: 0.1121\n", + "3677/3677 [==============================] - 1s 170us/step - loss: 0.3864 - acc: 0.8406 - absolute_diff: 0.2023\n", "Epoch 133/250\n", - "1570/1570 [==============================] - 0s 193us/step - loss: 0.1551 - acc: 0.8599 - absolute_diff: 0.1484\n", + "3677/3677 [==============================] - 1s 173us/step - loss: 0.3890 - acc: 0.8346 - absolute_diff: 0.2078\n", "Epoch 134/250\n", - "1570/1570 [==============================] - 0s 247us/step - loss: 0.1730 - acc: 0.8414 - absolute_diff: 0.1682\n", + "3677/3677 [==============================] - 1s 166us/step - loss: 0.4169 - acc: 0.8107 - absolute_diff: 0.2350\n", "Epoch 135/250\n", - "1570/1570 [==============================] - 0s 207us/step - loss: 0.1709 - acc: 0.8318 - absolute_diff: 0.1764\n", + "3677/3677 [==============================] - 1s 165us/step - loss: 0.4066 - acc: 0.8210 - absolute_diff: 0.2233\n", "Epoch 136/250\n", - "1570/1570 [==============================] - 0s 251us/step - loss: 0.1518 - acc: 0.8624 - absolute_diff: 0.1433\n", + "3677/3677 [==============================] - 1s 182us/step - loss: 0.4499 - acc: 0.8012 - absolute_diff: 0.2524\n", "Epoch 137/250\n", - "1570/1570 [==============================] - 0s 177us/step - loss: 0.1153 - acc: 0.9146 - absolute_diff: 0.0917\n", + "3677/3677 [==============================] - 1s 166us/step - loss: 0.4069 - acc: 0.8227 - absolute_diff: 0.2246\n", "Epoch 138/250\n", - "1570/1570 [==============================] - 0s 173us/step - loss: 0.1098 - acc: 0.9153 - absolute_diff: 0.0898\n", + "3677/3677 [==============================] - 1s 162us/step - loss: 0.4489 - acc: 0.8031 - absolute_diff: 0.2472\n", "Epoch 139/250\n", - "1570/1570 [==============================] - 0s 242us/step - loss: 0.0974 - acc: 0.9306 - absolute_diff: 0.0752\n", + "3677/3677 [==============================] - 1s 160us/step - loss: 0.4214 - acc: 0.8202 - absolute_diff: 0.2295\n", "Epoch 140/250\n", - "1570/1570 [==============================] - 0s 205us/step - loss: 0.0906 - acc: 0.9427 - absolute_diff: 0.0656\n", + "3677/3677 [==============================] - 1s 151us/step - loss: 0.3761 - acc: 0.8436 - absolute_diff: 0.1961\n", "Epoch 141/250\n", - "1570/1570 [==============================] - 0s 246us/step - loss: 0.0831 - acc: 0.9420 - absolute_diff: 0.0624\n", + "3677/3677 [==============================] - 1s 159us/step - loss: 0.4049 - acc: 0.8230 - absolute_diff: 0.2208\n", "Epoch 142/250\n", - "1570/1570 [==============================] - 0s 187us/step - loss: 0.0880 - acc: 0.9439 - absolute_diff: 0.0611\n", + "3677/3677 [==============================] - 1s 147us/step - loss: 0.3486 - acc: 0.8496 - absolute_diff: 0.1868\n", "Epoch 143/250\n", - "1570/1570 [==============================] - 0s 195us/step - loss: 0.0940 - acc: 0.9293 - absolute_diff: 0.0745\n", + "3677/3677 [==============================] - 1s 156us/step - loss: 0.3374 - acc: 0.8673 - absolute_diff: 0.1700\n", "Epoch 144/250\n", - "1570/1570 [==============================] - 0s 194us/step - loss: 0.1193 - acc: 0.8968 - absolute_diff: 0.1089\n", + "3677/3677 [==============================] - 1s 150us/step - loss: 0.3030 - acc: 0.8825 - absolute_diff: 0.1499\n", "Epoch 145/250\n", - "1570/1570 [==============================] - 0s 186us/step - loss: 0.1489 - acc: 0.8605 - absolute_diff: 0.1484\n", + "3677/3677 [==============================] - 1s 149us/step - loss: 0.3484 - acc: 0.8591 - absolute_diff: 0.1790\n", "Epoch 146/250\n", - "1570/1570 [==============================] - 0s 179us/step - loss: 0.1252 - acc: 0.8898 - absolute_diff: 0.1178\n", + "3677/3677 [==============================] - 1s 179us/step - loss: 0.3311 - acc: 0.8678 - absolute_diff: 0.1683\n", "Epoch 147/250\n", - "1570/1570 [==============================] - 0s 171us/step - loss: 0.1374 - acc: 0.8771 - absolute_diff: 0.1280\n", + "3677/3677 [==============================] - 1s 155us/step - loss: 0.3307 - acc: 0.8646 - absolute_diff: 0.1702\n", "Epoch 148/250\n", - "1570/1570 [==============================] - 0s 231us/step - loss: 0.1446 - acc: 0.8764 - absolute_diff: 0.1299\n", + "3677/3677 [==============================] - 1s 158us/step - loss: 0.4209 - acc: 0.8292 - absolute_diff: 0.2189\n", "Epoch 149/250\n", - "1570/1570 [==============================] - 0s 200us/step - loss: 0.1605 - acc: 0.8439 - absolute_diff: 0.1631\n", + "3677/3677 [==============================] - 1s 152us/step - loss: 0.3541 - acc: 0.8526 - absolute_diff: 0.1855\n", "Epoch 150/250\n", - "1570/1570 [==============================] - 0s 201us/step - loss: 0.1770 - acc: 0.8535 - absolute_diff: 0.1561\n", + "3677/3677 [==============================] - 1s 154us/step - loss: 0.4441 - acc: 0.8333 - absolute_diff: 0.2176\n", "Epoch 151/250\n", - "1570/1570 [==============================] - 0s 181us/step - loss: 0.2009 - acc: 0.8318 - absolute_diff: 0.1815\n", + "3677/3677 [==============================] - 1s 167us/step - loss: 0.3791 - acc: 0.8322 - absolute_diff: 0.2102\n", "Epoch 152/250\n", - "1570/1570 [==============================] - 0s 192us/step - loss: 0.2185 - acc: 0.8025 - absolute_diff: 0.2121\n", + "3677/3677 [==============================] - 1s 162us/step - loss: 0.3865 - acc: 0.8466 - absolute_diff: 0.1974\n", "Epoch 153/250\n", - "1570/1570 [==============================] - 0s 174us/step - loss: 0.1960 - acc: 0.8471 - absolute_diff: 0.1662\n", + "3677/3677 [==============================] - 1s 192us/step - loss: 0.3365 - acc: 0.8589 - absolute_diff: 0.1765\n", "Epoch 154/250\n", - "1570/1570 [==============================] - 0s 175us/step - loss: 0.2389 - acc: 0.8070 - absolute_diff: 0.2127\n", + "3677/3677 [==============================] - 1s 172us/step - loss: 0.3397 - acc: 0.8725 - absolute_diff: 0.1648\n", "Epoch 155/250\n", - "1570/1570 [==============================] - 0s 169us/step - loss: 0.2234 - acc: 0.8038 - absolute_diff: 0.2089\n", + "3677/3677 [==============================] - 1s 161us/step - loss: 0.3361 - acc: 0.8703 - absolute_diff: 0.1678\n", "Epoch 156/250\n", - "1570/1570 [==============================] - 0s 183us/step - loss: 0.2090 - acc: 0.8115 - absolute_diff: 0.1994\n", + "3677/3677 [==============================] - 1s 159us/step - loss: 0.3503 - acc: 0.8667 - absolute_diff: 0.1743\n", "Epoch 157/250\n", - "1570/1570 [==============================] - 0s 189us/step - loss: 0.1498 - acc: 0.8675 - absolute_diff: 0.1414\n", + "3677/3677 [==============================] - 1s 162us/step - loss: 0.3448 - acc: 0.8504 - absolute_diff: 0.1877\n", "Epoch 158/250\n", - "1570/1570 [==============================] - 0s 163us/step - loss: 0.1230 - acc: 0.9083 - absolute_diff: 0.0987\n", + "3677/3677 [==============================] - 1s 166us/step - loss: 0.3325 - acc: 0.8700 - absolute_diff: 0.1662\n", "Epoch 159/250\n", - "1570/1570 [==============================] - 0s 183us/step - loss: 0.1300 - acc: 0.8834 - absolute_diff: 0.1229\n", + "3677/3677 [==============================] - 1s 159us/step - loss: 0.3079 - acc: 0.8890 - absolute_diff: 0.1469\n", "Epoch 160/250\n", - "1570/1570 [==============================] - 0s 179us/step - loss: 0.0928 - acc: 0.9331 - absolute_diff: 0.0726\n", + "3677/3677 [==============================] - 1s 158us/step - loss: 0.3278 - acc: 0.8692 - absolute_diff: 0.1651\n", "Epoch 161/250\n", - "1570/1570 [==============================] - 0s 201us/step - loss: 0.0972 - acc: 0.9287 - absolute_diff: 0.0771\n", + "3677/3677 [==============================] - 1s 168us/step - loss: 0.3363 - acc: 0.8635 - absolute_diff: 0.1722\n", "Epoch 162/250\n", - "1570/1570 [==============================] - 0s 209us/step - loss: 0.0992 - acc: 0.9236 - absolute_diff: 0.0809\n", + "3677/3677 [==============================] - 1s 171us/step - loss: 0.3353 - acc: 0.8646 - absolute_diff: 0.1702\n", "Epoch 163/250\n", - "1570/1570 [==============================] - 0s 177us/step - loss: 0.0933 - acc: 0.9331 - absolute_diff: 0.0726\n", + "3677/3677 [==============================] - 1s 161us/step - loss: 0.3397 - acc: 0.8491 - absolute_diff: 0.1868\n", "Epoch 164/250\n", - "1570/1570 [==============================] - 0s 194us/step - loss: 0.0821 - acc: 0.9452 - absolute_diff: 0.0592\n", + "3677/3677 [==============================] - 1s 162us/step - loss: 0.3320 - acc: 0.8654 - absolute_diff: 0.1727\n", "Epoch 165/250\n", - "1570/1570 [==============================] - 0s 167us/step - loss: 0.0825 - acc: 0.9554 - absolute_diff: 0.0503\n", + "3677/3677 [==============================] - 1s 160us/step - loss: 0.3245 - acc: 0.8640 - absolute_diff: 0.1719\n", "Epoch 166/250\n", - "1570/1570 [==============================] - 0s 184us/step - loss: 0.1095 - acc: 0.9268 - absolute_diff: 0.0790\n", + "3677/3677 [==============================] - 1s 169us/step - loss: 0.3348 - acc: 0.8643 - absolute_diff: 0.1722\n", "Epoch 167/250\n", - "1570/1570 [==============================] - 0s 183us/step - loss: 0.0929 - acc: 0.9350 - absolute_diff: 0.0701\n", + "3677/3677 [==============================] - 1s 176us/step - loss: 0.3413 - acc: 0.8670 - absolute_diff: 0.1686\n", "Epoch 168/250\n", - "1570/1570 [==============================] - 0s 169us/step - loss: 0.0923 - acc: 0.9420 - absolute_diff: 0.0631\n", + "3677/3677 [==============================] - 1s 179us/step - loss: 0.3840 - acc: 0.8504 - absolute_diff: 0.1917\n", "Epoch 169/250\n", - "1570/1570 [==============================] - 0s 171us/step - loss: 0.0870 - acc: 0.9389 - absolute_diff: 0.0675\n", + "3677/3677 [==============================] - 1s 169us/step - loss: 0.3941 - acc: 0.8412 - absolute_diff: 0.2023\n", "Epoch 170/250\n", - "1570/1570 [==============================] - 0s 182us/step - loss: 0.0789 - acc: 0.9465 - absolute_diff: 0.0580\n", + "3677/3677 [==============================] - 1s 168us/step - loss: 0.4265 - acc: 0.8156 - absolute_diff: 0.2325\n", "Epoch 171/250\n", - "1570/1570 [==============================] - 0s 250us/step - loss: 0.0906 - acc: 0.9357 - absolute_diff: 0.0701\n", + "3677/3677 [==============================] - 1s 163us/step - loss: 0.3907 - acc: 0.8325 - absolute_diff: 0.2110\n", "Epoch 172/250\n", - "1570/1570 [==============================] - 0s 172us/step - loss: 0.0943 - acc: 0.9363 - absolute_diff: 0.0694\n", + "3677/3677 [==============================] - 1s 168us/step - loss: 0.3504 - acc: 0.8466 - absolute_diff: 0.1909\n", "Epoch 173/250\n", - "1570/1570 [==============================] - 0s 210us/step - loss: 0.0906 - acc: 0.9471 - absolute_diff: 0.0586\n", + "3677/3677 [==============================] - 1s 169us/step - loss: 0.3499 - acc: 0.8589 - absolute_diff: 0.1809\n", "Epoch 174/250\n", - "1570/1570 [==============================] - 0s 275us/step - loss: 0.1010 - acc: 0.9338 - absolute_diff: 0.0732\n", + "3677/3677 [==============================] - 1s 171us/step - loss: 0.3743 - acc: 0.8485 - absolute_diff: 0.1936\n", "Epoch 175/250\n", - "1570/1570 [==============================] - 0s 269us/step - loss: 0.1231 - acc: 0.9166 - absolute_diff: 0.0904\n", + "3677/3677 [==============================] - 1s 173us/step - loss: 0.3549 - acc: 0.8439 - absolute_diff: 0.1928\n", "Epoch 176/250\n", - "1570/1570 [==============================] - 0s 307us/step - loss: 0.1252 - acc: 0.8962 - absolute_diff: 0.1089\n", + "3677/3677 [==============================] - 1s 162us/step - loss: 0.3319 - acc: 0.8602 - absolute_diff: 0.1779\n", "Epoch 177/250\n", - "1570/1570 [==============================] - 0s 213us/step - loss: 0.1707 - acc: 0.8363 - absolute_diff: 0.1732\n", + "3677/3677 [==============================] - 1s 171us/step - loss: 0.3420 - acc: 0.8548 - absolute_diff: 0.1825\n", "Epoch 178/250\n", - "1570/1570 [==============================] - 0s 171us/step - loss: 0.1748 - acc: 0.8439 - absolute_diff: 0.1656\n", + "3677/3677 [==============================] - 1s 167us/step - loss: 0.3534 - acc: 0.8572 - absolute_diff: 0.1822\n", "Epoch 179/250\n", - "1570/1570 [==============================] - 0s 176us/step - loss: 0.1138 - acc: 0.9102 - absolute_diff: 0.0955\n", + "3677/3677 [==============================] - 1s 165us/step - loss: 0.3349 - acc: 0.8605 - absolute_diff: 0.1768\n", "Epoch 180/250\n", - "1570/1570 [==============================] - 0s 274us/step - loss: 0.1164 - acc: 0.9038 - absolute_diff: 0.1006\n", + "3677/3677 [==============================] - 1s 174us/step - loss: 0.3217 - acc: 0.8678 - absolute_diff: 0.1670\n", "Epoch 181/250\n", - "1570/1570 [==============================] - 0s 243us/step - loss: 0.0974 - acc: 0.9268 - absolute_diff: 0.0790\n", + "3677/3677 [==============================] - 1s 168us/step - loss: 0.3406 - acc: 0.8534 - absolute_diff: 0.1833\n", "Epoch 182/250\n", - "1570/1570 [==============================] - 0s 290us/step - loss: 0.1019 - acc: 0.9191 - absolute_diff: 0.0854\n", + "3677/3677 [==============================] - 1s 162us/step - loss: 0.3227 - acc: 0.8673 - absolute_diff: 0.1670\n", "Epoch 183/250\n", - "1570/1570 [==============================] - 0s 253us/step - loss: 0.1352 - acc: 0.8707 - absolute_diff: 0.1369\n", + "3677/3677 [==============================] - 1s 170us/step - loss: 0.2922 - acc: 0.8806 - absolute_diff: 0.1493\n", "Epoch 184/250\n", - "1570/1570 [==============================] - 0s 244us/step - loss: 0.1274 - acc: 0.8732 - absolute_diff: 0.1312\n", + "3677/3677 [==============================] - 1s 171us/step - loss: 0.3171 - acc: 0.8820 - absolute_diff: 0.1520\n", "Epoch 185/250\n", - "1570/1570 [==============================] - 0s 240us/step - loss: 0.1133 - acc: 0.9045 - absolute_diff: 0.0994\n", + "3677/3677 [==============================] - 1s 161us/step - loss: 0.3076 - acc: 0.8801 - absolute_diff: 0.1523\n", "Epoch 186/250\n", - "1570/1570 [==============================] - 0s 266us/step - loss: 0.1159 - acc: 0.9185 - absolute_diff: 0.0904\n", + "3677/3677 [==============================] - 1s 160us/step - loss: 0.3144 - acc: 0.8725 - absolute_diff: 0.1610\n", "Epoch 187/250\n", - "1570/1570 [==============================] - 0s 254us/step - loss: 0.1159 - acc: 0.9076 - absolute_diff: 0.0981\n", + "3677/3677 [==============================] - 1s 161us/step - loss: 0.3099 - acc: 0.8860 - absolute_diff: 0.1482\n", "Epoch 188/250\n", - "1570/1570 [==============================] - 0s 242us/step - loss: 0.0910 - acc: 0.9325 - absolute_diff: 0.0720\n", + "3677/3677 [==============================] - 1s 183us/step - loss: 0.3024 - acc: 0.8790 - absolute_diff: 0.1547\n", "Epoch 189/250\n", - "1570/1570 [==============================] - 0s 267us/step - loss: 0.0910 - acc: 0.9331 - absolute_diff: 0.0707\n", + "3677/3677 [==============================] - 1s 164us/step - loss: 0.3053 - acc: 0.8784 - absolute_diff: 0.1575\n", "Epoch 190/250\n", - "1570/1570 [==============================] - 0s 264us/step - loss: 0.1071 - acc: 0.9096 - absolute_diff: 0.0981\n", + "3677/3677 [==============================] - 1s 169us/step - loss: 0.3120 - acc: 0.8784 - absolute_diff: 0.1575\n", "Epoch 191/250\n", - "1570/1570 [==============================] - 0s 262us/step - loss: 0.1005 - acc: 0.9210 - absolute_diff: 0.0834\n", + "3677/3677 [==============================] - 1s 184us/step - loss: 0.3086 - acc: 0.8828 - absolute_diff: 0.1509\n", "Epoch 192/250\n", - "1570/1570 [==============================] - 0s 237us/step - loss: 0.0906 - acc: 0.9306 - absolute_diff: 0.0739\n", + "3677/3677 [==============================] - 1s 187us/step - loss: 0.2853 - acc: 0.8904 - absolute_diff: 0.1398\n", "Epoch 193/250\n", - "1570/1570 [==============================] - 0s 195us/step - loss: 0.0907 - acc: 0.9363 - absolute_diff: 0.0694\n", + "3677/3677 [==============================] - 1s 170us/step - loss: 0.3061 - acc: 0.8792 - absolute_diff: 0.1531\n", "Epoch 194/250\n", - "1570/1570 [==============================] - 0s 222us/step - loss: 0.0965 - acc: 0.9338 - absolute_diff: 0.0713\n", + "3677/3677 [==============================] - 1s 172us/step - loss: 0.2871 - acc: 0.8803 - absolute_diff: 0.1515\n", "Epoch 195/250\n", - "1570/1570 [==============================] - 0s 251us/step - loss: 0.1167 - acc: 0.9172 - absolute_diff: 0.0898\n", + "3677/3677 [==============================] - 1s 180us/step - loss: 0.2968 - acc: 0.8907 - absolute_diff: 0.1411\n", "Epoch 196/250\n" ] }, @@ -507,124 +507,124 @@ "name": "stdout", "output_type": "stream", "text": [ - "1570/1570 [==============================] - 0s 246us/step - loss: 0.1370 - acc: 0.8860 - absolute_diff: 0.1217\n", + "3677/3677 [==============================] - 1s 157us/step - loss: 0.3269 - acc: 0.8635 - absolute_diff: 0.1716\n", "Epoch 197/250\n", - "1570/1570 [==============================] - 0s 163us/step - loss: 0.1299 - acc: 0.8994 - absolute_diff: 0.1076\n", + "3677/3677 [==============================] - 1s 145us/step - loss: 0.3300 - acc: 0.8632 - absolute_diff: 0.1741\n", "Epoch 198/250\n", - "1570/1570 [==============================] - 0s 232us/step - loss: 0.1692 - acc: 0.8662 - absolute_diff: 0.1459\n", + "3677/3677 [==============================] - 1s 154us/step - loss: 0.3288 - acc: 0.8730 - absolute_diff: 0.1651\n", "Epoch 199/250\n", - "1570/1570 [==============================] - 0s 255us/step - loss: 0.1670 - acc: 0.8637 - absolute_diff: 0.1459\n", + "3677/3677 [==============================] - 1s 148us/step - loss: 0.3151 - acc: 0.8798 - absolute_diff: 0.1556\n", "Epoch 200/250\n", - "1570/1570 [==============================] - 0s 273us/step - loss: 0.2313 - acc: 0.8236 - absolute_diff: 0.1917\n", + "3677/3677 [==============================] - 1s 156us/step - loss: 0.3449 - acc: 0.8559 - absolute_diff: 0.1825\n", "Epoch 201/250\n", - "1570/1570 [==============================] - 0s 241us/step - loss: 0.1910 - acc: 0.8325 - absolute_diff: 0.1783\n", + "3677/3677 [==============================] - 1s 188us/step - loss: 0.3886 - acc: 0.8376 - absolute_diff: 0.2078\n", "Epoch 202/250\n", - "1570/1570 [==============================] - 0s 252us/step - loss: 0.1297 - acc: 0.8720 - absolute_diff: 0.1318\n", + "3677/3677 [==============================] - 1s 149us/step - loss: 0.3705 - acc: 0.8436 - absolute_diff: 0.1993\n", "Epoch 203/250\n", - "1570/1570 [==============================] - 0s 230us/step - loss: 0.1164 - acc: 0.9096 - absolute_diff: 0.0981\n", + "3677/3677 [==============================] - 1s 174us/step - loss: 0.3427 - acc: 0.8561 - absolute_diff: 0.1828\n", "Epoch 204/250\n", - "1570/1570 [==============================] - 0s 220us/step - loss: 0.0926 - acc: 0.9363 - absolute_diff: 0.0694\n", + "3677/3677 [==============================] - 1s 163us/step - loss: 0.3272 - acc: 0.8771 - absolute_diff: 0.1607\n", "Epoch 205/250\n", - "1570/1570 [==============================] - 0s 224us/step - loss: 0.1343 - acc: 0.8599 - absolute_diff: 0.1446\n", + "3677/3677 [==============================] - 1s 166us/step - loss: 0.3150 - acc: 0.8776 - absolute_diff: 0.1550\n", "Epoch 206/250\n", - "1570/1570 [==============================] - 0s 232us/step - loss: 0.1182 - acc: 0.9038 - absolute_diff: 0.1013\n", + "3677/3677 [==============================] - 1s 148us/step - loss: 0.2971 - acc: 0.8790 - absolute_diff: 0.1531\n", "Epoch 207/250\n", - "1570/1570 [==============================] - 0s 238us/step - loss: 0.1109 - acc: 0.9115 - absolute_diff: 0.0943\n", + "3677/3677 [==============================] - 1s 154us/step - loss: 0.3070 - acc: 0.8757 - absolute_diff: 0.1550\n", "Epoch 208/250\n", - "1570/1570 [==============================] - 0s 200us/step - loss: 0.0971 - acc: 0.9255 - absolute_diff: 0.0783\n", + "3677/3677 [==============================] - 1s 156us/step - loss: 0.3128 - acc: 0.8681 - absolute_diff: 0.1681\n", "Epoch 209/250\n", - "1570/1570 [==============================] - 0s 219us/step - loss: 0.0788 - acc: 0.9503 - absolute_diff: 0.0541\n", + "3677/3677 [==============================] - 1s 158us/step - loss: 0.3202 - acc: 0.8757 - absolute_diff: 0.1602\n", "Epoch 210/250\n", - "1570/1570 [==============================] - 0s 255us/step - loss: 0.0696 - acc: 0.9618 - absolute_diff: 0.0433\n", + "3677/3677 [==============================] - 1s 163us/step - loss: 0.3154 - acc: 0.8670 - absolute_diff: 0.1686\n", "Epoch 211/250\n", - "1570/1570 [==============================] - 0s 242us/step - loss: 0.0746 - acc: 0.9510 - absolute_diff: 0.0529\n", + "3677/3677 [==============================] - 1s 152us/step - loss: 0.2911 - acc: 0.8904 - absolute_diff: 0.1422\n", "Epoch 212/250\n", - "1570/1570 [==============================] - 0s 234us/step - loss: 0.0704 - acc: 0.9548 - absolute_diff: 0.0503\n", + "3677/3677 [==============================] - 1s 155us/step - loss: 0.2809 - acc: 0.9013 - absolute_diff: 0.1305\n", "Epoch 213/250\n", - "1570/1570 [==============================] - 0s 260us/step - loss: 0.0673 - acc: 0.9624 - absolute_diff: 0.0433\n", + "3677/3677 [==============================] - 1s 162us/step - loss: 0.3065 - acc: 0.8860 - absolute_diff: 0.1493\n", "Epoch 214/250\n", - "1570/1570 [==============================] - 0s 264us/step - loss: 0.0742 - acc: 0.9592 - absolute_diff: 0.0446\n", + "3677/3677 [==============================] - 1s 172us/step - loss: 0.3165 - acc: 0.8792 - absolute_diff: 0.1572\n", "Epoch 215/250\n", - "1570/1570 [==============================] - 0s 216us/step - loss: 0.0778 - acc: 0.9522 - absolute_diff: 0.0522\n", + "3677/3677 [==============================] - 1s 180us/step - loss: 0.3120 - acc: 0.8773 - absolute_diff: 0.1575\n", "Epoch 216/250\n", - "1570/1570 [==============================] - 0s 265us/step - loss: 0.0674 - acc: 0.9561 - absolute_diff: 0.0478\n", + "3677/3677 [==============================] - 1s 169us/step - loss: 0.3346 - acc: 0.8665 - absolute_diff: 0.1716\n", "Epoch 217/250\n", - "1570/1570 [==============================] - 0s 280us/step - loss: 0.0764 - acc: 0.9516 - absolute_diff: 0.0522\n", + "3677/3677 [==============================] - 1s 179us/step - loss: 0.3166 - acc: 0.8711 - absolute_diff: 0.1629\n", "Epoch 218/250\n", - "1570/1570 [==============================] - 0s 300us/step - loss: 0.0767 - acc: 0.9471 - absolute_diff: 0.0567\n", + "3677/3677 [==============================] - 1s 165us/step - loss: 0.2945 - acc: 0.8828 - absolute_diff: 0.1504\n", "Epoch 219/250\n", - "1570/1570 [==============================] - 0s 238us/step - loss: 0.0666 - acc: 0.9554 - absolute_diff: 0.0490\n", + "3677/3677 [==============================] - 1s 181us/step - loss: 0.3025 - acc: 0.8926 - absolute_diff: 0.1414\n", "Epoch 220/250\n", - "1570/1570 [==============================] - 0s 233us/step - loss: 0.0693 - acc: 0.9618 - absolute_diff: 0.0439\n", + "3677/3677 [==============================] - 1s 165us/step - loss: 0.3336 - acc: 0.8730 - absolute_diff: 0.1640\n", "Epoch 221/250\n", - "1570/1570 [==============================] - 0s 253us/step - loss: 0.0749 - acc: 0.9561 - absolute_diff: 0.0484\n", + "3677/3677 [==============================] - 1s 172us/step - loss: 0.3750 - acc: 0.8434 - absolute_diff: 0.1985\n", "Epoch 222/250\n", - "1570/1570 [==============================] - 0s 233us/step - loss: 0.0808 - acc: 0.9503 - absolute_diff: 0.0554\n", + "3677/3677 [==============================] - 1s 157us/step - loss: 0.3623 - acc: 0.8501 - absolute_diff: 0.1912\n", "Epoch 223/250\n", - "1570/1570 [==============================] - 0s 199us/step - loss: 0.0804 - acc: 0.9561 - absolute_diff: 0.0503\n", + "3677/3677 [==============================] - 1s 168us/step - loss: 0.3237 - acc: 0.8648 - absolute_diff: 0.1719\n", "Epoch 224/250\n", - "1570/1570 [==============================] - 0s 241us/step - loss: 0.0831 - acc: 0.9459 - absolute_diff: 0.0586\n", + "3677/3677 [==============================] - 1s 200us/step - loss: 0.2944 - acc: 0.8880 - absolute_diff: 0.1458\n", "Epoch 225/250\n", - "1570/1570 [==============================] - 0s 283us/step - loss: 0.1064 - acc: 0.9217 - absolute_diff: 0.0847\n", + "3677/3677 [==============================] - 1s 158us/step - loss: 0.2692 - acc: 0.8980 - absolute_diff: 0.1324\n", "Epoch 226/250\n", - "1570/1570 [==============================] - 0s 267us/step - loss: 0.1388 - acc: 0.8917 - absolute_diff: 0.1178\n", + "3677/3677 [==============================] - 1s 168us/step - loss: 0.2923 - acc: 0.8967 - absolute_diff: 0.1368\n", "Epoch 227/250\n", - "1570/1570 [==============================] - 0s 205us/step - loss: 0.2192 - acc: 0.8299 - absolute_diff: 0.1834\n", + "3677/3677 [==============================] - 1s 166us/step - loss: 0.3039 - acc: 0.8888 - absolute_diff: 0.1450\n", "Epoch 228/250\n", - "1570/1570 [==============================] - 0s 279us/step - loss: 0.3281 - acc: 0.7185 - absolute_diff: 0.3083\n", + "3677/3677 [==============================] - 1s 165us/step - loss: 0.3488 - acc: 0.8703 - absolute_diff: 0.1664\n", "Epoch 229/250\n", - "1570/1570 [==============================] - 0s 261us/step - loss: 0.2577 - acc: 0.7707 - absolute_diff: 0.2452\n", + "3677/3677 [==============================] - 1s 162us/step - loss: 0.3015 - acc: 0.8801 - absolute_diff: 0.1531\n", "Epoch 230/250\n", - "1570/1570 [==============================] - 0s 244us/step - loss: 0.2381 - acc: 0.7771 - absolute_diff: 0.2401\n", + "3677/3677 [==============================] - 1s 163us/step - loss: 0.2908 - acc: 0.8901 - absolute_diff: 0.1420\n", "Epoch 231/250\n", - "1570/1570 [==============================] - 0s 285us/step - loss: 0.1864 - acc: 0.8318 - absolute_diff: 0.1783\n", + "3677/3677 [==============================] - 1s 168us/step - loss: 0.2813 - acc: 0.9010 - absolute_diff: 0.1319\n", "Epoch 232/250\n", - "1570/1570 [==============================] - 0s 246us/step - loss: 0.1326 - acc: 0.8739 - absolute_diff: 0.1306\n", + "3677/3677 [==============================] - 1s 166us/step - loss: 0.2714 - acc: 0.9029 - absolute_diff: 0.1275\n", "Epoch 233/250\n", - "1570/1570 [==============================] - 0s 212us/step - loss: 0.1496 - acc: 0.8618 - absolute_diff: 0.1439\n", + "3677/3677 [==============================] - 1s 157us/step - loss: 0.2811 - acc: 0.8964 - absolute_diff: 0.1341\n", "Epoch 234/250\n", - "1570/1570 [==============================] - 0s 279us/step - loss: 0.1356 - acc: 0.8675 - absolute_diff: 0.1363\n", + "3677/3677 [==============================] - 1s 157us/step - loss: 0.2688 - acc: 0.9002 - absolute_diff: 0.1297\n", "Epoch 235/250\n", - "1570/1570 [==============================] - 0s 264us/step - loss: 0.0959 - acc: 0.9210 - absolute_diff: 0.0828\n", + "3677/3677 [==============================] - 1s 164us/step - loss: 0.2791 - acc: 0.9035 - absolute_diff: 0.1289\n", "Epoch 236/250\n", - "1570/1570 [==============================] - 0s 235us/step - loss: 0.0715 - acc: 0.9561 - absolute_diff: 0.0471\n", + "3677/3677 [==============================] - 1s 158us/step - loss: 0.3273 - acc: 0.8825 - absolute_diff: 0.1553\n", "Epoch 237/250\n", - "1570/1570 [==============================] - 0s 251us/step - loss: 0.0730 - acc: 0.9516 - absolute_diff: 0.0529\n", + "3677/3677 [==============================] - 1s 160us/step - loss: 0.3280 - acc: 0.8627 - absolute_diff: 0.1724\n", "Epoch 238/250\n", - "1570/1570 [==============================] - 0s 259us/step - loss: 0.0598 - acc: 0.9656 - absolute_diff: 0.0382\n", + "3677/3677 [==============================] - 1s 161us/step - loss: 0.3113 - acc: 0.8773 - absolute_diff: 0.1610\n", "Epoch 239/250\n", - "1570/1570 [==============================] - 0s 246us/step - loss: 0.0620 - acc: 0.9682 - absolute_diff: 0.0350\n", + "3677/3677 [==============================] - 1s 170us/step - loss: 0.2990 - acc: 0.8890 - absolute_diff: 0.1439\n", "Epoch 240/250\n", - "1570/1570 [==============================] - 0s 250us/step - loss: 0.0643 - acc: 0.9662 - absolute_diff: 0.0376\n", + "3677/3677 [==============================] - 1s 170us/step - loss: 0.2729 - acc: 0.9078 - absolute_diff: 0.1229\n", "Epoch 241/250\n", - "1570/1570 [==============================] - 0s 271us/step - loss: 0.0573 - acc: 0.9688 - absolute_diff: 0.0350\n", + "3677/3677 [==============================] - 1s 173us/step - loss: 0.2869 - acc: 0.8977 - absolute_diff: 0.1352\n", "Epoch 242/250\n", - "1570/1570 [==============================] - 0s 270us/step - loss: 0.0590 - acc: 0.9701 - absolute_diff: 0.0338\n", + "3677/3677 [==============================] - 1s 162us/step - loss: 0.3093 - acc: 0.8708 - absolute_diff: 0.1634\n", "Epoch 243/250\n", - "1570/1570 [==============================] - 0s 246us/step - loss: 0.0582 - acc: 0.9662 - absolute_diff: 0.0369\n", + "3677/3677 [==============================] - 1s 173us/step - loss: 0.3100 - acc: 0.8787 - absolute_diff: 0.1528\n", "Epoch 244/250\n", - "1570/1570 [==============================] - 0s 274us/step - loss: 0.0668 - acc: 0.9624 - absolute_diff: 0.0414\n", + "3677/3677 [==============================] - 1s 167us/step - loss: 0.3230 - acc: 0.8684 - absolute_diff: 0.1694\n", "Epoch 245/250\n", - "1570/1570 [==============================] - 0s 259us/step - loss: 0.0699 - acc: 0.9554 - absolute_diff: 0.0484\n", + "3677/3677 [==============================] - 1s 172us/step - loss: 0.3121 - acc: 0.8700 - absolute_diff: 0.1634\n", "Epoch 246/250\n", - "1570/1570 [==============================] - 0s 295us/step - loss: 0.0671 - acc: 0.9611 - absolute_diff: 0.0420\n", + "3677/3677 [==============================] - 1s 166us/step - loss: 0.3132 - acc: 0.8765 - absolute_diff: 0.1607\n", "Epoch 247/250\n", - "1570/1570 [==============================] - 0s 216us/step - loss: 0.0581 - acc: 0.9707 - absolute_diff: 0.0331\n", + "3677/3677 [==============================] - 1s 166us/step - loss: 0.2874 - acc: 0.8977 - absolute_diff: 0.1343\n", "Epoch 248/250\n", - "1570/1570 [==============================] - 0s 224us/step - loss: 0.0585 - acc: 0.9662 - absolute_diff: 0.0376\n", + "3677/3677 [==============================] - 1s 171us/step - loss: 0.2601 - acc: 0.9089 - absolute_diff: 0.1221\n", "Epoch 249/250\n", - "1570/1570 [==============================] - 0s 240us/step - loss: 0.0674 - acc: 0.9701 - absolute_diff: 0.0344\n", + "3677/3677 [==============================] - 1s 156us/step - loss: 0.2986 - acc: 0.8928 - absolute_diff: 0.1403\n", "Epoch 250/250\n", - "1570/1570 [==============================] - 0s 282us/step - loss: 0.0796 - acc: 0.9446 - absolute_diff: 0.0605\n" + "3677/3677 [==============================] - 1s 176us/step - loss: 0.2860 - acc: 0.8988 - absolute_diff: 0.1343\n" ] }, { "data": { "text/plain": [ - "" + "" ] }, - "execution_count": 7, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -635,16 +635,16 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "(array([[1.]], dtype=float32), array([[1]]))" + "(array([[-0.]], dtype=float32), array([[0]]))" ] }, - "execution_count": 8, + "execution_count": 7, "metadata": {}, "output_type": "execute_result" } @@ -659,16 +659,16 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "0.05796178343949045" + "0.1112319825945064" ] }, - "execution_count": 9, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -679,16 +679,16 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "array([0.94713376])" + "array([0.91378841])" ] }, - "execution_count": 10, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } @@ -702,16 +702,16 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 10, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ - " loss = 0.07728117733458235\n", - " acc = 0.9471337579617835\n", - "rounded_diff = 0.05796178343949045\n" + " loss = 0.2295176668990751\n", + " acc = 0.9137884143548457\n", + "rounded_diff = 0.11123198257829627\n" ] } ], @@ -724,7 +724,7 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 11, "metadata": { "scrolled": true },