You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class ReplayBuffer:
def __init__(self, start_index, end_index, batch_size, is_permed, coin_number, sample_bias=1.0):
"""
:param start_index: start index of the training set on the global data matrices
:param end_index: end index of the training set on the global data matrices
"""
self.__coin_number = coin_number
self.__experiences = [Experience(i) for i in range(start_index, end_index)]
I think it should be replaced with self.__experiences = [Experience(i) for i in range(start_index, end_index+1)], otherwise the length will be 1 item shorter than other objects, e.g., _train_ind is from 0 to 32248.
The text was updated successfully, but these errors were encountered:
The original code I copy pasted here:
I think it should be replaced with
self.__experiences = [Experience(i) for i in range(start_index, end_index+1)]
, otherwise the length will be 1 item shorter than other objects, e.g.,_train_ind
is from 0 to 32248.The text was updated successfully, but these errors were encountered: