def with_defaults(self, obj):
self.check_valid_keys(obj)<EOL>obj = dict(obj)<EOL>for (key, value) in self.defaults.items():<EOL><INDENT>if key not in obj:<EOL><INDENT>obj[key] = value<EOL><DEDENT><DEDENT>return obj<EOL>
Given a dict of hyperparameter settings, return a dict containing
those settings augmented by the defaults for any keys missing from
the dict.