HaileyStorm commited on
Commit
9d37a3a
1 Parent(s): a73c8da

Update chess-gpt-eval-contrastive/main.py

Browse files
Files changed (1) hide show
  1. chess-gpt-eval-contrastive/main.py +4 -2
chess-gpt-eval-contrastive/main.py CHANGED
@@ -624,6 +624,8 @@ def play_games(
624
  q_value_delta = curr_q_value - prev_q_value
625
  material_bal = material_balance(board)
626
  player_one.update_linear_probe_targets(curr_q_value, q_value_delta, material_bal)
 
 
627
 
628
  (
629
  game_state,
@@ -677,8 +679,8 @@ def play_games(
677
  )
678
  games_saved += 1
679
 
680
- if update_linear:
681
- player_one.train_linear_probes()
682
 
683
  if update_activations:
684
  if player_one_resignation or player_one_failed_to_find_legal_move:
 
624
  q_value_delta = curr_q_value - prev_q_value
625
  material_bal = material_balance(board)
626
  player_one.update_linear_probe_targets(curr_q_value, q_value_delta, material_bal)
627
+ player_one.train_linear_probes()
628
+ player_one.update_activations("reset")
629
 
630
  (
631
  game_state,
 
679
  )
680
  games_saved += 1
681
 
682
+ #if update_linear:
683
+ # player_one.train_linear_probes()
684
 
685
  if update_activations:
686
  if player_one_resignation or player_one_failed_to_find_legal_move: