Skip to content

Commit

Permalink
added plotting for best model by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tkchafin committed May 9, 2024
1 parent 02b56a5 commit 7404029
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/resistnet/model_optimisation.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,12 @@ def model_average(self, out="", plot=True):
if matrix_r is not None:
matrix_avg += matrix_r * weight

if model_num == 0:
oname = f"{out}.Model-Best"
self.resistance_network.output_and_plot_model(
oname, matrix_r, edge_r
)

if self.report_all:
oname = f"{out}.Model-{model_num}"
self.resistance_network.output_and_plot_model(
Expand Down

0 comments on commit 7404029

Please sign in to comment.