def subselect(self, obj):
        """
        Filter a dict of hyperparameter settings to only those keys defined
        in this HyperparameterDefaults  .
        """
        return dict(
            (key, value) for (key, value)
            in obj.items()
            if key in self.defaults)