(self)
| 4 | |
| 5 | class TestHyperopt(unittest.TestCase): |
| 6 | def test_find_min(self): |
| 7 | best = fmin( |
| 8 | fn=lambda x: x ** 2, |
| 9 | space=hp.uniform('x', -10, 10), |
| 10 | algo=tpe.suggest, |
| 11 | max_evals=1, |
| 12 | ) |
| 13 | self.assertIn('x', best) |
nothing calls this directly
no outgoing calls
no test coverage detected