| 3 | import pdb |
| 4 | |
| 5 | class RandomSampling(Strategy): |
| 6 | def __init__(self, X, Y, X_te, Y_te, idxs_lb, net, handler, args): |
| 7 | super(RandomSampling, self).__init__(X, Y, X_te, Y_te, idxs_lb, net, handler, args) |
| 8 | |
| 9 | def query(self, n): |
| 10 | inds = np.where(self.idxs_lb==0)[0] |
| 11 | return inds[np.random.permutation(len(inds))][:n] |
nothing calls this directly
no outgoing calls
no test coverage detected