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

Method test_information_density

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

Source from the content-addressed store, hash-verified

397 )
398
399 def test_information_density(self):
400 for n_samples in range(1, 10):
401 for n_dim in range(1, 10):
402 X_pool = np.random.rand(n_samples, n_dim)
403 similarities = modAL.density.information_density(X_pool)
404 np.testing.assert_equal(len(similarities), n_samples)
405
406
407class TestDisagreements(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected