MCPcopy
hub / github.com/hyperopt/hyperopt / test_np_2d_float

Method test_np_2d_float

hyperopt/tests/test_base.py:248–249  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

246 assert np.all(self.SONify(np.asarray([[1, 2], [3, 4]])) == [[1, 2], [3, 4]])
247
248 def test_np_2d_float(self):
249 assert np.all(self.SONify(np.asarray([[1, 2], [3, 4.5]])) == [[1, 2], [3, 4.5]])
250
251 def test_nested_w_bool(self):
252 thing = dict(a=1, b="2", c=True, d=False, e=int(3), f=[1])

Callers

nothing calls this directly

Calls 1

SONifyMethod · 0.95

Tested by

no test coverage detected