(self)
return max(0, self.size - self.phi_length)
Return an approximate count of stored state transitions.
Return an approximate count of stored state transitions.
Return an approximate count of stored state transitions .
def __len__(self):
    """Return an approximate count of stored state transitions."""
    # TODO: Properly account for indices which can't be used, as in
    # random_batch's check.
    return max(0, self.size - self.phi_length)
def __len__ ( self ) : # TODO: Properly account for indices which can't be used, as in # random_batch's check. return max ( 0 , self . size - self . phi_length )