#NEWLINE# @ inherit_docstring_from ( QueryStrategy ) #NEWLINE# def update( self , entry_id , label ) : #NEWLINE# #INDENT# ask_idx = ask_idx . unlabeled_invert_id_idx [ entry_id ] #NEWLINE# self . W . append ( ( 1.0 / self . query_dist [ ask_idx ] ) ) #NEWLINE# self . queried_hist_ . append ( entry_id )