回答編集履歴
1
コードを微変更
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
|
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], l
|
47
|
+
ax.legend(handles, [1, 2, 3], framealpha=0.3, scatterpoints=1, loc=2)
|
48
48
|
|
49
49
|
```
|
50
50
|
|