Exemplo n.º 1
0
    def test_override_get_params_dict(self):
        critic = DummyCritic()
        model = _DtModel(critic=critic)
        params = model.get_params_dict(override_params=False)
        assert "critic_score" in params
        assert "dtype" in params["critic_score"]
        assert params["critic_score"]["dtype"] == numpy.int_

        params = model.get_params_dict(override_params=True)
        assert "critic_score" in params
        assert "dtype" in params["critic_score"]
        assert params["critic_score"]["dtype"] == float
Exemplo n.º 2
0
 def test_get_params_dict_content(self):
     params = _DtModel().get_params_dict()
     assert "critic_score" in params
     assert "dtype" in params["critic_score"]
     assert params["critic_score"]["dtype"] == numpy.int_