MCPcopy Create free account
hub / github.com/modAL-python/modAL / test_acquisition_functions

Method test_acquisition_functions

tests/core_tests.py:245–255  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

243
244class TestAcquisitionFunctions(unittest.TestCase):
245 def test_acquisition_functions(self):
246 for n_samples in range(1, 100):
247 mean, std = np.random.rand(100, 1), np.random.rand(100, 1)
248 modAL.acquisition.PI(mean, std, 0, 0)
249 modAL.acquisition.EI(mean, std, 0, 0)
250 modAL.acquisition.UCB(mean, std, 0)
251
252 mean, std = np.random.rand(100, ), np.random.rand(100, )
253 modAL.acquisition.PI(mean, std, 0, 0)
254 modAL.acquisition.EI(mean, std, 0, 0)
255 modAL.acquisition.UCB(mean, std, 0)
256
257 def test_optimizer_PI(self):
258 for n_samples in range(1, 100):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected