(history)
return img
plotting function that generates accuracy plots

    :param history: is the history object from keras
    :return a plot of validation vs training accuracy
plotting function that generates accuracy plots
plotting function that generates accuracy plots
def plot_acc(history):
    '''
    plotting function that generates accuracy plots

    :param history: is the history object from keras
    :return a plot of validation vs training accuracy
    '''
    img = plt.figure()
    plt.plot(history.history['accuracy'])
    plt.plot(history.history['val_accuracy'])
    plt.title('model accuracy')
    plt.ylabel('accuracy')
    plt.xlabel('epoch')
    plt.legend(['train', 'test'], loc='upper left')
    return img
def plot_acc ( history ) : img = plt . figure ( ) plt . plot ( history . history [ 'accuracy' ] ) plt . plot ( history . history [ 'val_accuracy' ] ) plt . title ( 'model accuracy' ) plt . ylabel ( 'accuracy' ) plt . xlabel ( 'epoch' ) plt . legend ( [ 'train' , 'test' ] , loc = 'upper left' ) return img