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

Method test_vote_entropy_sampling

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

Source from the content-addressed store, hash-verified

496 returned_KL_disagreement, true_KL_disagreement)
497
498 def test_vote_entropy_sampling(self):
499 for n_samples, n_features, n_classes in product(range(1, 10), range(1, 10), range(1, 10)):
500 committee = mock.MockCommittee(classes_=np.asarray(range(n_classes)),
501 vote_return=np.zeros(shape=(n_samples, n_classes), dtype=np.int16))
502 modAL.disagreement.vote_entropy_sampling(
503 committee, np.random.rand(n_samples, n_features))
504 modAL.disagreement.vote_entropy_sampling(committee, np.random.rand(n_samples, n_features),
505 random_tie_break=True)
506
507 def test_consensus_entropy_sampling(self):
508 for n_samples, n_features, n_classes in product(range(1, 10), range(1, 10), range(1, 10)):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected