()
| 94 | |
| 95 | |
| 96 | def test_space_eval(): |
| 97 | space = hp.choice( |
| 98 | "a", |
| 99 | [ |
| 100 | ("case 1", 1 + hp.lognormal("c1", 0, 1)), |
| 101 | ("case 2", hp.uniform("c2", -10, 10)), |
| 102 | ], |
| 103 | ) |
| 104 | |
| 105 | assert space_eval(space, {"a": 0, "c1": 1.0}) == ("case 1", 2.0) |
| 106 | assert space_eval(space, {"a": 1, "c2": 3.5}) == ("case 2", 3.5) |
| 107 | |
| 108 | |
| 109 | def test_set_fmin_rstate(): |
nothing calls this directly
no test coverage detected