new register objects

state slices are now registers
def __get__(int)
def by_name(str)

✌️
This commit is contained in:
steffen-illium
2021-05-29 10:49:39 +02:00
parent efedce579e
commit 7b4e60b0aa
5 changed files with 57 additions and 31 deletions

View File

@ -104,6 +104,9 @@ class MonitorCallback(BaseCallback):
df = pd.DataFrame(columns=monitor.columns)
for _, row in monitor.iterrows():
df.loc[df.shape[0]] = row
if df is None: # The env exited premature, we catch it.
self.closed = True
return
for column in list(df.columns):
if column != 'episode':
df[f'{column}_roll'] = df[column].rolling(window=50).mean()