@classmethod
def from_yaml_file(cls, filepath: str) ->'ParameterGroup':
    """Creates a :class:`ParameterGroup` from a YAML file.

        Parameters
        ----------
        filepath :
            The path to the YAML file.
        """
    with open(filepath) as f:
        cls = cls.from_yaml(f)
    return cls
