def from_dict(cls, json_object):
    """Constructs a `History` from a Python dictionary of parameters."""
    history = History()
    for (key, value) in six.iteritems(json_object):
      history.__dict__[key] = value
    return history
Constructs a `History` from a Python dictionary of parameters.
trax/supervised/history.py