train.py
def plot_history(fit_loss):
    """
    Creates a plot for the training and validation loss of a keras history object.
    :param fit_loss: keras history object
    """
    plt.plot(fit_loss.history['loss'])
    plt.plot(fit_loss.history['val_loss'])
    plt.title('Mean Squared Error Loss')
    plt.ylabel('mean squared error')
    plt.xlabel('epoch')
    plt.legend(['training set', 'validation set'], loc='upper right')

    Creates a plot for the training and validation loss of a keras history object.
    :param fit_loss: keras history object
    
Creates a plot for the training and validation loss of a keras history object.
Creates a plot for the training and validation loss of a keras history object .
def plot_history(fit_loss):
    plt.plot(fit_loss.history['loss'])
    plt.plot(fit_loss.history['val_loss'])
    plt.title('Mean Squared Error Loss')
    plt.ylabel('mean squared error')
    plt.xlabel('epoch')
    plt.legend(['training set', 'validation set'], loc='upper right')
def plot_history ( fit_loss ) : plt . plot ( fit_loss . history [ 'loss' ] ) plt . plot ( fit_loss . history [ 'val_loss' ] ) plt . title ( 'Mean Squared Error Loss' ) plt . ylabel ( 'mean squared error' ) plt . xlabel ( 'epoch' ) plt . legend ( [ 'training set' , 'validation set' ] , loc = 'upper right' )
Creates a plot for the training and validation loss of a keras history object.
Creates a plot for the training and validation loss of a keras history object .
"""
    Creates a plot for the training and validation loss of a keras history object.
    :param fit_loss: keras history object
    """
fit_loss
keras history object
keras history object