<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_file(cls, filepath):
 """Read the configuration parameters from a Yaml file."""

        with open(filepath, "rt") as fh:
            return cls(**yaml.safe_load(fh))