Skip to content

Commit

Permalink
improved annealing progress bar description
Browse files Browse the repository at this point in the history
  • Loading branch information
Laouen committed Jun 14, 2024
1 parent efddaa0 commit eba51fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thoi/heuristics/simulated_annealing.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def simulated_annealing(X: np.ndarray,
pbar = trange(max_iterations, leave=False)
for _ in pbar:

pbar.set_description(f'mean(best_energy = {best_energy.mean()}')
pbar.set_description(f'mean({metric.upper()}) = {(1 if largest else -1) * best_energy.mean()}')

# Generate new solution by modifying the current solution
# |batch_size| x |order|
Expand Down

0 comments on commit eba51fd

Please sign in to comment.