Skip to content

Commit 61ce18f

Browse files
tbenjamin-plThomas S. Benjaminrth
authored
DOC Fixes hard coded title in gmm selection example plot (scikit-learn#17418)
Co-authored-by: Thomas S. Benjamin <[email protected]> Co-authored-by: Roman Yurchak <[email protected]>
1 parent c3effe4 commit 61ce18f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/mixture/plot_gmm_selection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494

9595
plt.xticks(())
9696
plt.yticks(())
97-
plt.title('Selected GMM: full model, 2 components')
97+
plt.title(f'Selected GMM: {best_gmm.covariance_type} model, '
98+
f'{best_gmm.n_components} components')
9899
plt.subplots_adjust(hspace=.35, bottom=.02)
99100
plt.show()

0 commit comments

Comments
 (0)