Skip to content

Commit

Permalink
change for r2
Browse files Browse the repository at this point in the history
  • Loading branch information
EdenWuyifan committed May 1, 2024
1 parent 90c71b0 commit 5bf1514
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alpha_automl/pipeline_search/agent_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def step(self, action):
if game_end == 1: # pipeline score over threshold
try:
if self.game.problem == "REGRESSION":
reward = 10 + (100 / self.game.getEvaluation(self.board))
# reward = 10 + (100 / self.game.getEvaluation(self.board))
reward = 10 + (self.game.getEvaluation(self.board)) ** 2 * 100
else:
reward = 10 + (self.game.getEvaluation(self.board)) ** 2 * 100
except Exception as e:
Expand Down

0 comments on commit 5bf1514

Please sign in to comment.