Skip to content

Commit

Permalink
Update optimize.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 8acc99a commit 4edb917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obsidian/dash/optimize.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def fit_statistics(opt_save, config, filename):
[
dbc.ListGroupItem(['Model Type: ', f'{optimizer.surrogate_type}']),
dbc.ListGroupItem(['Data Name: ', filename]),
dbc.ListGroupItem(['R', html.Sup('2'), ' Score: ', f'{optimizer.surrogate[0].score: .4g}']), # for SOO only
dbc.ListGroupItem(['R', html.Sup('2'), ' Score: ', f'{optimizer.surrogate[0].r2_score: .4g}']), # for SOO only
dbc.ListGroupItem(['Marginal Log Likelihood: ', f'{optimizer.surrogate[0].loss: .4g}']), # for SOO only
], flush=True
)
Expand Down

0 comments on commit 4edb917

Please sign in to comment.