Skip to content

Commit

Permalink
only baseline when doing RL
Browse files Browse the repository at this point in the history
  • Loading branch information
landoskape committed May 14, 2024
1 parent a093920 commit f6ec9a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dominoes/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def train(nets, optimizers, dataset, **parameters):
learning_mode = parameters.get("learning_mode")
temperature = parameters.get("temperature", 1.0)
thompson = parameters.get("thompson", True)
baseline = parameters.get("baseline", True)
baseline = parameters.get("baseline", True) and learning_mode == "reinforce"

# process the learning_mode and save conditions
get_loss = learning_mode == "supervised" or parameters.get("save_loss", False)
Expand Down

0 comments on commit f6ec9a2

Please sign in to comment.