MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_find_min

Method test_find_min

tests/test_hyperopt.py:6–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4
5class 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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected