import pickle


def load_training_data(file_name):
    """
    :param file_name: name of saved training data (pickle)
    :return: training data (dict)
    -------------------------------------
    Loads training data metrics and returns
    a dictionary.
    -------------------------------------
    """
    try:
        with open(file_name, 'rb') as f:
            hist = pickle.load(f)
        return hist
    except:
        print("Could not load file ...")
        return None