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

Method test_consensus_entropy_sampling

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

Source from the content-addressed store, hash-verified

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)):
509 committee = mock.MockCommittee(
510 predict_proba_return=np.random.rand(n_samples, n_classes))
511 modAL.disagreement.consensus_entropy_sampling(
512 committee, np.random.rand(n_samples, n_features))
513 modAL.disagreement.consensus_entropy_sampling(committee, np.random.rand(n_samples, n_features),
514 random_tie_break=True)
515
516 def test_max_disagreement_sampling(self):
517 for n_samples, n_features, n_classes, n_learners in product(range(1, 10), range(1, 10), range(1, 10), range(2, 5)):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected