Skip to content

Commit

Permalink
Bugfix for verbose fstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Stone committed Sep 11, 2024
1 parent f4c2bc7 commit badf61a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions obsidian/optimizer/bayesian.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ def fit(self,

if self.verbose >= 1:
print(f'{self.surrogate_type[i]} model has been fit to data'
+ 'with an R2-train-score of: {self.surrogate[i].r2_score:.3g}'
+ (f'and a training-loss of: {self.surrogate[i].loss:.3g}' if self.verbose >= 2 else '')
+ f' with an R2-train-score of: {self.surrogate[i].r2_score:.3g}'
+ (f' and a training-loss of: {self.surrogate[i].loss:.3g}' if self.verbose >= 2 else '')
+ ' for response: {self.y_names[i]}')
return

Expand Down

0 comments on commit badf61a

Please sign in to comment.