import matplotlib.pyplot as plt # plotting
import numpy as np# linear algebra


def plot_loss(epochs, results_folder, loss_list, loss_f,  loss_type):
    x_grid = list(range(epochs))
    plt.title(loss_type+' Losses Across Epochs')
    plt.ylabel('MSE Loss')
    plt.xlabel('Epochs')
    plt.xticks(x_grid)
    plt.plot(loss_list)
    fig_path =  results_folder + loss_type+ 'loss'
    plt.savefig(fig_path)
    #plt.show()
    plt.close('all')

d89ecfcde0578920c12598f232cb4f592d6eb844
<mask token>

<mask token>


def plot_loss(epochs, results_folder, loss_list, loss_f, loss_type):
    x_grid = list(range(epochs))
    plt.title(loss_type + ' Losses Across Epochs')
    plt.ylabel('MSE Loss')
    plt.xlabel('Epochs')
    plt.xticks(x_grid)
    plt.plot(loss_list)
    fig_path = results_folder + loss_type + 'loss'
    plt.savefig(fig_path)
    plt.close('all')

import matplotlib.pyplot as plt
import numpy as np


def plot_loss(epochs, results_folder, loss_list, loss_f, loss_type):
    x_grid = list(range(epochs))
    plt.title(loss_type + ' Losses Across Epochs')
    plt.ylabel('MSE Loss')
    plt.xlabel('Epochs')
    plt.xticks(x_grid)
    plt.plot(loss_list)
    fig_path = results_folder + loss_type + 'loss'
    plt.savefig(fig_path)
    plt.close('all')

import matplotlib.pyplot as plt # plotting
import numpy as np# linear algebra


def plot_loss(epochs, results_folder, loss_list, loss_f,  loss_type):
    x_grid = list(range(epochs))
    plt.title(loss_type+' Losses Across Epochs')
    plt.ylabel('MSE Loss')
    plt.xlabel('Epochs')
    plt.xticks(x_grid)
    plt.plot(loss_list)
    fig_path =  results_folder + loss_type+ 'loss'
    plt.savefig(fig_path)
    #plt.show()
    plt.close('all')
