Beispiel #1
0
    def does_match_extra_params_space(self, exp_id, params, score) -> bool:
        """Check candidate compatibility with `model_extra_params` template space choices

        Parameters
        ----------
        exp_id: String
            Candidate Experiment ID
        params: Dict
            Candidate "model_extra_params" to compare to the template in :attr:`model_params`
        score: Number
            Value of the candidate Experiment's target metric

        Returns
        -------
        Boolean
            True if candidate `params` fit in `model_extra_params` space choices. Else, False"""
        return does_fit_in_space(dict(model_extra_params=params),
                                 self.mini_spaces["model_extra_params"])
def test_does_fit_in_space(space_fixture, params, does_fit):
    assert does_fit_in_space(params, space_fixture) is does_fit