def plot_hist(history):
    acc = history.history['acc']
    val_acc = history.history['val_acc']
    loss = history.history['loss']
    val_loss = history.history['val_loss']

    size = range(len(acc))

    plt.plot(size, acc, 'r', "Training Accuracy")
    plt.plot(size, val_acc, 'b', "Validation Accuracy")
    plt.figure()

58b46741d7bfbf6f3fb0e0a1a466cde57428014e
<mask token>

def plot_hist(history):
    acc = history.history['acc']
    val_acc = history.history['val_acc']
    loss = history.history['loss']
    val_loss = history.history['val_loss']
    size = range(len(acc))
    plt.plot(size, acc, 'r', 'Training Accuracy')
    plt.plot(size, val_acc, 'b', 'Validation Accuracy')
    plt.figure()

def plot_hist(history):
    acc = history.history['acc']
    val_acc = history.history['val_acc']
    loss = history.history['loss']
    val_loss = history.history['val_loss']

    size = range(len(acc))

    plt.plot(size, acc, 'r', "Training Accuracy")
    plt.plot(size, val_acc, 'b', "Validation Accuracy")
    plt.figure()
