@classmethod
def from_dict(cls, d):
    """
        Deserialize EpitopePrediction from a dictionary of keywords.
        """
    d = d.copy()
    if 'length' in d:
        del d['length']
    return cls(**d)
