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
I encountered an error in a notebook when the learning_starts parameter is smaller than the topk value. Specifically, the error occurs in the following code snippet:
lge.explore(num_timesteps)
It seems related to the default learning_starts parameter of lge being set to 100:
def __init__(... , learning_starts: int = 100, ...)
This causes an error because when the element in topk is smaller than the parameter k, it raises an error:
However, I'm uncertain if there's a specific intention behind hardcoding k = 1000. Could this be a viable solution, or is there a particular reason for the current implementation?
The text was updated successfully, but these errors were encountered:
I encountered an error in a notebook when the learning_starts parameter is smaller than the topk value. Specifically, the error occurs in the following code snippet:
It seems related to the default learning_starts parameter of lge being set to 100:
This causes an error because when the element in topk is smaller than the parameter k, it raises an error:
I was thinking of replacing k with:
k = min(1000, x.shape[0]
However, I'm uncertain if there's a specific intention behind hardcoding k = 1000. Could this be a viable solution, or is there a particular reason for the current implementation?
The text was updated successfully, but these errors were encountered: