(self)
return numqdata, cost
re-calculate current active learning progress.
re-calculate current active learning progress.
re - calculate current active learning progress .
def refresh_info(self):
        """re-calculate current active learning progress."""
        numqdata = 0
        cost = 0.0
        for state in self.__state_list:
            numqdata += len(state.get_value('select_index'))
            if 'cost' in state.keys():
                cost += np.sum(state.get_value('cost'))
        self.cost_inall = cost
        self._numqdata = numqdata
        return numqdata, cost
def refresh_info ( self ) : numqdata = 0 cost = 0.0 for state in self . __state_list : numqdata += len ( state . get_value ( 'select_index' ) ) if 'cost' in state . keys ( ) : cost += np . sum ( state . get_value ( 'cost' ) ) self . cost_inall = cost self . _numqdata = numqdata return numqdata , cost