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

Method test_max_disagreement_sampling

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

Source from the content-addressed store, hash-verified

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)):
518 committee = mock.MockCommittee(
519 n_learners=n_learners, classes_=range(n_classes),
520 vote_proba_return=np.zeros(
521 shape=(n_samples, n_learners, n_classes))
522 )
523 modAL.disagreement.max_disagreement_sampling(
524 committee, np.random.rand(n_samples, n_features))
525 modAL.disagreement.max_disagreement_sampling(committee, np.random.rand(n_samples, n_features),
526 random_tie_break=True)
527
528 def test_max_std_sampling(self):
529 for n_samples, n_features in product(range(1, 10), range(1, 10)):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected