Early Diabetes Prediction¶
Credit: AITS Cainvas Community
Photo by EPM Graduation Chamber, Paulista School of Medicine
Diabetes is a serious problem which many people face nowadays and which can lead to other serious health diseases.During the period of Covid-19 we also came to know that the conditions of a diabetic patient is much more critical than a non-diabetic patient.So if we can take help of deep learning to predict the risk of getting diabetic it will be helpful for people.
Import necessary libraries¶
In [1]:
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from sklearn.preprocessing import StandardScaler
from sklearn.model_selection import train_test_split
import keras
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation
from keras.callbacks import ModelCheckpoint
Imorting the dataset¶
In [2]:
df = pd.read_csv('https://cainvas-static.s3.amazonaws.com/media/user_data/cainvas-admin/diabetes.csv')
df.head()
Out[2]:
Pregnancies | Glucose | BloodPressure | SkinThickness | Insulin | BMI | DiabetesPedigreeFunction | Age | Outcome | |
---|---|---|---|---|---|---|---|---|---|
0 | 2 | 138 | 62 | 35 | 0 | 33.6 | 0.127 | 47 | 1 |
1 | 0 | 84 | 82 | 31 | 125 | 38.2 | 0.233 | 23 | 0 |
2 | 0 | 145 | 0 | 0 | 0 | 44.2 | 0.630 | 31 | 1 |
3 | 0 | 135 | 68 | 42 | 250 | 42.3 | 0.365 | 24 | 1 |
4 | 1 | 139 | 62 | 41 | 480 | 40.7 | 0.536 | 21 | 0 |
Data Analysis and Data Cleaning¶
In [3]:
df.info()
<class 'pandas.core.frame.DataFrame'> RangeIndex: 2000 entries, 0 to 1999 Data columns (total 9 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 Pregnancies 2000 non-null int64 1 Glucose 2000 non-null int64 2 BloodPressure 2000 non-null int64 3 SkinThickness 2000 non-null int64 4 Insulin 2000 non-null int64 5 BMI 2000 non-null float64 6 DiabetesPedigreeFunction 2000 non-null float64 7 Age 2000 non-null int64 8 Outcome 2000 non-null int64 dtypes: float64(2), int64(7) memory usage: 140.8 KB
In [4]:
df.duplicated().sum()
df.drop_duplicates(inplace=True)
In [5]:
df.info()
<class 'pandas.core.frame.DataFrame'> Int64Index: 744 entries, 0 to 1568 Data columns (total 9 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 Pregnancies 744 non-null int64 1 Glucose 744 non-null int64 2 BloodPressure 744 non-null int64 3 SkinThickness 744 non-null int64 4 Insulin 744 non-null int64 5 BMI 744 non-null float64 6 DiabetesPedigreeFunction 744 non-null float64 7 Age 744 non-null int64 8 Outcome 744 non-null int64 dtypes: float64(2), int64(7) memory usage: 58.1 KB
In [6]:
columns = ['Glucose', 'BloodPressure', 'SkinThickness', 'Insulin', 'BMI']
for col in columns:
df[col].replace(0, np.NaN, inplace=True)
df.info()
<class 'pandas.core.frame.DataFrame'> Int64Index: 744 entries, 0 to 1568 Data columns (total 9 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 Pregnancies 744 non-null int64 1 Glucose 739 non-null float64 2 BloodPressure 710 non-null float64 3 SkinThickness 529 non-null float64 4 Insulin 385 non-null float64 5 BMI 734 non-null float64 6 DiabetesPedigreeFunction 744 non-null float64 7 Age 744 non-null int64 8 Outcome 744 non-null int64 dtypes: float64(6), int64(3) memory usage: 58.1 KB
In [7]:
df.dropna(inplace=True)
df.info()
<class 'pandas.core.frame.DataFrame'> Int64Index: 381 entries, 1 to 1567 Data columns (total 9 columns): # Column Non-Null Count Dtype --- ------ -------------- ----- 0 Pregnancies 381 non-null int64 1 Glucose 381 non-null float64 2 BloodPressure 381 non-null float64 3 SkinThickness 381 non-null float64 4 Insulin 381 non-null float64 5 BMI 381 non-null float64 6 DiabetesPedigreeFunction 381 non-null float64 7 Age 381 non-null int64 8 Outcome 381 non-null int64 dtypes: float64(6), int64(3) memory usage: 29.8 KB
In [8]:
X = df.drop('Outcome', axis=1)
X = StandardScaler().fit_transform(X)
y = df['Outcome']
Test-Train Split¶
In [9]:
X_train, X_test, y_train, y_test = train_test_split(
X, y, test_size=0.20, random_state=0)
In [10]:
X_train.shape, X_test.shape, y_train.shape, y_test.shape
Out[10]:
((304, 8), (77, 8), (304,), (77,))
Model Architecture¶
In [11]:
model = Sequential()
model.add(Dense(8, activation = 'relu', input_shape = X_train[0].shape))
model.add(Dense(8, activation='relu'))
model.add(Dense(4, activation='relu'))
model.add(Dense(1, activation='sigmoid'))
model.summary()
Model: "sequential" _________________________________________________________________ Layer (type) Output Shape Param # ================================================================= dense (Dense) (None, 8) 72 _________________________________________________________________ dense_1 (Dense) (None, 8) 72 _________________________________________________________________ dense_2 (Dense) (None, 4) 36 _________________________________________________________________ dense_3 (Dense) (None, 1) 5 ================================================================= Total params: 185 Trainable params: 185 Non-trainable params: 0 _________________________________________________________________
Model Training¶
In [12]:
opt = keras.optimizers.Adam(learning_rate=0.0001)
model.compile(optimizer= opt ,loss='binary_crossentropy',metrics=['acc'])
In [13]:
checkpointer = ModelCheckpoint('diabetes.h5', monitor='val_acc', mode='max', verbose=2, save_best_only=True)
history=model.fit(X_train, y_train, batch_size=16, epochs=350, validation_data=(X_test, y_test), callbacks=[checkpointer])
Epoch 1/350 1/19 [>.............................] - ETA: 0s - loss: 0.7265 - acc: 0.4375 Epoch 00001: val_acc improved from -inf to 0.41558, saving model to diabetes.h5 19/19 [==============================] - 0s 7ms/step - loss: 0.7127 - acc: 0.4638 - val_loss: 0.7215 - val_acc: 0.4156 Epoch 2/350 1/19 [>.............................] - ETA: 0s - loss: 0.7185 - acc: 0.3125 Epoch 00002: val_acc did not improve from 0.41558 19/19 [==============================] - 0s 1ms/step - loss: 0.7115 - acc: 0.4671 - val_loss: 0.7199 - val_acc: 0.4156 Epoch 3/350 1/19 [>.............................] - ETA: 0s - loss: 0.7300 - acc: 0.3750 Epoch 00003: val_acc did not improve from 0.41558 19/19 [==============================] - 0s 1ms/step - loss: 0.7103 - acc: 0.4638 - val_loss: 0.7183 - val_acc: 0.4156 Epoch 4/350 1/19 [>.............................] - ETA: 0s - loss: 0.7248 - acc: 0.3125 Epoch 00004: val_acc improved from 0.41558 to 0.42857, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.7092 - acc: 0.4671 - val_loss: 0.7167 - val_acc: 0.4286 Epoch 5/350 1/19 [>.............................] - ETA: 0s - loss: 0.7640 - acc: 0.1875 Epoch 00005: val_acc improved from 0.42857 to 0.46753, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.7081 - acc: 0.4737 - val_loss: 0.7151 - val_acc: 0.4675 Epoch 6/350 1/19 [>.............................] - ETA: 0s - loss: 0.6829 - acc: 0.6250 Epoch 00006: val_acc improved from 0.46753 to 0.50649, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.7071 - acc: 0.4901 - val_loss: 0.7137 - val_acc: 0.5065 Epoch 7/350 1/19 [>.............................] - ETA: 0s - loss: 0.7135 - acc: 0.5000 Epoch 00007: val_acc did not improve from 0.50649 19/19 [==============================] - 0s 1ms/step - loss: 0.7062 - acc: 0.4967 - val_loss: 0.7123 - val_acc: 0.5065 Epoch 8/350 1/19 [>.............................] - ETA: 0s - loss: 0.6914 - acc: 0.5625 Epoch 00008: val_acc improved from 0.50649 to 0.51948, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.7052 - acc: 0.5033 - val_loss: 0.7109 - val_acc: 0.5195 Epoch 9/350 1/19 [>.............................] - ETA: 0s - loss: 0.7173 - acc: 0.5000 Epoch 00009: val_acc did not improve from 0.51948 19/19 [==============================] - 0s 1ms/step - loss: 0.7043 - acc: 0.5164 - val_loss: 0.7096 - val_acc: 0.5195 Epoch 10/350 1/19 [>.............................] - ETA: 0s - loss: 0.7130 - acc: 0.5625 Epoch 00010: val_acc did not improve from 0.51948 19/19 [==============================] - 0s 1ms/step - loss: 0.7034 - acc: 0.5230 - val_loss: 0.7083 - val_acc: 0.5195 Epoch 11/350 1/19 [>.............................] - ETA: 0s - loss: 0.7128 - acc: 0.3750 Epoch 00011: val_acc improved from 0.51948 to 0.53247, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.7026 - acc: 0.5230 - val_loss: 0.7071 - val_acc: 0.5325 Epoch 12/350 1/19 [>.............................] - ETA: 0s - loss: 0.7294 - acc: 0.3750 Epoch 00012: val_acc improved from 0.53247 to 0.55844, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.7017 - acc: 0.5296 - val_loss: 0.7059 - val_acc: 0.5584 Epoch 13/350 1/19 [>.............................] - ETA: 0s - loss: 0.7272 - acc: 0.3125 Epoch 00013: val_acc did not improve from 0.55844 19/19 [==============================] - 0s 1ms/step - loss: 0.7009 - acc: 0.5296 - val_loss: 0.7048 - val_acc: 0.5584 Epoch 14/350 1/19 [>.............................] - ETA: 0s - loss: 0.6896 - acc: 0.5000 Epoch 00014: val_acc improved from 0.55844 to 0.58442, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.7001 - acc: 0.5428 - val_loss: 0.7038 - val_acc: 0.5844 Epoch 15/350 1/19 [>.............................] - ETA: 0s - loss: 0.7082 - acc: 0.5625 Epoch 00015: val_acc did not improve from 0.58442 19/19 [==============================] - 0s 1ms/step - loss: 0.6993 - acc: 0.5461 - val_loss: 0.7027 - val_acc: 0.5844 Epoch 16/350 1/19 [>.............................] - ETA: 0s - loss: 0.7089 - acc: 0.5625 Epoch 00016: val_acc improved from 0.58442 to 0.59740, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6986 - acc: 0.5493 - val_loss: 0.7016 - val_acc: 0.5974 Epoch 17/350 1/19 [>.............................] - ETA: 0s - loss: 0.6908 - acc: 0.5625 Epoch 00017: val_acc improved from 0.59740 to 0.62338, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6978 - acc: 0.5526 - val_loss: 0.7005 - val_acc: 0.6234 Epoch 18/350 1/19 [>.............................] - ETA: 0s - loss: 0.6806 - acc: 0.5625 Epoch 00018: val_acc did not improve from 0.62338 19/19 [==============================] - 0s 1ms/step - loss: 0.6971 - acc: 0.5493 - val_loss: 0.6995 - val_acc: 0.6234 Epoch 19/350 1/19 [>.............................] - ETA: 0s - loss: 0.7229 - acc: 0.5000 Epoch 00019: val_acc improved from 0.62338 to 0.64935, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6964 - acc: 0.5592 - val_loss: 0.6985 - val_acc: 0.6494 Epoch 20/350 1/19 [>.............................] - ETA: 0s - loss: 0.6976 - acc: 0.5625 Epoch 00020: val_acc did not improve from 0.64935 19/19 [==============================] - 0s 1ms/step - loss: 0.6957 - acc: 0.5625 - val_loss: 0.6974 - val_acc: 0.6494 Epoch 21/350 1/19 [>.............................] - ETA: 0s - loss: 0.6837 - acc: 0.6250 Epoch 00021: val_acc did not improve from 0.64935 19/19 [==============================] - 0s 1ms/step - loss: 0.6950 - acc: 0.5691 - val_loss: 0.6965 - val_acc: 0.6494 Epoch 22/350 1/19 [>.............................] - ETA: 0s - loss: 0.6872 - acc: 0.6875 Epoch 00022: val_acc did not improve from 0.64935 19/19 [==============================] - 0s 1ms/step - loss: 0.6943 - acc: 0.5757 - val_loss: 0.6955 - val_acc: 0.6494 Epoch 23/350 1/19 [>.............................] - ETA: 0s - loss: 0.6835 - acc: 0.5625 Epoch 00023: val_acc did not improve from 0.64935 19/19 [==============================] - 0s 1ms/step - loss: 0.6937 - acc: 0.5822 - val_loss: 0.6945 - val_acc: 0.6494 Epoch 24/350 1/19 [>.............................] - ETA: 0s - loss: 0.6932 - acc: 0.5000 Epoch 00024: val_acc did not improve from 0.64935 19/19 [==============================] - 0s 1ms/step - loss: 0.6930 - acc: 0.5789 - val_loss: 0.6935 - val_acc: 0.6494 Epoch 25/350 1/19 [>.............................] - ETA: 0s - loss: 0.6660 - acc: 0.8125 Epoch 00025: val_acc did not improve from 0.64935 19/19 [==============================] - 0s 1ms/step - loss: 0.6923 - acc: 0.5789 - val_loss: 0.6925 - val_acc: 0.6494 Epoch 26/350 1/19 [>.............................] - ETA: 0s - loss: 0.7219 - acc: 0.3750 Epoch 00026: val_acc did not improve from 0.64935 19/19 [==============================] - 0s 1ms/step - loss: 0.6916 - acc: 0.5789 - val_loss: 0.6916 - val_acc: 0.6364 Epoch 27/350 1/19 [>.............................] - ETA: 0s - loss: 0.6647 - acc: 0.8125 Epoch 00027: val_acc did not improve from 0.64935 19/19 [==============================] - 0s 1ms/step - loss: 0.6909 - acc: 0.5855 - val_loss: 0.6906 - val_acc: 0.6234 Epoch 28/350 1/19 [>.............................] - ETA: 0s - loss: 0.6690 - acc: 0.8125 Epoch 00028: val_acc did not improve from 0.64935 19/19 [==============================] - 0s 1ms/step - loss: 0.6903 - acc: 0.5954 - val_loss: 0.6897 - val_acc: 0.6364 Epoch 29/350 1/19 [>.............................] - ETA: 0s - loss: 0.6727 - acc: 0.6250 Epoch 00029: val_acc did not improve from 0.64935 19/19 [==============================] - 0s 1ms/step - loss: 0.6896 - acc: 0.5987 - val_loss: 0.6888 - val_acc: 0.6364 Epoch 30/350 1/19 [>.............................] - ETA: 0s - loss: 0.7221 - acc: 0.4375 Epoch 00030: val_acc did not improve from 0.64935 19/19 [==============================] - 0s 1ms/step - loss: 0.6890 - acc: 0.6151 - val_loss: 0.6878 - val_acc: 0.6494 Epoch 31/350 1/19 [>.............................] - ETA: 0s - loss: 0.6791 - acc: 0.6875 Epoch 00031: val_acc did not improve from 0.64935 19/19 [==============================] - 0s 1ms/step - loss: 0.6884 - acc: 0.6184 - val_loss: 0.6869 - val_acc: 0.6494 Epoch 32/350 1/19 [>.............................] - ETA: 0s - loss: 0.6885 - acc: 0.6875 Epoch 00032: val_acc did not improve from 0.64935 19/19 [==============================] - 0s 1ms/step - loss: 0.6877 - acc: 0.6283 - val_loss: 0.6860 - val_acc: 0.6494 Epoch 33/350 1/19 [>.............................] - ETA: 0s - loss: 0.6879 - acc: 0.6875 Epoch 00033: val_acc did not improve from 0.64935 19/19 [==============================] - 0s 1ms/step - loss: 0.6871 - acc: 0.6283 - val_loss: 0.6850 - val_acc: 0.6494 Epoch 34/350 1/19 [>.............................] - ETA: 0s - loss: 0.6666 - acc: 0.8125 Epoch 00034: val_acc improved from 0.64935 to 0.66234, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6864 - acc: 0.6316 - val_loss: 0.6842 - val_acc: 0.6623 Epoch 35/350 1/19 [>.............................] - ETA: 0s - loss: 0.6734 - acc: 0.5625 Epoch 00035: val_acc improved from 0.66234 to 0.67532, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6858 - acc: 0.6349 - val_loss: 0.6833 - val_acc: 0.6753 Epoch 36/350 1/19 [>.............................] - ETA: 0s - loss: 0.6826 - acc: 0.6875 Epoch 00036: val_acc improved from 0.67532 to 0.68831, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6852 - acc: 0.6414 - val_loss: 0.6824 - val_acc: 0.6883 Epoch 37/350 1/19 [>.............................] - ETA: 0s - loss: 0.6640 - acc: 0.7500 Epoch 00037: val_acc did not improve from 0.68831 19/19 [==============================] - 0s 1ms/step - loss: 0.6845 - acc: 0.6447 - val_loss: 0.6814 - val_acc: 0.6883 Epoch 38/350 1/19 [>.............................] - ETA: 0s - loss: 0.7012 - acc: 0.5000 Epoch 00038: val_acc did not improve from 0.68831 19/19 [==============================] - 0s 1ms/step - loss: 0.6839 - acc: 0.6447 - val_loss: 0.6805 - val_acc: 0.6883 Epoch 39/350 1/19 [>.............................] - ETA: 0s - loss: 0.6729 - acc: 0.6250 Epoch 00039: val_acc improved from 0.68831 to 0.70130, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6832 - acc: 0.6447 - val_loss: 0.6796 - val_acc: 0.7013 Epoch 40/350 1/19 [>.............................] - ETA: 0s - loss: 0.6841 - acc: 0.6250 Epoch 00040: val_acc did not improve from 0.70130 19/19 [==============================] - 0s 1ms/step - loss: 0.6825 - acc: 0.6447 - val_loss: 0.6787 - val_acc: 0.7013 Epoch 41/350 1/19 [>.............................] - ETA: 0s - loss: 0.6921 - acc: 0.5000 Epoch 00041: val_acc did not improve from 0.70130 19/19 [==============================] - 0s 1ms/step - loss: 0.6818 - acc: 0.6447 - val_loss: 0.6776 - val_acc: 0.7013 Epoch 42/350 1/19 [>.............................] - ETA: 0s - loss: 0.6772 - acc: 0.6875 Epoch 00042: val_acc improved from 0.70130 to 0.71429, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6811 - acc: 0.6480 - val_loss: 0.6767 - val_acc: 0.7143 Epoch 43/350 1/19 [>.............................] - ETA: 0s - loss: 0.6603 - acc: 0.7500 Epoch 00043: val_acc improved from 0.71429 to 0.72727, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6804 - acc: 0.6480 - val_loss: 0.6757 - val_acc: 0.7273 Epoch 44/350 1/19 [>.............................] - ETA: 0s - loss: 0.6940 - acc: 0.5625 Epoch 00044: val_acc did not improve from 0.72727 19/19 [==============================] - 0s 1ms/step - loss: 0.6797 - acc: 0.6414 - val_loss: 0.6748 - val_acc: 0.7273 Epoch 45/350 1/19 [>.............................] - ETA: 0s - loss: 0.6825 - acc: 0.5625 Epoch 00045: val_acc did not improve from 0.72727 19/19 [==============================] - 0s 1ms/step - loss: 0.6791 - acc: 0.6414 - val_loss: 0.6738 - val_acc: 0.7273 Epoch 46/350 1/19 [>.............................] - ETA: 0s - loss: 0.6778 - acc: 0.6250 Epoch 00046: val_acc did not improve from 0.72727 19/19 [==============================] - 0s 1ms/step - loss: 0.6784 - acc: 0.6414 - val_loss: 0.6729 - val_acc: 0.7143 Epoch 47/350 1/19 [>.............................] - ETA: 0s - loss: 0.6665 - acc: 0.6875 Epoch 00047: val_acc did not improve from 0.72727 19/19 [==============================] - 0s 1ms/step - loss: 0.6777 - acc: 0.6447 - val_loss: 0.6720 - val_acc: 0.7143 Epoch 48/350 1/19 [>.............................] - ETA: 0s - loss: 0.7062 - acc: 0.4375 Epoch 00048: val_acc did not improve from 0.72727 19/19 [==============================] - 0s 1ms/step - loss: 0.6770 - acc: 0.6480 - val_loss: 0.6710 - val_acc: 0.7143 Epoch 49/350 1/19 [>.............................] - ETA: 0s - loss: 0.6825 - acc: 0.5000 Epoch 00049: val_acc did not improve from 0.72727 19/19 [==============================] - 0s 1ms/step - loss: 0.6763 - acc: 0.6480 - val_loss: 0.6700 - val_acc: 0.7143 Epoch 50/350 1/19 [>.............................] - ETA: 0s - loss: 0.6902 - acc: 0.6250 Epoch 00050: val_acc did not improve from 0.72727 19/19 [==============================] - 0s 1ms/step - loss: 0.6756 - acc: 0.6546 - val_loss: 0.6690 - val_acc: 0.7143 Epoch 51/350 1/19 [>.............................] - ETA: 0s - loss: 0.6792 - acc: 0.6875 Epoch 00051: val_acc did not improve from 0.72727 19/19 [==============================] - 0s 1ms/step - loss: 0.6749 - acc: 0.6579 - val_loss: 0.6680 - val_acc: 0.7143 Epoch 52/350 1/19 [>.............................] - ETA: 0s - loss: 0.6754 - acc: 0.6875 Epoch 00052: val_acc did not improve from 0.72727 19/19 [==============================] - 0s 1ms/step - loss: 0.6743 - acc: 0.6612 - val_loss: 0.6669 - val_acc: 0.7143 Epoch 53/350 1/19 [>.............................] - ETA: 0s - loss: 0.6838 - acc: 0.6250 Epoch 00053: val_acc did not improve from 0.72727 19/19 [==============================] - 0s 1ms/step - loss: 0.6736 - acc: 0.6645 - val_loss: 0.6660 - val_acc: 0.7143 Epoch 54/350 1/19 [>.............................] - ETA: 0s - loss: 0.6826 - acc: 0.5000 Epoch 00054: val_acc did not improve from 0.72727 19/19 [==============================] - 0s 1ms/step - loss: 0.6729 - acc: 0.6645 - val_loss: 0.6650 - val_acc: 0.7143 Epoch 55/350 1/19 [>.............................] - ETA: 0s - loss: 0.6742 - acc: 0.6875 Epoch 00055: val_acc did not improve from 0.72727 19/19 [==============================] - 0s 1ms/step - loss: 0.6722 - acc: 0.6645 - val_loss: 0.6639 - val_acc: 0.7143 Epoch 56/350 1/19 [>.............................] - ETA: 0s - loss: 0.6705 - acc: 0.6250 Epoch 00056: val_acc did not improve from 0.72727 19/19 [==============================] - 0s 1ms/step - loss: 0.6715 - acc: 0.6678 - val_loss: 0.6629 - val_acc: 0.7143 Epoch 57/350 1/19 [>.............................] - ETA: 0s - loss: 0.6776 - acc: 0.6875 Epoch 00057: val_acc did not improve from 0.72727 19/19 [==============================] - 0s 1ms/step - loss: 0.6708 - acc: 0.6678 - val_loss: 0.6618 - val_acc: 0.7143 Epoch 58/350 1/19 [>.............................] - ETA: 0s - loss: 0.6840 - acc: 0.5625 Epoch 00058: val_acc did not improve from 0.72727 19/19 [==============================] - 0s 1ms/step - loss: 0.6700 - acc: 0.6678 - val_loss: 0.6607 - val_acc: 0.7273 Epoch 59/350 1/19 [>.............................] - ETA: 0s - loss: 0.6524 - acc: 0.8125 Epoch 00059: val_acc improved from 0.72727 to 0.74026, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6693 - acc: 0.6645 - val_loss: 0.6596 - val_acc: 0.7403 Epoch 60/350 1/19 [>.............................] - ETA: 0s - loss: 0.6684 - acc: 0.7500 Epoch 00060: val_acc did not improve from 0.74026 19/19 [==============================] - 0s 1ms/step - loss: 0.6685 - acc: 0.6678 - val_loss: 0.6585 - val_acc: 0.7403 Epoch 61/350 1/19 [>.............................] - ETA: 0s - loss: 0.6801 - acc: 0.6250 Epoch 00061: val_acc did not improve from 0.74026 19/19 [==============================] - 0s 1ms/step - loss: 0.6677 - acc: 0.6711 - val_loss: 0.6575 - val_acc: 0.7403 Epoch 62/350 1/19 [>.............................] - ETA: 0s - loss: 0.6451 - acc: 0.8125 Epoch 00062: val_acc did not improve from 0.74026 19/19 [==============================] - 0s 1ms/step - loss: 0.6670 - acc: 0.6743 - val_loss: 0.6563 - val_acc: 0.7403 Epoch 63/350 1/19 [>.............................] - ETA: 0s - loss: 0.6630 - acc: 0.6875 Epoch 00063: val_acc did not improve from 0.74026 19/19 [==============================] - 0s 1ms/step - loss: 0.6662 - acc: 0.6743 - val_loss: 0.6552 - val_acc: 0.7403 Epoch 64/350 1/19 [>.............................] - ETA: 0s - loss: 0.6226 - acc: 0.9375 Epoch 00064: val_acc improved from 0.74026 to 0.75325, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6654 - acc: 0.6711 - val_loss: 0.6540 - val_acc: 0.7532 Epoch 65/350 1/19 [>.............................] - ETA: 0s - loss: 0.6485 - acc: 0.8125 Epoch 00065: val_acc did not improve from 0.75325 19/19 [==============================] - 0s 1ms/step - loss: 0.6646 - acc: 0.6711 - val_loss: 0.6528 - val_acc: 0.7532 Epoch 66/350 1/19 [>.............................] - ETA: 0s - loss: 0.6456 - acc: 0.7500 Epoch 00066: val_acc improved from 0.75325 to 0.76623, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6637 - acc: 0.6711 - val_loss: 0.6517 - val_acc: 0.7662 Epoch 67/350 1/19 [>.............................] - ETA: 0s - loss: 0.6868 - acc: 0.5000 Epoch 00067: val_acc did not improve from 0.76623 19/19 [==============================] - 0s 1ms/step - loss: 0.6629 - acc: 0.6711 - val_loss: 0.6505 - val_acc: 0.7532 Epoch 68/350 1/19 [>.............................] - ETA: 0s - loss: 0.6496 - acc: 0.7500 Epoch 00068: val_acc did not improve from 0.76623 19/19 [==============================] - 0s 1ms/step - loss: 0.6621 - acc: 0.6711 - val_loss: 0.6493 - val_acc: 0.7532 Epoch 69/350 1/19 [>.............................] - ETA: 0s - loss: 0.6758 - acc: 0.6250 Epoch 00069: val_acc did not improve from 0.76623 19/19 [==============================] - 0s 1ms/step - loss: 0.6612 - acc: 0.6711 - val_loss: 0.6481 - val_acc: 0.7532 Epoch 70/350 1/19 [>.............................] - ETA: 0s - loss: 0.6396 - acc: 0.7500 Epoch 00070: val_acc did not improve from 0.76623 19/19 [==============================] - 0s 1ms/step - loss: 0.6604 - acc: 0.6678 - val_loss: 0.6469 - val_acc: 0.7662 Epoch 71/350 1/19 [>.............................] - ETA: 0s - loss: 0.6568 - acc: 0.6875 Epoch 00071: val_acc did not improve from 0.76623 19/19 [==============================] - 0s 1ms/step - loss: 0.6594 - acc: 0.6711 - val_loss: 0.6458 - val_acc: 0.7662 Epoch 72/350 1/19 [>.............................] - ETA: 0s - loss: 0.6666 - acc: 0.5625 Epoch 00072: val_acc did not improve from 0.76623 19/19 [==============================] - 0s 1ms/step - loss: 0.6586 - acc: 0.6743 - val_loss: 0.6445 - val_acc: 0.7662 Epoch 73/350 1/19 [>.............................] - ETA: 0s - loss: 0.6782 - acc: 0.5000 Epoch 00073: val_acc did not improve from 0.76623 19/19 [==============================] - 0s 1ms/step - loss: 0.6577 - acc: 0.6776 - val_loss: 0.6433 - val_acc: 0.7662 Epoch 74/350 1/19 [>.............................] - ETA: 0s - loss: 0.6645 - acc: 0.6875 Epoch 00074: val_acc did not improve from 0.76623 19/19 [==============================] - 0s 1ms/step - loss: 0.6568 - acc: 0.6842 - val_loss: 0.6421 - val_acc: 0.7662 Epoch 75/350 1/19 [>.............................] - ETA: 0s - loss: 0.6528 - acc: 0.6875 Epoch 00075: val_acc improved from 0.76623 to 0.77922, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6558 - acc: 0.6842 - val_loss: 0.6408 - val_acc: 0.7792 Epoch 76/350 1/19 [>.............................] - ETA: 0s - loss: 0.6383 - acc: 0.8125 Epoch 00076: val_acc did not improve from 0.77922 19/19 [==============================] - 0s 1ms/step - loss: 0.6549 - acc: 0.6842 - val_loss: 0.6395 - val_acc: 0.7792 Epoch 77/350 1/19 [>.............................] - ETA: 0s - loss: 0.6399 - acc: 0.6875 Epoch 00077: val_acc improved from 0.77922 to 0.79221, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6539 - acc: 0.6875 - val_loss: 0.6383 - val_acc: 0.7922 Epoch 78/350 1/19 [>.............................] - ETA: 0s - loss: 0.6573 - acc: 0.6875 Epoch 00078: val_acc did not improve from 0.79221 19/19 [==============================] - 0s 1ms/step - loss: 0.6530 - acc: 0.6941 - val_loss: 0.6369 - val_acc: 0.7922 Epoch 79/350 1/19 [>.............................] - ETA: 0s - loss: 0.6803 - acc: 0.5000 Epoch 00079: val_acc did not improve from 0.79221 19/19 [==============================] - 0s 1ms/step - loss: 0.6520 - acc: 0.6974 - val_loss: 0.6356 - val_acc: 0.7922 Epoch 80/350 1/19 [>.............................] - ETA: 0s - loss: 0.6288 - acc: 0.8125 Epoch 00080: val_acc did not improve from 0.79221 19/19 [==============================] - 0s 1ms/step - loss: 0.6510 - acc: 0.7007 - val_loss: 0.6342 - val_acc: 0.7922 Epoch 81/350 1/19 [>.............................] - ETA: 0s - loss: 0.6481 - acc: 0.6875 Epoch 00081: val_acc did not improve from 0.79221 19/19 [==============================] - 0s 1ms/step - loss: 0.6500 - acc: 0.6974 - val_loss: 0.6328 - val_acc: 0.7922 Epoch 82/350 1/19 [>.............................] - ETA: 0s - loss: 0.6401 - acc: 0.7500 Epoch 00082: val_acc improved from 0.79221 to 0.80519, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6489 - acc: 0.6974 - val_loss: 0.6313 - val_acc: 0.8052 Epoch 83/350 1/19 [>.............................] - ETA: 0s - loss: 0.6058 - acc: 0.8125 Epoch 00083: val_acc improved from 0.80519 to 0.81818, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6479 - acc: 0.6941 - val_loss: 0.6298 - val_acc: 0.8182 Epoch 84/350 1/19 [>.............................] - ETA: 0s - loss: 0.6571 - acc: 0.6875 Epoch 00084: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6468 - acc: 0.6974 - val_loss: 0.6284 - val_acc: 0.8182 Epoch 85/350 1/19 [>.............................] - ETA: 0s - loss: 0.6471 - acc: 0.6875 Epoch 00085: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6457 - acc: 0.7039 - val_loss: 0.6270 - val_acc: 0.8182 Epoch 86/350 1/19 [>.............................] - ETA: 0s - loss: 0.6625 - acc: 0.6250 Epoch 00086: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6447 - acc: 0.7072 - val_loss: 0.6254 - val_acc: 0.8182 Epoch 87/350 1/19 [>.............................] - ETA: 0s - loss: 0.6540 - acc: 0.7500 Epoch 00087: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6435 - acc: 0.7072 - val_loss: 0.6240 - val_acc: 0.8182 Epoch 88/350 1/19 [>.............................] - ETA: 0s - loss: 0.6251 - acc: 0.8125 Epoch 00088: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6424 - acc: 0.7138 - val_loss: 0.6224 - val_acc: 0.8182 Epoch 89/350 1/19 [>.............................] - ETA: 0s - loss: 0.6536 - acc: 0.6875 Epoch 00089: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6413 - acc: 0.7171 - val_loss: 0.6207 - val_acc: 0.8052 Epoch 90/350 1/19 [>.............................] - ETA: 0s - loss: 0.6694 - acc: 0.5000 Epoch 00090: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6401 - acc: 0.7204 - val_loss: 0.6192 - val_acc: 0.8052 Epoch 91/350 1/19 [>.............................] - ETA: 0s - loss: 0.6370 - acc: 0.8125 Epoch 00091: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6390 - acc: 0.7204 - val_loss: 0.6177 - val_acc: 0.8052 Epoch 92/350 1/19 [>.............................] - ETA: 0s - loss: 0.6315 - acc: 0.6875 Epoch 00092: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6378 - acc: 0.7237 - val_loss: 0.6161 - val_acc: 0.7922 Epoch 93/350 1/19 [>.............................] - ETA: 0s - loss: 0.6306 - acc: 0.7500 Epoch 00093: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6366 - acc: 0.7270 - val_loss: 0.6144 - val_acc: 0.7922 Epoch 94/350 1/19 [>.............................] - ETA: 0s - loss: 0.6599 - acc: 0.6875 Epoch 00094: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6354 - acc: 0.7336 - val_loss: 0.6129 - val_acc: 0.7922 Epoch 95/350 1/19 [>.............................] - ETA: 0s - loss: 0.6641 - acc: 0.5625 Epoch 00095: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6342 - acc: 0.7368 - val_loss: 0.6112 - val_acc: 0.7922 Epoch 96/350 1/19 [>.............................] - ETA: 0s - loss: 0.6151 - acc: 0.7500 Epoch 00096: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6330 - acc: 0.7434 - val_loss: 0.6095 - val_acc: 0.7922 Epoch 97/350 1/19 [>.............................] - ETA: 0s - loss: 0.6071 - acc: 0.8750 Epoch 00097: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6317 - acc: 0.7467 - val_loss: 0.6078 - val_acc: 0.7922 Epoch 98/350 1/19 [>.............................] - ETA: 0s - loss: 0.7112 - acc: 0.4375 Epoch 00098: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6304 - acc: 0.7467 - val_loss: 0.6062 - val_acc: 0.7922 Epoch 99/350 1/19 [>.............................] - ETA: 0s - loss: 0.6230 - acc: 0.8125 Epoch 00099: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6292 - acc: 0.7467 - val_loss: 0.6045 - val_acc: 0.8052 Epoch 100/350 1/19 [>.............................] - ETA: 0s - loss: 0.5664 - acc: 0.8750 Epoch 00100: val_acc did not improve from 0.81818 19/19 [==============================] - 0s 1ms/step - loss: 0.6279 - acc: 0.7500 - val_loss: 0.6028 - val_acc: 0.8052 Epoch 101/350 1/19 [>.............................] - ETA: 0s - loss: 0.5733 - acc: 0.9375 Epoch 00101: val_acc improved from 0.81818 to 0.83117, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6266 - acc: 0.7533 - val_loss: 0.6011 - val_acc: 0.8312 Epoch 102/350 1/19 [>.............................] - ETA: 0s - loss: 0.5718 - acc: 0.9375 Epoch 00102: val_acc did not improve from 0.83117 19/19 [==============================] - 0s 1ms/step - loss: 0.6254 - acc: 0.7533 - val_loss: 0.5993 - val_acc: 0.8312 Epoch 103/350 1/19 [>.............................] - ETA: 0s - loss: 0.6644 - acc: 0.6875 Epoch 00103: val_acc did not improve from 0.83117 19/19 [==============================] - 0s 1ms/step - loss: 0.6241 - acc: 0.7566 - val_loss: 0.5975 - val_acc: 0.8312 Epoch 104/350 1/19 [>.............................] - ETA: 0s - loss: 0.6357 - acc: 0.8125 Epoch 00104: val_acc did not improve from 0.83117 19/19 [==============================] - 0s 1ms/step - loss: 0.6227 - acc: 0.7599 - val_loss: 0.5958 - val_acc: 0.8312 Epoch 105/350 1/19 [>.............................] - ETA: 0s - loss: 0.6048 - acc: 0.7500 Epoch 00105: val_acc did not improve from 0.83117 19/19 [==============================] - 0s 1ms/step - loss: 0.6214 - acc: 0.7599 - val_loss: 0.5939 - val_acc: 0.8312 Epoch 106/350 1/19 [>.............................] - ETA: 0s - loss: 0.6445 - acc: 0.7500 Epoch 00106: val_acc did not improve from 0.83117 19/19 [==============================] - 0s 1ms/step - loss: 0.6201 - acc: 0.7599 - val_loss: 0.5921 - val_acc: 0.8312 Epoch 107/350 1/19 [>.............................] - ETA: 0s - loss: 0.6119 - acc: 0.7500 Epoch 00107: val_acc did not improve from 0.83117 19/19 [==============================] - 0s 1ms/step - loss: 0.6187 - acc: 0.7632 - val_loss: 0.5903 - val_acc: 0.8312 Epoch 108/350 1/19 [>.............................] - ETA: 0s - loss: 0.5896 - acc: 0.7500 Epoch 00108: val_acc did not improve from 0.83117 19/19 [==============================] - 0s 1ms/step - loss: 0.6174 - acc: 0.7632 - val_loss: 0.5885 - val_acc: 0.8312 Epoch 109/350 1/19 [>.............................] - ETA: 0s - loss: 0.6254 - acc: 0.8125 Epoch 00109: val_acc did not improve from 0.83117 19/19 [==============================] - 0s 1ms/step - loss: 0.6160 - acc: 0.7599 - val_loss: 0.5867 - val_acc: 0.8312 Epoch 110/350 1/19 [>.............................] - ETA: 0s - loss: 0.6450 - acc: 0.7500 Epoch 00110: val_acc did not improve from 0.83117 19/19 [==============================] - 0s 1ms/step - loss: 0.6147 - acc: 0.7632 - val_loss: 0.5847 - val_acc: 0.8312 Epoch 111/350 1/19 [>.............................] - ETA: 0s - loss: 0.6129 - acc: 0.8125 Epoch 00111: val_acc did not improve from 0.83117 19/19 [==============================] - 0s 1ms/step - loss: 0.6133 - acc: 0.7599 - val_loss: 0.5828 - val_acc: 0.8312 Epoch 112/350 1/19 [>.............................] - ETA: 0s - loss: 0.5942 - acc: 0.6875 Epoch 00112: val_acc did not improve from 0.83117 19/19 [==============================] - 0s 1ms/step - loss: 0.6119 - acc: 0.7599 - val_loss: 0.5810 - val_acc: 0.8312 Epoch 113/350 1/19 [>.............................] - ETA: 0s - loss: 0.6289 - acc: 0.7500 Epoch 00113: val_acc improved from 0.83117 to 0.84416, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.6105 - acc: 0.7632 - val_loss: 0.5790 - val_acc: 0.8442 Epoch 114/350 1/19 [>.............................] - ETA: 0s - loss: 0.6080 - acc: 0.7500 Epoch 00114: val_acc did not improve from 0.84416 19/19 [==============================] - 0s 1ms/step - loss: 0.6092 - acc: 0.7599 - val_loss: 0.5771 - val_acc: 0.8442 Epoch 115/350 1/19 [>.............................] - ETA: 0s - loss: 0.6041 - acc: 0.8125 Epoch 00115: val_acc did not improve from 0.84416 19/19 [==============================] - 0s 1ms/step - loss: 0.6077 - acc: 0.7599 - val_loss: 0.5752 - val_acc: 0.8442 Epoch 116/350 1/19 [>.............................] - ETA: 0s - loss: 0.6392 - acc: 0.6875 Epoch 00116: val_acc did not improve from 0.84416 19/19 [==============================] - 0s 1ms/step - loss: 0.6064 - acc: 0.7599 - val_loss: 0.5731 - val_acc: 0.8442 Epoch 117/350 1/19 [>.............................] - ETA: 0s - loss: 0.5858 - acc: 0.8125 Epoch 00117: val_acc did not improve from 0.84416 19/19 [==============================] - 0s 1ms/step - loss: 0.6049 - acc: 0.7599 - val_loss: 0.5712 - val_acc: 0.8442 Epoch 118/350 1/19 [>.............................] - ETA: 0s - loss: 0.6488 - acc: 0.6875 Epoch 00118: val_acc did not improve from 0.84416 19/19 [==============================] - 0s 1ms/step - loss: 0.6035 - acc: 0.7632 - val_loss: 0.5692 - val_acc: 0.8442 Epoch 119/350 1/19 [>.............................] - ETA: 0s - loss: 0.6226 - acc: 0.7500 Epoch 00119: val_acc did not improve from 0.84416 19/19 [==============================] - 0s 1ms/step - loss: 0.6020 - acc: 0.7632 - val_loss: 0.5673 - val_acc: 0.8442 Epoch 120/350 1/19 [>.............................] - ETA: 0s - loss: 0.5584 - acc: 0.8750 Epoch 00120: val_acc did not improve from 0.84416 19/19 [==============================] - 0s 1ms/step - loss: 0.6006 - acc: 0.7632 - val_loss: 0.5653 - val_acc: 0.8442 Epoch 121/350 1/19 [>.............................] - ETA: 0s - loss: 0.5422 - acc: 0.8750 Epoch 00121: val_acc did not improve from 0.84416 19/19 [==============================] - 0s 1ms/step - loss: 0.5992 - acc: 0.7632 - val_loss: 0.5633 - val_acc: 0.8442 Epoch 122/350 1/19 [>.............................] - ETA: 0s - loss: 0.5920 - acc: 0.6875 Epoch 00122: val_acc did not improve from 0.84416 19/19 [==============================] - 0s 1ms/step - loss: 0.5978 - acc: 0.7632 - val_loss: 0.5612 - val_acc: 0.8442 Epoch 123/350 1/19 [>.............................] - ETA: 0s - loss: 0.6420 - acc: 0.7500 Epoch 00123: val_acc did not improve from 0.84416 19/19 [==============================] - 0s 1ms/step - loss: 0.5963 - acc: 0.7664 - val_loss: 0.5592 - val_acc: 0.8442 Epoch 124/350 1/19 [>.............................] - ETA: 0s - loss: 0.5479 - acc: 0.8125 Epoch 00124: val_acc did not improve from 0.84416 19/19 [==============================] - 0s 1ms/step - loss: 0.5949 - acc: 0.7664 - val_loss: 0.5571 - val_acc: 0.8442 Epoch 125/350 1/19 [>.............................] - ETA: 0s - loss: 0.6228 - acc: 0.6875 Epoch 00125: val_acc did not improve from 0.84416 19/19 [==============================] - 0s 1ms/step - loss: 0.5933 - acc: 0.7664 - val_loss: 0.5552 - val_acc: 0.8442 Epoch 126/350 1/19 [>.............................] - ETA: 0s - loss: 0.6360 - acc: 0.5625 Epoch 00126: val_acc improved from 0.84416 to 0.85714, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.5919 - acc: 0.7664 - val_loss: 0.5532 - val_acc: 0.8571 Epoch 127/350 1/19 [>.............................] - ETA: 0s - loss: 0.6171 - acc: 0.7500 Epoch 00127: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5904 - acc: 0.7664 - val_loss: 0.5512 - val_acc: 0.8571 Epoch 128/350 1/19 [>.............................] - ETA: 0s - loss: 0.5780 - acc: 0.9375 Epoch 00128: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5890 - acc: 0.7697 - val_loss: 0.5490 - val_acc: 0.8571 Epoch 129/350 1/19 [>.............................] - ETA: 0s - loss: 0.5959 - acc: 0.7500 Epoch 00129: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5875 - acc: 0.7664 - val_loss: 0.5470 - val_acc: 0.8571 Epoch 130/350 1/19 [>.............................] - ETA: 0s - loss: 0.6313 - acc: 0.6250 Epoch 00130: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5860 - acc: 0.7664 - val_loss: 0.5450 - val_acc: 0.8571 Epoch 131/350 1/19 [>.............................] - ETA: 0s - loss: 0.6053 - acc: 0.5625 Epoch 00131: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5845 - acc: 0.7697 - val_loss: 0.5428 - val_acc: 0.8571 Epoch 132/350 1/19 [>.............................] - ETA: 0s - loss: 0.5278 - acc: 0.7500 Epoch 00132: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5830 - acc: 0.7697 - val_loss: 0.5408 - val_acc: 0.8571 Epoch 133/350 1/19 [>.............................] - ETA: 0s - loss: 0.5517 - acc: 0.8125 Epoch 00133: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5815 - acc: 0.7664 - val_loss: 0.5387 - val_acc: 0.8571 Epoch 134/350 1/19 [>.............................] - ETA: 0s - loss: 0.5435 - acc: 0.8750 Epoch 00134: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5800 - acc: 0.7664 - val_loss: 0.5366 - val_acc: 0.8571 Epoch 135/350 1/19 [>.............................] - ETA: 0s - loss: 0.6241 - acc: 0.7500 Epoch 00135: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5785 - acc: 0.7697 - val_loss: 0.5346 - val_acc: 0.8571 Epoch 136/350 1/19 [>.............................] - ETA: 0s - loss: 0.5567 - acc: 0.8125 Epoch 00136: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5770 - acc: 0.7697 - val_loss: 0.5324 - val_acc: 0.8571 Epoch 137/350 1/19 [>.............................] - ETA: 0s - loss: 0.6778 - acc: 0.6250 Epoch 00137: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5754 - acc: 0.7697 - val_loss: 0.5306 - val_acc: 0.8571 Epoch 138/350 1/19 [>.............................] - ETA: 0s - loss: 0.5541 - acc: 0.8125 Epoch 00138: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5739 - acc: 0.7730 - val_loss: 0.5285 - val_acc: 0.8571 Epoch 139/350 1/19 [>.............................] - ETA: 0s - loss: 0.6112 - acc: 0.6875 Epoch 00139: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5724 - acc: 0.7730 - val_loss: 0.5264 - val_acc: 0.8571 Epoch 140/350 1/19 [>.............................] - ETA: 0s - loss: 0.5126 - acc: 0.8125 Epoch 00140: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5709 - acc: 0.7730 - val_loss: 0.5244 - val_acc: 0.8571 Epoch 141/350 1/19 [>.............................] - ETA: 0s - loss: 0.5443 - acc: 0.8125 Epoch 00141: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5694 - acc: 0.7730 - val_loss: 0.5222 - val_acc: 0.8571 Epoch 142/350 1/19 [>.............................] - ETA: 0s - loss: 0.5137 - acc: 0.8750 Epoch 00142: val_acc did not improve from 0.85714 19/19 [==============================] - 0s 1ms/step - loss: 0.5679 - acc: 0.7763 - val_loss: 0.5202 - val_acc: 0.8571 Epoch 143/350 1/19 [>.............................] - ETA: 0s - loss: 0.5974 - acc: 0.8125 Epoch 00143: val_acc improved from 0.85714 to 0.87013, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.5664 - acc: 0.7763 - val_loss: 0.5182 - val_acc: 0.8701 Epoch 144/350 1/19 [>.............................] - ETA: 0s - loss: 0.5706 - acc: 0.7500 Epoch 00144: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5648 - acc: 0.7763 - val_loss: 0.5162 - val_acc: 0.8701 Epoch 145/350 1/19 [>.............................] - ETA: 0s - loss: 0.5619 - acc: 0.7500 Epoch 00145: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5633 - acc: 0.7763 - val_loss: 0.5142 - val_acc: 0.8701 Epoch 146/350 1/19 [>.............................] - ETA: 0s - loss: 0.5500 - acc: 0.7500 Epoch 00146: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5618 - acc: 0.7763 - val_loss: 0.5122 - val_acc: 0.8701 Epoch 147/350 1/19 [>.............................] - ETA: 0s - loss: 0.5166 - acc: 0.8750 Epoch 00147: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5604 - acc: 0.7763 - val_loss: 0.5101 - val_acc: 0.8701 Epoch 148/350 1/19 [>.............................] - ETA: 0s - loss: 0.6198 - acc: 0.6875 Epoch 00148: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5588 - acc: 0.7763 - val_loss: 0.5082 - val_acc: 0.8701 Epoch 149/350 1/19 [>.............................] - ETA: 0s - loss: 0.5228 - acc: 0.8750 Epoch 00149: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5573 - acc: 0.7763 - val_loss: 0.5062 - val_acc: 0.8701 Epoch 150/350 1/19 [>.............................] - ETA: 0s - loss: 0.6591 - acc: 0.6250 Epoch 00150: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5558 - acc: 0.7763 - val_loss: 0.5042 - val_acc: 0.8701 Epoch 151/350 1/19 [>.............................] - ETA: 0s - loss: 0.5198 - acc: 0.8125 Epoch 00151: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5543 - acc: 0.7730 - val_loss: 0.5022 - val_acc: 0.8701 Epoch 152/350 1/19 [>.............................] - ETA: 0s - loss: 0.4605 - acc: 0.9375 Epoch 00152: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5529 - acc: 0.7697 - val_loss: 0.5003 - val_acc: 0.8701 Epoch 153/350 1/19 [>.............................] - ETA: 0s - loss: 0.5859 - acc: 0.6875 Epoch 00153: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5513 - acc: 0.7697 - val_loss: 0.4984 - val_acc: 0.8701 Epoch 154/350 1/19 [>.............................] - ETA: 0s - loss: 0.5422 - acc: 0.7500 Epoch 00154: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5500 - acc: 0.7697 - val_loss: 0.4963 - val_acc: 0.8701 Epoch 155/350 1/19 [>.............................] - ETA: 0s - loss: 0.6108 - acc: 0.7500 Epoch 00155: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5485 - acc: 0.7697 - val_loss: 0.4945 - val_acc: 0.8701 Epoch 156/350 1/19 [>.............................] - ETA: 0s - loss: 0.5372 - acc: 0.7500 Epoch 00156: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5471 - acc: 0.7730 - val_loss: 0.4927 - val_acc: 0.8701 Epoch 157/350 1/19 [>.............................] - ETA: 0s - loss: 0.6406 - acc: 0.6250 Epoch 00157: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5458 - acc: 0.7730 - val_loss: 0.4909 - val_acc: 0.8701 Epoch 158/350 1/19 [>.............................] - ETA: 0s - loss: 0.4448 - acc: 0.8750 Epoch 00158: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5442 - acc: 0.7730 - val_loss: 0.4891 - val_acc: 0.8701 Epoch 159/350 1/19 [>.............................] - ETA: 0s - loss: 0.5841 - acc: 0.6875 Epoch 00159: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5428 - acc: 0.7730 - val_loss: 0.4871 - val_acc: 0.8701 Epoch 160/350 1/19 [>.............................] - ETA: 0s - loss: 0.6581 - acc: 0.6250 Epoch 00160: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5414 - acc: 0.7730 - val_loss: 0.4853 - val_acc: 0.8701 Epoch 161/350 1/19 [>.............................] - ETA: 0s - loss: 0.4939 - acc: 0.6875 Epoch 00161: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5400 - acc: 0.7730 - val_loss: 0.4834 - val_acc: 0.8701 Epoch 162/350 1/19 [>.............................] - ETA: 0s - loss: 0.5050 - acc: 0.8750 Epoch 00162: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5386 - acc: 0.7763 - val_loss: 0.4817 - val_acc: 0.8701 Epoch 163/350 1/19 [>.............................] - ETA: 0s - loss: 0.6022 - acc: 0.6250 Epoch 00163: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5373 - acc: 0.7730 - val_loss: 0.4799 - val_acc: 0.8701 Epoch 164/350 1/19 [>.............................] - ETA: 0s - loss: 0.6198 - acc: 0.6250 Epoch 00164: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5359 - acc: 0.7730 - val_loss: 0.4781 - val_acc: 0.8701 Epoch 165/350 1/19 [>.............................] - ETA: 0s - loss: 0.5277 - acc: 0.6875 Epoch 00165: val_acc did not improve from 0.87013 19/19 [==============================] - 0s 1ms/step - loss: 0.5346 - acc: 0.7730 - val_loss: 0.4760 - val_acc: 0.8701 Epoch 166/350 1/19 [>.............................] - ETA: 0s - loss: 0.4495 - acc: 0.9375 Epoch 00166: val_acc improved from 0.87013 to 0.88312, saving model to diabetes.h5 19/19 [==============================] - 0s 2ms/step - loss: 0.5332 - acc: 0.7730 - val_loss: 0.4743 - val_acc: 0.8831 Epoch 167/350 1/19 [>.............................] - ETA: 0s - loss: 0.4983 - acc: 0.8125 Epoch 00167: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5319 - acc: 0.7730 - val_loss: 0.4728 - val_acc: 0.8701 Epoch 168/350 1/19 [>.............................] - ETA: 0s - loss: 0.5067 - acc: 0.7500 Epoch 00168: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5306 - acc: 0.7730 - val_loss: 0.4710 - val_acc: 0.8831 Epoch 169/350 1/19 [>.............................] - ETA: 0s - loss: 0.5665 - acc: 0.6250 Epoch 00169: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5293 - acc: 0.7730 - val_loss: 0.4691 - val_acc: 0.8831 Epoch 170/350 1/19 [>.............................] - ETA: 0s - loss: 0.5427 - acc: 0.7500 Epoch 00170: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5280 - acc: 0.7730 - val_loss: 0.4674 - val_acc: 0.8831 Epoch 171/350 1/19 [>.............................] - ETA: 0s - loss: 0.4736 - acc: 0.8125 Epoch 00171: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5266 - acc: 0.7730 - val_loss: 0.4658 - val_acc: 0.8831 Epoch 172/350 1/19 [>.............................] - ETA: 0s - loss: 0.5748 - acc: 0.6875 Epoch 00172: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5254 - acc: 0.7730 - val_loss: 0.4641 - val_acc: 0.8831 Epoch 173/350 1/19 [>.............................] - ETA: 0s - loss: 0.5710 - acc: 0.7500 Epoch 00173: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5241 - acc: 0.7730 - val_loss: 0.4625 - val_acc: 0.8831 Epoch 174/350 1/19 [>.............................] - ETA: 0s - loss: 0.5385 - acc: 0.7500 Epoch 00174: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5229 - acc: 0.7697 - val_loss: 0.4607 - val_acc: 0.8831 Epoch 175/350 1/19 [>.............................] - ETA: 0s - loss: 0.4568 - acc: 0.8750 Epoch 00175: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5217 - acc: 0.7697 - val_loss: 0.4591 - val_acc: 0.8831 Epoch 176/350 1/19 [>.............................] - ETA: 0s - loss: 0.5408 - acc: 0.7500 Epoch 00176: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5205 - acc: 0.7697 - val_loss: 0.4575 - val_acc: 0.8831 Epoch 177/350 1/19 [>.............................] - ETA: 0s - loss: 0.5271 - acc: 0.8125 Epoch 00177: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5193 - acc: 0.7697 - val_loss: 0.4559 - val_acc: 0.8831 Epoch 178/350 1/19 [>.............................] - ETA: 0s - loss: 0.5498 - acc: 0.6875 Epoch 00178: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5180 - acc: 0.7697 - val_loss: 0.4543 - val_acc: 0.8831 Epoch 179/350 1/19 [>.............................] - ETA: 0s - loss: 0.5909 - acc: 0.6875 Epoch 00179: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5169 - acc: 0.7697 - val_loss: 0.4527 - val_acc: 0.8831 Epoch 180/350 1/19 [>.............................] - ETA: 0s - loss: 0.5492 - acc: 0.8125 Epoch 00180: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5157 - acc: 0.7697 - val_loss: 0.4512 - val_acc: 0.8831 Epoch 181/350 1/19 [>.............................] - ETA: 0s - loss: 0.6035 - acc: 0.6250 Epoch 00181: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5145 - acc: 0.7697 - val_loss: 0.4496 - val_acc: 0.8831 Epoch 182/350 1/19 [>.............................] - ETA: 0s - loss: 0.4671 - acc: 0.8125 Epoch 00182: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5134 - acc: 0.7697 - val_loss: 0.4480 - val_acc: 0.8831 Epoch 183/350 1/19 [>.............................] - ETA: 0s - loss: 0.5747 - acc: 0.6875 Epoch 00183: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5123 - acc: 0.7697 - val_loss: 0.4466 - val_acc: 0.8831 Epoch 184/350 1/19 [>.............................] - ETA: 0s - loss: 0.5130 - acc: 0.7500 Epoch 00184: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5110 - acc: 0.7697 - val_loss: 0.4451 - val_acc: 0.8831 Epoch 185/350 1/19 [>.............................] - ETA: 0s - loss: 0.4458 - acc: 0.9375 Epoch 00185: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5100 - acc: 0.7697 - val_loss: 0.4434 - val_acc: 0.8831 Epoch 186/350 1/19 [>.............................] - ETA: 0s - loss: 0.6141 - acc: 0.6250 Epoch 00186: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5090 - acc: 0.7697 - val_loss: 0.4419 - val_acc: 0.8831 Epoch 187/350 1/19 [>.............................] - ETA: 0s - loss: 0.5756 - acc: 0.5625 Epoch 00187: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5077 - acc: 0.7697 - val_loss: 0.4405 - val_acc: 0.8701 Epoch 188/350 1/19 [>.............................] - ETA: 0s - loss: 0.6156 - acc: 0.5625 Epoch 00188: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5066 - acc: 0.7697 - val_loss: 0.4391 - val_acc: 0.8701 Epoch 189/350 1/19 [>.............................] - ETA: 0s - loss: 0.6521 - acc: 0.6250 Epoch 00189: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5056 - acc: 0.7697 - val_loss: 0.4376 - val_acc: 0.8701 Epoch 190/350 1/19 [>.............................] - ETA: 0s - loss: 0.4301 - acc: 0.8750 Epoch 00190: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5045 - acc: 0.7697 - val_loss: 0.4362 - val_acc: 0.8701 Epoch 191/350 1/19 [>.............................] - ETA: 0s - loss: 0.4406 - acc: 0.8750 Epoch 00191: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5034 - acc: 0.7697 - val_loss: 0.4348 - val_acc: 0.8701 Epoch 192/350 1/19 [>.............................] - ETA: 0s - loss: 0.4945 - acc: 0.7500 Epoch 00192: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5023 - acc: 0.7697 - val_loss: 0.4335 - val_acc: 0.8701 Epoch 193/350 1/19 [>.............................] - ETA: 0s - loss: 0.5751 - acc: 0.7500 Epoch 00193: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5013 - acc: 0.7697 - val_loss: 0.4321 - val_acc: 0.8701 Epoch 194/350 1/19 [>.............................] - ETA: 0s - loss: 0.4505 - acc: 0.8750 Epoch 00194: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.5003 - acc: 0.7697 - val_loss: 0.4307 - val_acc: 0.8701 Epoch 195/350 1/19 [>.............................] - ETA: 0s - loss: 0.3181 - acc: 0.9375 Epoch 00195: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4992 - acc: 0.7697 - val_loss: 0.4294 - val_acc: 0.8701 Epoch 196/350 1/19 [>.............................] - ETA: 0s - loss: 0.4754 - acc: 0.8125 Epoch 00196: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4982 - acc: 0.7730 - val_loss: 0.4283 - val_acc: 0.8701 Epoch 197/350 1/19 [>.............................] - ETA: 0s - loss: 0.5620 - acc: 0.6250 Epoch 00197: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4972 - acc: 0.7730 - val_loss: 0.4270 - val_acc: 0.8701 Epoch 198/350 1/19 [>.............................] - ETA: 0s - loss: 0.5328 - acc: 0.8125 Epoch 00198: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4962 - acc: 0.7730 - val_loss: 0.4256 - val_acc: 0.8701 Epoch 199/350 1/19 [>.............................] - ETA: 0s - loss: 0.5777 - acc: 0.6875 Epoch 00199: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4953 - acc: 0.7763 - val_loss: 0.4242 - val_acc: 0.8701 Epoch 200/350 1/19 [>.............................] - ETA: 0s - loss: 0.5253 - acc: 0.8125 Epoch 00200: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4943 - acc: 0.7730 - val_loss: 0.4235 - val_acc: 0.8701 Epoch 201/350 1/19 [>.............................] - ETA: 0s - loss: 0.6870 - acc: 0.5625 Epoch 00201: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4932 - acc: 0.7730 - val_loss: 0.4223 - val_acc: 0.8701 Epoch 202/350 1/19 [>.............................] - ETA: 0s - loss: 0.4674 - acc: 0.8125 Epoch 00202: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4923 - acc: 0.7763 - val_loss: 0.4212 - val_acc: 0.8701 Epoch 203/350 1/19 [>.............................] - ETA: 0s - loss: 0.4212 - acc: 0.9375 Epoch 00203: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4914 - acc: 0.7763 - val_loss: 0.4198 - val_acc: 0.8701 Epoch 204/350 1/19 [>.............................] - ETA: 0s - loss: 0.3756 - acc: 0.8750 Epoch 00204: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4905 - acc: 0.7763 - val_loss: 0.4186 - val_acc: 0.8701 Epoch 205/350 1/19 [>.............................] - ETA: 0s - loss: 0.4684 - acc: 0.8750 Epoch 00205: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4895 - acc: 0.7763 - val_loss: 0.4175 - val_acc: 0.8701 Epoch 206/350 1/19 [>.............................] - ETA: 0s - loss: 0.4031 - acc: 0.9375 Epoch 00206: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4886 - acc: 0.7763 - val_loss: 0.4165 - val_acc: 0.8701 Epoch 207/350 1/19 [>.............................] - ETA: 0s - loss: 0.5728 - acc: 0.5625 Epoch 00207: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4878 - acc: 0.7730 - val_loss: 0.4153 - val_acc: 0.8701 Epoch 208/350 1/19 [>.............................] - ETA: 0s - loss: 0.4950 - acc: 0.7500 Epoch 00208: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4869 - acc: 0.7730 - val_loss: 0.4142 - val_acc: 0.8701 Epoch 209/350 1/19 [>.............................] - ETA: 0s - loss: 0.4124 - acc: 0.8750 Epoch 00209: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4860 - acc: 0.7730 - val_loss: 0.4134 - val_acc: 0.8701 Epoch 210/350 1/19 [>.............................] - ETA: 0s - loss: 0.6112 - acc: 0.6250 Epoch 00210: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4851 - acc: 0.7730 - val_loss: 0.4123 - val_acc: 0.8701 Epoch 211/350 1/19 [>.............................] - ETA: 0s - loss: 0.4647 - acc: 0.8125 Epoch 00211: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4843 - acc: 0.7730 - val_loss: 0.4113 - val_acc: 0.8701 Epoch 212/350 1/19 [>.............................] - ETA: 0s - loss: 0.3501 - acc: 0.8750 Epoch 00212: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4834 - acc: 0.7730 - val_loss: 0.4104 - val_acc: 0.8701 Epoch 213/350 1/19 [>.............................] - ETA: 0s - loss: 0.3578 - acc: 0.8750 Epoch 00213: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4826 - acc: 0.7730 - val_loss: 0.4093 - val_acc: 0.8701 Epoch 214/350 1/19 [>.............................] - ETA: 0s - loss: 0.4415 - acc: 0.8750 Epoch 00214: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4818 - acc: 0.7730 - val_loss: 0.4084 - val_acc: 0.8701 Epoch 215/350 1/19 [>.............................] - ETA: 0s - loss: 0.4480 - acc: 0.8125 Epoch 00215: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4810 - acc: 0.7763 - val_loss: 0.4075 - val_acc: 0.8701 Epoch 216/350 1/19 [>.............................] - ETA: 0s - loss: 0.3678 - acc: 0.9375 Epoch 00216: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4802 - acc: 0.7763 - val_loss: 0.4066 - val_acc: 0.8701 Epoch 217/350 1/19 [>.............................] - ETA: 0s - loss: 0.5837 - acc: 0.6250 Epoch 00217: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4795 - acc: 0.7763 - val_loss: 0.4057 - val_acc: 0.8701 Epoch 218/350 1/19 [>.............................] - ETA: 0s - loss: 0.5161 - acc: 0.6875 Epoch 00218: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4787 - acc: 0.7763 - val_loss: 0.4050 - val_acc: 0.8701 Epoch 219/350 1/19 [>.............................] - ETA: 0s - loss: 0.5897 - acc: 0.6250 Epoch 00219: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4780 - acc: 0.7796 - val_loss: 0.4040 - val_acc: 0.8701 Epoch 220/350 1/19 [>.............................] - ETA: 0s - loss: 0.5759 - acc: 0.5000 Epoch 00220: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4772 - acc: 0.7796 - val_loss: 0.4031 - val_acc: 0.8701 Epoch 221/350 1/19 [>.............................] - ETA: 0s - loss: 0.6110 - acc: 0.5625 Epoch 00221: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4766 - acc: 0.7796 - val_loss: 0.4024 - val_acc: 0.8701 Epoch 222/350 1/19 [>.............................] - ETA: 0s - loss: 0.5683 - acc: 0.6250 Epoch 00222: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4758 - acc: 0.7829 - val_loss: 0.4014 - val_acc: 0.8701 Epoch 223/350 1/19 [>.............................] - ETA: 0s - loss: 0.6313 - acc: 0.6250 Epoch 00223: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4751 - acc: 0.7796 - val_loss: 0.4007 - val_acc: 0.8701 Epoch 224/350 1/19 [>.............................] - ETA: 0s - loss: 0.5414 - acc: 0.6875 Epoch 00224: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4745 - acc: 0.7796 - val_loss: 0.3998 - val_acc: 0.8701 Epoch 225/350 1/19 [>.............................] - ETA: 0s - loss: 0.3343 - acc: 0.9375 Epoch 00225: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4737 - acc: 0.7796 - val_loss: 0.3991 - val_acc: 0.8701 Epoch 226/350 1/19 [>.............................] - ETA: 0s - loss: 0.3095 - acc: 1.0000 Epoch 00226: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4732 - acc: 0.7796 - val_loss: 0.3983 - val_acc: 0.8701 Epoch 227/350 1/19 [>.............................] - ETA: 0s - loss: 0.4359 - acc: 0.8125 Epoch 00227: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4725 - acc: 0.7796 - val_loss: 0.3974 - val_acc: 0.8701 Epoch 228/350 1/19 [>.............................] - ETA: 0s - loss: 0.3409 - acc: 0.9375 Epoch 00228: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4718 - acc: 0.7796 - val_loss: 0.3966 - val_acc: 0.8701 Epoch 229/350 1/19 [>.............................] - ETA: 0s - loss: 0.2170 - acc: 1.0000 Epoch 00229: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4711 - acc: 0.7796 - val_loss: 0.3961 - val_acc: 0.8701 Epoch 230/350 1/19 [>.............................] - ETA: 0s - loss: 0.4342 - acc: 0.7500 Epoch 00230: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4705 - acc: 0.7796 - val_loss: 0.3956 - val_acc: 0.8701 Epoch 231/350 1/19 [>.............................] - ETA: 0s - loss: 0.5318 - acc: 0.7500 Epoch 00231: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4699 - acc: 0.7796 - val_loss: 0.3949 - val_acc: 0.8701 Epoch 232/350 1/19 [>.............................] - ETA: 0s - loss: 0.4637 - acc: 0.8750 Epoch 00232: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4693 - acc: 0.7796 - val_loss: 0.3941 - val_acc: 0.8701 Epoch 233/350 1/19 [>.............................] - ETA: 0s - loss: 0.3240 - acc: 0.8750 Epoch 00233: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4687 - acc: 0.7796 - val_loss: 0.3935 - val_acc: 0.8701 Epoch 234/350 1/19 [>.............................] - ETA: 0s - loss: 0.4591 - acc: 0.8125 Epoch 00234: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4681 - acc: 0.7796 - val_loss: 0.3928 - val_acc: 0.8701 Epoch 235/350 1/19 [>.............................] - ETA: 0s - loss: 0.4977 - acc: 0.6875 Epoch 00235: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4675 - acc: 0.7796 - val_loss: 0.3923 - val_acc: 0.8701 Epoch 236/350 1/19 [>.............................] - ETA: 0s - loss: 0.3373 - acc: 0.8750 Epoch 00236: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4669 - acc: 0.7796 - val_loss: 0.3915 - val_acc: 0.8701 Epoch 237/350 1/19 [>.............................] - ETA: 0s - loss: 0.5604 - acc: 0.6875 Epoch 00237: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4664 - acc: 0.7796 - val_loss: 0.3910 - val_acc: 0.8701 Epoch 238/350 1/19 [>.............................] - ETA: 0s - loss: 0.4719 - acc: 0.8750 Epoch 00238: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4658 - acc: 0.7796 - val_loss: 0.3904 - val_acc: 0.8701 Epoch 239/350 1/19 [>.............................] - ETA: 0s - loss: 0.6452 - acc: 0.6875 Epoch 00239: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4653 - acc: 0.7796 - val_loss: 0.3896 - val_acc: 0.8701 Epoch 240/350 1/19 [>.............................] - ETA: 0s - loss: 0.6400 - acc: 0.6250 Epoch 00240: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4647 - acc: 0.7796 - val_loss: 0.3892 - val_acc: 0.8701 Epoch 241/350 1/19 [>.............................] - ETA: 0s - loss: 0.2740 - acc: 0.9375 Epoch 00241: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4642 - acc: 0.7796 - val_loss: 0.3885 - val_acc: 0.8701 Epoch 242/350 1/19 [>.............................] - ETA: 0s - loss: 0.3843 - acc: 0.7500 Epoch 00242: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4637 - acc: 0.7796 - val_loss: 0.3880 - val_acc: 0.8701 Epoch 243/350 1/19 [>.............................] - ETA: 0s - loss: 0.3774 - acc: 0.8750 Epoch 00243: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4631 - acc: 0.7796 - val_loss: 0.3874 - val_acc: 0.8701 Epoch 244/350 1/19 [>.............................] - ETA: 0s - loss: 0.4511 - acc: 0.8125 Epoch 00244: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4627 - acc: 0.7829 - val_loss: 0.3870 - val_acc: 0.8701 Epoch 245/350 1/19 [>.............................] - ETA: 0s - loss: 0.5055 - acc: 0.7500 Epoch 00245: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4620 - acc: 0.7829 - val_loss: 0.3863 - val_acc: 0.8701 Epoch 246/350 1/19 [>.............................] - ETA: 0s - loss: 0.4750 - acc: 0.7500 Epoch 00246: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4616 - acc: 0.7829 - val_loss: 0.3859 - val_acc: 0.8701 Epoch 247/350 1/19 [>.............................] - ETA: 0s - loss: 0.4457 - acc: 0.8750 Epoch 00247: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4611 - acc: 0.7829 - val_loss: 0.3853 - val_acc: 0.8701 Epoch 248/350 1/19 [>.............................] - ETA: 0s - loss: 0.5660 - acc: 0.6250 Epoch 00248: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4606 - acc: 0.7829 - val_loss: 0.3849 - val_acc: 0.8701 Epoch 249/350 1/19 [>.............................] - ETA: 0s - loss: 0.3058 - acc: 0.9375 Epoch 00249: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4601 - acc: 0.7829 - val_loss: 0.3843 - val_acc: 0.8701 Epoch 250/350 1/19 [>.............................] - ETA: 0s - loss: 0.4450 - acc: 0.7500 Epoch 00250: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4596 - acc: 0.7796 - val_loss: 0.3839 - val_acc: 0.8701 Epoch 251/350 1/19 [>.............................] - ETA: 0s - loss: 0.7229 - acc: 0.6250 Epoch 00251: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4591 - acc: 0.7796 - val_loss: 0.3833 - val_acc: 0.8701 Epoch 252/350 1/19 [>.............................] - ETA: 0s - loss: 0.3571 - acc: 0.8750 Epoch 00252: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4587 - acc: 0.7796 - val_loss: 0.3828 - val_acc: 0.8701 Epoch 253/350 1/19 [>.............................] - ETA: 0s - loss: 0.3441 - acc: 0.9375 Epoch 00253: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4582 - acc: 0.7829 - val_loss: 0.3823 - val_acc: 0.8701 Epoch 254/350 1/19 [>.............................] - ETA: 0s - loss: 0.5605 - acc: 0.6875 Epoch 00254: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4578 - acc: 0.7829 - val_loss: 0.3818 - val_acc: 0.8701 Epoch 255/350 1/19 [>.............................] - ETA: 0s - loss: 0.5489 - acc: 0.6875 Epoch 00255: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4574 - acc: 0.7829 - val_loss: 0.3814 - val_acc: 0.8701 Epoch 256/350 1/19 [>.............................] - ETA: 0s - loss: 0.4798 - acc: 0.8125 Epoch 00256: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4569 - acc: 0.7829 - val_loss: 0.3809 - val_acc: 0.8701 Epoch 257/350 1/19 [>.............................] - ETA: 0s - loss: 0.3308 - acc: 0.9375 Epoch 00257: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4566 - acc: 0.7829 - val_loss: 0.3805 - val_acc: 0.8701 Epoch 258/350 1/19 [>.............................] - ETA: 0s - loss: 0.4027 - acc: 0.8750 Epoch 00258: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4562 - acc: 0.7829 - val_loss: 0.3798 - val_acc: 0.8701 Epoch 259/350 1/19 [>.............................] - ETA: 0s - loss: 0.4884 - acc: 0.7500 Epoch 00259: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4557 - acc: 0.7829 - val_loss: 0.3795 - val_acc: 0.8701 Epoch 260/350 1/19 [>.............................] - ETA: 0s - loss: 0.5900 - acc: 0.6250 Epoch 00260: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4553 - acc: 0.7829 - val_loss: 0.3791 - val_acc: 0.8701 Epoch 261/350 1/19 [>.............................] - ETA: 0s - loss: 0.3276 - acc: 0.9375 Epoch 00261: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4550 - acc: 0.7829 - val_loss: 0.3785 - val_acc: 0.8701 Epoch 262/350 1/19 [>.............................] - ETA: 0s - loss: 0.4639 - acc: 0.7500 Epoch 00262: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4546 - acc: 0.7829 - val_loss: 0.3783 - val_acc: 0.8701 Epoch 263/350 1/19 [>.............................] - ETA: 0s - loss: 0.5560 - acc: 0.6250 Epoch 00263: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4542 - acc: 0.7829 - val_loss: 0.3780 - val_acc: 0.8701 Epoch 264/350 1/19 [>.............................] - ETA: 0s - loss: 0.4921 - acc: 0.8125 Epoch 00264: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4538 - acc: 0.7829 - val_loss: 0.3773 - val_acc: 0.8701 Epoch 265/350 1/19 [>.............................] - ETA: 0s - loss: 0.5256 - acc: 0.7500 Epoch 00265: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4534 - acc: 0.7829 - val_loss: 0.3770 - val_acc: 0.8701 Epoch 266/350 1/19 [>.............................] - ETA: 0s - loss: 0.4008 - acc: 0.8125 Epoch 00266: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4531 - acc: 0.7829 - val_loss: 0.3764 - val_acc: 0.8701 Epoch 267/350 1/19 [>.............................] - ETA: 0s - loss: 0.2547 - acc: 0.9375 Epoch 00267: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4527 - acc: 0.7829 - val_loss: 0.3764 - val_acc: 0.8701 Epoch 268/350 1/19 [>.............................] - ETA: 0s - loss: 0.4872 - acc: 0.7500 Epoch 00268: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4524 - acc: 0.7829 - val_loss: 0.3759 - val_acc: 0.8701 Epoch 269/350 1/19 [>.............................] - ETA: 0s - loss: 0.5057 - acc: 0.7500 Epoch 00269: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4520 - acc: 0.7862 - val_loss: 0.3755 - val_acc: 0.8701 Epoch 270/350 1/19 [>.............................] - ETA: 0s - loss: 0.4200 - acc: 0.8750 Epoch 00270: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4516 - acc: 0.7862 - val_loss: 0.3752 - val_acc: 0.8701 Epoch 271/350 1/19 [>.............................] - ETA: 0s - loss: 0.4173 - acc: 0.8125 Epoch 00271: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4513 - acc: 0.7862 - val_loss: 0.3747 - val_acc: 0.8701 Epoch 272/350 1/19 [>.............................] - ETA: 0s - loss: 0.2967 - acc: 0.9375 Epoch 00272: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4510 - acc: 0.7862 - val_loss: 0.3744 - val_acc: 0.8701 Epoch 273/350 1/19 [>.............................] - ETA: 0s - loss: 0.5961 - acc: 0.5625 Epoch 00273: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4506 - acc: 0.7862 - val_loss: 0.3740 - val_acc: 0.8701 Epoch 274/350 1/19 [>.............................] - ETA: 0s - loss: 0.3850 - acc: 0.8750 Epoch 00274: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4503 - acc: 0.7862 - val_loss: 0.3736 - val_acc: 0.8701 Epoch 275/350 1/19 [>.............................] - ETA: 0s - loss: 0.5639 - acc: 0.8125 Epoch 00275: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4499 - acc: 0.7862 - val_loss: 0.3734 - val_acc: 0.8701 Epoch 276/350 1/19 [>.............................] - ETA: 0s - loss: 0.4507 - acc: 0.8125 Epoch 00276: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4497 - acc: 0.7862 - val_loss: 0.3732 - val_acc: 0.8571 Epoch 277/350 1/19 [>.............................] - ETA: 0s - loss: 0.4798 - acc: 0.8125 Epoch 00277: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4493 - acc: 0.7862 - val_loss: 0.3728 - val_acc: 0.8701 Epoch 278/350 1/19 [>.............................] - ETA: 0s - loss: 0.2575 - acc: 0.8750 Epoch 00278: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4490 - acc: 0.7862 - val_loss: 0.3725 - val_acc: 0.8571 Epoch 279/350 1/19 [>.............................] - ETA: 0s - loss: 0.4271 - acc: 0.6875 Epoch 00279: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4487 - acc: 0.7862 - val_loss: 0.3722 - val_acc: 0.8571 Epoch 280/350 1/19 [>.............................] - ETA: 0s - loss: 0.4752 - acc: 0.6875 Epoch 00280: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4484 - acc: 0.7862 - val_loss: 0.3718 - val_acc: 0.8571 Epoch 281/350 1/19 [>.............................] - ETA: 0s - loss: 0.5763 - acc: 0.6875 Epoch 00281: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4481 - acc: 0.7862 - val_loss: 0.3718 - val_acc: 0.8571 Epoch 282/350 1/19 [>.............................] - ETA: 0s - loss: 0.4638 - acc: 0.8125 Epoch 00282: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4477 - acc: 0.7862 - val_loss: 0.3714 - val_acc: 0.8571 Epoch 283/350 1/19 [>.............................] - ETA: 0s - loss: 0.4376 - acc: 0.8750 Epoch 00283: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4474 - acc: 0.7862 - val_loss: 0.3711 - val_acc: 0.8571 Epoch 284/350 1/19 [>.............................] - ETA: 0s - loss: 0.4535 - acc: 0.7500 Epoch 00284: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4472 - acc: 0.7862 - val_loss: 0.3707 - val_acc: 0.8571 Epoch 285/350 1/19 [>.............................] - ETA: 0s - loss: 0.4714 - acc: 0.8125 Epoch 00285: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4469 - acc: 0.7862 - val_loss: 0.3706 - val_acc: 0.8571 Epoch 286/350 1/19 [>.............................] - ETA: 0s - loss: 0.4306 - acc: 0.8125 Epoch 00286: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4465 - acc: 0.7862 - val_loss: 0.3704 - val_acc: 0.8571 Epoch 287/350 1/19 [>.............................] - ETA: 0s - loss: 0.3448 - acc: 0.8750 Epoch 00287: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4462 - acc: 0.7862 - val_loss: 0.3700 - val_acc: 0.8571 Epoch 288/350 1/19 [>.............................] - ETA: 0s - loss: 0.3380 - acc: 0.9375 Epoch 00288: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4459 - acc: 0.7862 - val_loss: 0.3698 - val_acc: 0.8571 Epoch 289/350 1/19 [>.............................] - ETA: 0s - loss: 0.6418 - acc: 0.6875 Epoch 00289: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4457 - acc: 0.7895 - val_loss: 0.3697 - val_acc: 0.8571 Epoch 290/350 1/19 [>.............................] - ETA: 0s - loss: 0.4342 - acc: 0.8125 Epoch 00290: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4454 - acc: 0.7895 - val_loss: 0.3695 - val_acc: 0.8571 Epoch 291/350 1/19 [>.............................] - ETA: 0s - loss: 0.4016 - acc: 0.8125 Epoch 00291: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4451 - acc: 0.7895 - val_loss: 0.3691 - val_acc: 0.8571 Epoch 292/350 1/19 [>.............................] - ETA: 0s - loss: 0.4073 - acc: 0.8750 Epoch 00292: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4449 - acc: 0.7895 - val_loss: 0.3689 - val_acc: 0.8571 Epoch 293/350 1/19 [>.............................] - ETA: 0s - loss: 0.3505 - acc: 0.8750 Epoch 00293: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4446 - acc: 0.7895 - val_loss: 0.3686 - val_acc: 0.8571 Epoch 294/350 1/19 [>.............................] - ETA: 0s - loss: 0.4521 - acc: 0.8125 Epoch 00294: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4444 - acc: 0.7928 - val_loss: 0.3687 - val_acc: 0.8571 Epoch 295/350 1/19 [>.............................] - ETA: 0s - loss: 0.5832 - acc: 0.6250 Epoch 00295: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4440 - acc: 0.7928 - val_loss: 0.3683 - val_acc: 0.8571 Epoch 296/350 1/19 [>.............................] - ETA: 0s - loss: 0.3217 - acc: 0.8750 Epoch 00296: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4437 - acc: 0.7928 - val_loss: 0.3681 - val_acc: 0.8571 Epoch 297/350 1/19 [>.............................] - ETA: 0s - loss: 0.4049 - acc: 0.8125 Epoch 00297: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4435 - acc: 0.7928 - val_loss: 0.3679 - val_acc: 0.8571 Epoch 298/350 1/19 [>.............................] - ETA: 0s - loss: 0.2985 - acc: 0.8750 Epoch 00298: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4433 - acc: 0.7928 - val_loss: 0.3679 - val_acc: 0.8571 Epoch 299/350 1/19 [>.............................] - ETA: 0s - loss: 0.2381 - acc: 0.9375 Epoch 00299: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4430 - acc: 0.7928 - val_loss: 0.3676 - val_acc: 0.8571 Epoch 300/350 1/19 [>.............................] - ETA: 0s - loss: 0.3835 - acc: 0.8125 Epoch 00300: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4428 - acc: 0.7928 - val_loss: 0.3676 - val_acc: 0.8571 Epoch 301/350 1/19 [>.............................] - ETA: 0s - loss: 0.3439 - acc: 0.8125 Epoch 00301: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4424 - acc: 0.7928 - val_loss: 0.3672 - val_acc: 0.8571 Epoch 302/350 1/19 [>.............................] - ETA: 0s - loss: 0.3694 - acc: 0.7500 Epoch 00302: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4422 - acc: 0.7928 - val_loss: 0.3672 - val_acc: 0.8571 Epoch 303/350 1/19 [>.............................] - ETA: 0s - loss: 0.4530 - acc: 0.8125 Epoch 00303: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4422 - acc: 0.7928 - val_loss: 0.3671 - val_acc: 0.8571 Epoch 304/350 1/19 [>.............................] - ETA: 0s - loss: 0.5311 - acc: 0.6875 Epoch 00304: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4417 - acc: 0.7928 - val_loss: 0.3669 - val_acc: 0.8571 Epoch 305/350 1/19 [>.............................] - ETA: 0s - loss: 0.3275 - acc: 0.9375 Epoch 00305: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4415 - acc: 0.7928 - val_loss: 0.3665 - val_acc: 0.8571 Epoch 306/350 1/19 [>.............................] - ETA: 0s - loss: 0.4704 - acc: 0.8125 Epoch 00306: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4412 - acc: 0.7928 - val_loss: 0.3664 - val_acc: 0.8571 Epoch 307/350 1/19 [>.............................] - ETA: 0s - loss: 0.5559 - acc: 0.6875 Epoch 00307: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4411 - acc: 0.7928 - val_loss: 0.3662 - val_acc: 0.8571 Epoch 308/350 1/19 [>.............................] - ETA: 0s - loss: 0.4178 - acc: 0.8750 Epoch 00308: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4408 - acc: 0.7993 - val_loss: 0.3660 - val_acc: 0.8571 Epoch 309/350 1/19 [>.............................] - ETA: 0s - loss: 0.4677 - acc: 0.8750 Epoch 00309: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4406 - acc: 0.7993 - val_loss: 0.3656 - val_acc: 0.8571 Epoch 310/350 1/19 [>.............................] - ETA: 0s - loss: 0.4763 - acc: 0.8125 Epoch 00310: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4403 - acc: 0.7961 - val_loss: 0.3656 - val_acc: 0.8571 Epoch 311/350 1/19 [>.............................] - ETA: 0s - loss: 0.3961 - acc: 0.8125 Epoch 00311: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4400 - acc: 0.7993 - val_loss: 0.3655 - val_acc: 0.8571 Epoch 312/350 1/19 [>.............................] - ETA: 0s - loss: 0.4405 - acc: 0.8750 Epoch 00312: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4398 - acc: 0.7993 - val_loss: 0.3655 - val_acc: 0.8571 Epoch 313/350 1/19 [>.............................] - ETA: 0s - loss: 0.5457 - acc: 0.8125 Epoch 00313: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4396 - acc: 0.7993 - val_loss: 0.3655 - val_acc: 0.8571 Epoch 314/350 1/19 [>.............................] - ETA: 0s - loss: 0.4726 - acc: 0.7500 Epoch 00314: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4394 - acc: 0.7993 - val_loss: 0.3652 - val_acc: 0.8571 Epoch 315/350 1/19 [>.............................] - ETA: 0s - loss: 0.4461 - acc: 0.8125 Epoch 00315: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4392 - acc: 0.7993 - val_loss: 0.3651 - val_acc: 0.8442 Epoch 316/350 1/19 [>.............................] - ETA: 0s - loss: 0.5481 - acc: 0.7500 Epoch 00316: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4389 - acc: 0.7993 - val_loss: 0.3650 - val_acc: 0.8442 Epoch 317/350 1/19 [>.............................] - ETA: 0s - loss: 0.4083 - acc: 0.7500 Epoch 00317: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4387 - acc: 0.7993 - val_loss: 0.3648 - val_acc: 0.8442 Epoch 318/350 1/19 [>.............................] - ETA: 0s - loss: 0.5096 - acc: 0.6250 Epoch 00318: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4384 - acc: 0.7993 - val_loss: 0.3647 - val_acc: 0.8442 Epoch 319/350 1/19 [>.............................] - ETA: 0s - loss: 0.5061 - acc: 0.7500 Epoch 00319: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4383 - acc: 0.7993 - val_loss: 0.3644 - val_acc: 0.8442 Epoch 320/350 1/19 [>.............................] - ETA: 0s - loss: 0.5078 - acc: 0.7500 Epoch 00320: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4381 - acc: 0.7993 - val_loss: 0.3642 - val_acc: 0.8442 Epoch 321/350 1/19 [>.............................] - ETA: 0s - loss: 0.3622 - acc: 0.8125 Epoch 00321: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4378 - acc: 0.7993 - val_loss: 0.3643 - val_acc: 0.8442 Epoch 322/350 1/19 [>.............................] - ETA: 0s - loss: 0.2323 - acc: 1.0000 Epoch 00322: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4377 - acc: 0.8026 - val_loss: 0.3644 - val_acc: 0.8442 Epoch 323/350 1/19 [>.............................] - ETA: 0s - loss: 0.3834 - acc: 0.8125 Epoch 00323: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4374 - acc: 0.7993 - val_loss: 0.3639 - val_acc: 0.8442 Epoch 324/350 1/19 [>.............................] - ETA: 0s - loss: 0.5519 - acc: 0.7500 Epoch 00324: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4371 - acc: 0.8026 - val_loss: 0.3639 - val_acc: 0.8442 Epoch 325/350 1/19 [>.............................] - ETA: 0s - loss: 0.4712 - acc: 0.7500 Epoch 00325: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4371 - acc: 0.8026 - val_loss: 0.3639 - val_acc: 0.8442 Epoch 326/350 1/19 [>.............................] - ETA: 0s - loss: 0.7210 - acc: 0.6250 Epoch 00326: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4368 - acc: 0.8026 - val_loss: 0.3638 - val_acc: 0.8442 Epoch 327/350 1/19 [>.............................] - ETA: 0s - loss: 0.3830 - acc: 0.8125 Epoch 00327: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4366 - acc: 0.8026 - val_loss: 0.3634 - val_acc: 0.8442 Epoch 328/350 1/19 [>.............................] - ETA: 0s - loss: 0.1952 - acc: 0.9375 Epoch 00328: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4364 - acc: 0.8026 - val_loss: 0.3633 - val_acc: 0.8442 Epoch 329/350 1/19 [>.............................] - ETA: 0s - loss: 0.2832 - acc: 1.0000 Epoch 00329: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4362 - acc: 0.8026 - val_loss: 0.3631 - val_acc: 0.8442 Epoch 330/350 1/19 [>.............................] - ETA: 0s - loss: 0.3782 - acc: 0.8125 Epoch 00330: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4360 - acc: 0.8026 - val_loss: 0.3629 - val_acc: 0.8442 Epoch 331/350 1/19 [>.............................] - ETA: 0s - loss: 0.2878 - acc: 1.0000 Epoch 00331: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4357 - acc: 0.8026 - val_loss: 0.3630 - val_acc: 0.8442 Epoch 332/350 1/19 [>.............................] - ETA: 0s - loss: 0.3752 - acc: 0.8750 Epoch 00332: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4355 - acc: 0.8026 - val_loss: 0.3630 - val_acc: 0.8442 Epoch 333/350 1/19 [>.............................] - ETA: 0s - loss: 0.3086 - acc: 0.9375 Epoch 00333: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4354 - acc: 0.8026 - val_loss: 0.3627 - val_acc: 0.8442 Epoch 334/350 1/19 [>.............................] - ETA: 0s - loss: 0.9274 - acc: 0.5625 Epoch 00334: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4352 - acc: 0.8026 - val_loss: 0.3628 - val_acc: 0.8442 Epoch 335/350 1/19 [>.............................] - ETA: 0s - loss: 0.5393 - acc: 0.7500 Epoch 00335: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4350 - acc: 0.8026 - val_loss: 0.3624 - val_acc: 0.8442 Epoch 336/350 1/19 [>.............................] - ETA: 0s - loss: 0.4214 - acc: 0.8750 Epoch 00336: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4348 - acc: 0.8026 - val_loss: 0.3625 - val_acc: 0.8442 Epoch 337/350 1/19 [>.............................] - ETA: 0s - loss: 0.4791 - acc: 0.6875 Epoch 00337: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4346 - acc: 0.8026 - val_loss: 0.3624 - val_acc: 0.8442 Epoch 338/350 1/19 [>.............................] - ETA: 0s - loss: 0.5595 - acc: 0.6250 Epoch 00338: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4344 - acc: 0.8059 - val_loss: 0.3623 - val_acc: 0.8442 Epoch 339/350 1/19 [>.............................] - ETA: 0s - loss: 0.4070 - acc: 0.8750 Epoch 00339: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4342 - acc: 0.8059 - val_loss: 0.3620 - val_acc: 0.8442 Epoch 340/350 1/19 [>.............................] - ETA: 0s - loss: 0.3162 - acc: 0.8750 Epoch 00340: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4340 - acc: 0.8059 - val_loss: 0.3619 - val_acc: 0.8442 Epoch 341/350 1/19 [>.............................] - ETA: 0s - loss: 0.4961 - acc: 0.6875 Epoch 00341: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4338 - acc: 0.8059 - val_loss: 0.3620 - val_acc: 0.8442 Epoch 342/350 1/19 [>.............................] - ETA: 0s - loss: 0.3694 - acc: 0.8125 Epoch 00342: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4336 - acc: 0.8059 - val_loss: 0.3618 - val_acc: 0.8442 Epoch 343/350 1/19 [>.............................] - ETA: 0s - loss: 0.3855 - acc: 0.8750 Epoch 00343: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4335 - acc: 0.8059 - val_loss: 0.3618 - val_acc: 0.8442 Epoch 344/350 1/19 [>.............................] - ETA: 0s - loss: 0.4286 - acc: 0.8750 Epoch 00344: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4333 - acc: 0.8059 - val_loss: 0.3616 - val_acc: 0.8442 Epoch 345/350 1/19 [>.............................] - ETA: 0s - loss: 0.4710 - acc: 0.7500 Epoch 00345: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4331 - acc: 0.8059 - val_loss: 0.3613 - val_acc: 0.8442 Epoch 346/350 1/19 [>.............................] - ETA: 0s - loss: 0.3752 - acc: 0.8750 Epoch 00346: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4330 - acc: 0.8059 - val_loss: 0.3613 - val_acc: 0.8442 Epoch 347/350 1/19 [>.............................] - ETA: 0s - loss: 0.3625 - acc: 0.8125 Epoch 00347: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4328 - acc: 0.8059 - val_loss: 0.3611 - val_acc: 0.8442 Epoch 348/350 1/19 [>.............................] - ETA: 0s - loss: 0.6369 - acc: 0.7500 Epoch 00348: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4327 - acc: 0.8059 - val_loss: 0.3612 - val_acc: 0.8442 Epoch 349/350 1/19 [>.............................] - ETA: 0s - loss: 0.3840 - acc: 0.8125 Epoch 00349: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4324 - acc: 0.8059 - val_loss: 0.3609 - val_acc: 0.8442 Epoch 350/350 1/19 [>.............................] - ETA: 0s - loss: 0.1822 - acc: 0.9375 Epoch 00350: val_acc did not improve from 0.88312 19/19 [==============================] - 0s 1ms/step - loss: 0.4323 - acc: 0.8059 - val_loss: 0.3608 - val_acc: 0.8442
In [14]:
present_model = keras.models.load_model('diabetes.h5')
present_model.summary()
Model: "sequential" _________________________________________________________________ Layer (type) Output Shape Param # ================================================================= dense (Dense) (None, 8) 72 _________________________________________________________________ dense_1 (Dense) (None, 8) 72 _________________________________________________________________ dense_2 (Dense) (None, 4) 36 _________________________________________________________________ dense_3 (Dense) (None, 1) 5 ================================================================= Total params: 185 Trainable params: 185 Non-trainable params: 0 _________________________________________________________________
In [15]:
print("Accuracy of our model on test data : " , present_model.evaluate(X_test,y_test)[1]*100 , "%")
3/3 [==============================] - 0s 643us/step - loss: 0.4743 - acc: 0.8831 Accuracy of our model on test data : 88.31169009208679 %
Training Plots¶
In [16]:
# plot the training artifacts
plt.plot(history.history['acc'])
plt.plot(history.history['val_acc'])
plt.title('Model accuracy')
plt.ylabel('accuracy')
plt.xlabel('epoch')
plt.legend(['train_acc','val_acc'], loc = 'upper right')
plt.show()
In [17]:
# plot the training artifacts
plt.plot(history.history['loss'])
plt.plot(history.history['val_loss'])
plt.title('Model loss')
plt.ylabel('loss')
plt.xlabel('epoch')
plt.legend(['train_loss','val_loss'], loc = 'upper right')
plt.show()
Accessing the Performance of the Model¶
In [18]:
# predicting on test data.
pred_test = present_model.predict(X_test)
for i in range (len(pred_test)):
if (pred_test[i] < 0.5):
pred_test[i] = 0
else:
pred_test[i] = 1
pred_test = pred_test.astype(int)
In [19]:
def view_result(array):
array = np.array(array)
for i in range(len(array)):
if array[i] == 0:
print("Not Diabetic")
else:
print("Diabetic")
In [20]:
view_result(pred_test[:10])
Not Diabetic Not Diabetic Not Diabetic Diabetic Not Diabetic Diabetic Not Diabetic Not Diabetic Not Diabetic Diabetic
In [21]:
view_result(y_test[:10])
Not Diabetic Not Diabetic Not Diabetic Diabetic Not Diabetic Diabetic Diabetic Not Diabetic Not Diabetic Diabetic
Compiling the model with DeepC Compiler¶
In [22]:
!deepCC diabetes.h5
reading [keras model] from 'diabetes.h5' Saved 'diabetes.onnx' reading onnx model from file diabetes.onnx Model info: ir_vesion : 4 doc : WARN (ONNX): terminal (input/output) dense_input's shape is less than 1. changing it to 1. WARN (ONNX): terminal (input/output) dense_3's shape is less than 1. changing it to 1. WARN (GRAPH): found operator node with the same name (dense_3) as io node. running DNNC graph sanity check ... passed. Writing C++ file diabetes_deepC/diabetes.cpp INFO (ONNX): model files are ready in dir diabetes_deepC g++ -std=c++11 -O3 -I. -I/opt/tljh/user/lib/python3.7/site-packages/deepC-0.13-py3.7-linux-x86_64.egg/deepC/include -isystem /opt/tljh/user/lib/python3.7/site-packages/deepC-0.13-py3.7-linux-x86_64.egg/deepC/packages/eigen-eigen-323c052e1731 diabetes_deepC/diabetes.cpp -o diabetes_deepC/diabetes.exe Model executable diabetes_deepC/diabetes.exe