回答編集履歴

1

コードを微変更

2021/01/27 14:36

投稿

etherbeg
etherbeg

スコア1195

test CHANGED
@@ -40,11 +40,11 @@
40
40
 
41
41
  ```python
42
42
 
43
- ax = plot_decision_regions(X=X.values, y=y.values,clf=clf, legend=2)
43
+ ax = plot_decision_regions(X=X.values, y=y.values,clf=clf)
44
44
 
45
45
  handles, labels = ax.get_legend_handles_labels()
46
46
 
47
- ax.legend(handles, [1, 2, 3], loc='upper left')
47
+ ax.legend(handles, [1, 2, 3], framealpha=0.3, scatterpoints=1, loc=2)
48
48
 
49
49
  ```
50
50