Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
APJansen committed Apr 17, 2024
1 parent 37e728f commit 26b1daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion n3fit/src/n3fit/hyper_optimization/rewards.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _average_best(fold_losses: np.ndarray, percentage: float = 0.9, axis: int =
-------
float: The average along the specified axis.
"""
num_best = int(np.ceil(percentage * len(sorted_losses)))
num_best = int(np.ceil(percentage * len(fold_losses)))

if np.isnan(fold_losses).any():
log.warning(f"{np.isnan(fold_losses).sum()} replicas have NaNs losses")
Expand Down

0 comments on commit 26b1daf

Please sign in to comment.