def convert_history(history):
    """
    Converts datatypes in a model history dictionary
    to builtin `float`.

    :param history: model history dictionary
    :return: history with values converted to float
    """

    return {k: list(map(float, v)) for k, v in history.items()}