Skip to content
Snippets Groups Projects
Commit 628fba24 authored by Charly Lamothe's avatar Charly Lamothe
Browse files

Fix missing title in stage1 loss figure (still on the left; TODO: center the title).

parent e9d1cefa
No related branches found
No related tags found
1 merge request!9Resolve "Experiment pipeline"
......@@ -96,7 +96,7 @@ class Plotter(object):
axes[0].set_xlabel(xlabel)
axes[1].set_xlabel(xlabel)
axes[0].set_ylabel(ylabel)
plt.suptitle(title)
axes[1].set_title(title)
handles, labels = axes[0].get_legend_handles_labels()
legend = axes[0].legend(handles, labels, loc='upper center', bbox_to_anchor=(1.1, -0.15))
fig.savefig(file_path, dpi=fig.dpi, bbox_extra_artists=(legend,), bbox_inches='tight')
......
......@@ -192,7 +192,7 @@ if __name__ == "__main__":
x_value=with_params_extracted_forest_sizes,
xlabel='Number of trees extracted',
ylabel='MSE', # TODO: hardcoded
title='Loss values of {} using best and default hyperparameters'.format(args.dataset_name)
title='Loss values of {}\nusing best and default hyperparameters'.format(args.dataset_name)
)
else:
raise ValueError('This stage number is not supported yet, but it will be!')
......
results/california_housing/stage1/losses.png

70.1 KiB | W: | H:

results/california_housing/stage1/losses.png

91.6 KiB | W: | H:

results/california_housing/stage1/losses.png
results/california_housing/stage1/losses.png
results/california_housing/stage1/losses.png
results/california_housing/stage1/losses.png
  • 2-up
  • Swipe
  • Onion skin
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment