Skip to content

Commit

Permalink
Add action scaler for training continuous action-space dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
takuseno committed Mar 5, 2021
1 parent 15c2ad2 commit 9899b79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions minerva/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ def train(algo_name,
augmentation = DrQPipeline(augmentations, n_mean=n_mean)
params['augmentation'] = augmentation

# add action scaler if continuous action-space
if not dataset.is_action_discrete():
params['action_scaler'] = 'min_max'

# train
algo = create_algo(algo_name, dataset.is_action_discrete(), **params)
algo.fit(train_data,
Expand Down

0 comments on commit 9899b79

Please sign in to comment.