Skip to content

Commit 5d283ed

Browse files
committed
Tweak upset plot appearance
1 parent ba688e7 commit 5d283ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/conformist/prediction_dataset.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ def visualize_prediction_stripplot(self,
526526

527527
def visualize_model_sets(self, min_softmax_threshold=0.5, color="black"):
528528
plt.figure()
529+
plt.figure(figsize=(self.FIGURE_WIDTH, 8))
529530

530531
df = self.melt()
531532
cols = [col for col in df.columns if col in self.class_names()]
@@ -549,7 +550,7 @@ def visualize_model_sets(self, min_softmax_threshold=0.5, color="black"):
549550
show_counts="%d",
550551
show_percentages="{:.0%}",
551552
orientation='horizontal',
552-
min_subset_size=2)
553+
min_subset_size=3)
553554
plt.savefig(f'{self.output_dir}/upset.png', bbox_inches='tight')
554555

555556
def prediction_sets_df(self, prediction_sets, export_to_dir=None):

0 commit comments

Comments
 (0)