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

Function uniform

examples/deep_bayesian_active_learning.py:69–70  ·  view source on GitHub ↗
(learner, X, n_instances=1)

Source from the content-addressed store, hash-verified

67 return random_subset[idx]
68
69def uniform(learner, X, n_instances=1):
70 return np.random.choice(range(len(X)), size=n_instances, replace=False)
71
72"""
73Training the ActiveLearner

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…