import pickle


def load_from_file(filename):
    """
    Load an ensemble from a previous one saved to file.
    """
    file_handler = open(filename, 'rb')
    ensemble = pickle.load(file_handler)
    file_handler.close()
    return ensemble