325fae8fbbc16b3c1ca40559bb2a9c783efaf440,libact/query_strategies/active_learning_by_learning.py,ActiveLearningByLearning,calc_query,#ActiveLearningByLearning#,129
Before Change
// might be no more unlabeled data left
return
while self.budget_used < self.T:
q = self.exp4p_.next(
self.calc_reward_fn(),
self.queried_hist_[-1],
self.dataset.data[self.queried_hist_[-1]][1]
)
ask_idx = np.random.choice(
np.arange(
len(self.unlabeled_invert_id_idx)), size=1, p=q
)[0]
ask_id = self.unlabeled_entry_ids[ask_idx]
self.W.append(1./q[ask_idx])
self.queried_hist_.append(ask_id)
if ask_id in unlabeled_entry_ids:
self.budget_used += 1
return
def update(self, entry_id, label):
Calculate the next query after updating the question asked with an
answer.
self.calc_query()
After Change
self.queried_hist_[-1],
self.dataset.data[self.queried_hist_[-1]][1]
)
return
def update(self, entry_id, label):
Calculate the next query after updating the question asked with an
answer.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: ntucllab/libact
Commit Name: 325fae8fbbc16b3c1ca40559bb2a9c783efaf440
Time: 2015-11-25
Author: yangarbiter@gmail.com
File Name: libact/query_strategies/active_learning_by_learning.py
Class Name: ActiveLearningByLearning
Method Name: calc_query
Project Name: ntucllab/libact
Commit Name: e2daba982b9c42a6ead85eaa36c5704b7c7640f3
Time: 2015-10-07
Author: yangarbiter@gmail.com
File Name: libact/query_strategies/active_learning_by_learning.py
Class Name: ActiveLearningByLearning
Method Name: make_query
Project Name: arogozhnikov/einops
Commit Name: 29389772364178f76ccf565917870639cad283bb
Time: 2018-09-27
Author: iamfullofspam@gmail.com
File Name: einops.py
Class Name:
Method Name: get_axes_names