MCPcopy Create free account
hub / github.com/cure-lab/deep-active-learning / __init__

Method __init__

query_strategies/margin_sampling.py:6–7  ·  view source on GitHub ↗
(self, X, Y,  X_te, Y_te, idxs_lb, net, handler, args)

Source from the content-addressed store, hash-verified

4
5class MarginSampling(Strategy):
6 def __init__(self, X, Y, X_te, Y_te, idxs_lb, net, handler, args):
7 super(MarginSampling, self).__init__(X, Y, X_te, Y_te, idxs_lb, net, handler, args)
8
9 def query(self, n):
10 idxs_unlabeled = np.arange(self.n_pool)[~self.idxs_lb]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected