Skip to content

Commit

Permalink
Update bayesian.py: revise 'score' attribute in surrogate to 'r2_scor…
Browse files Browse the repository at this point in the history
…e' to avoid conflict with instance method score()
  • Loading branch information
xuyuting authored Aug 15, 2024
1 parent bbb447f commit 8acc99a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obsidian/optimizer/bayesian.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def fit(self,

if self.verbose > 0:
print(f'{self.surrogate_type[i]} model has been fit \
to data with a train-score of: {self.surrogate[i].score:.3g} for response: {self.y_names[i]}')
to data with a train-score of: {self.surrogate[i].r2_score:.3g} for response: {self.y_names[i]}')
return

def save_state(self) -> dict:
Expand Down

0 comments on commit 8acc99a

Please sign in to comment.