import re


def get_score(s: str) -> float:
    """Gets the criterion score from .ckpt formated with ModelCheckpoint

    Parameters
    ----------
    s : str
        Assumption is the last number is the desired number carved in .ckpt

    Returns
    -------
    float
        The criterion float
    """
    return float(re.findall(r"(\d+.\d+).ckpt", s)[0])