MCPcopy Index your code
hub / github.com/hyperopt/hyperopt / test_np_1d_float

Method test_np_1d_float

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

Source from the content-addressed store, hash-verified

237 assert np.all(self.SONify(np.asarray([1, 2, 3])) == [1, 2, 3])
238
239 def test_np_1d_float(self):
240 assert np.all(self.SONify(np.asarray([1, 2, 3.4])) == [1, 2, 3.4])
241
242 def test_np_1d_str(self):
243 assert np.all(self.SONify(np.asarray(["a", "b", "ccc"])) == ["a", "b", "ccc"])

Callers

nothing calls this directly

Calls 1

SONifyMethod · 0.95

Tested by

no test coverage detected