回答編集履歴
1
ライブラリ名を修正
test
CHANGED
@@ -4,8 +4,14 @@
|
|
4
4
|
|
5
5
|
```python
|
6
6
|
|
7
|
-
from sklearn.preprocessing import LabelBinarizer
|
7
|
+
## from sklearn.preprocessing import LabelBinarizer
|
8
|
+
|
9
|
+
from sklearn.preprocessing import label_binarize
|
8
10
|
|
9
11
|
```
|
10
12
|
|
11
13
|
が必要ではないですか?
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
参考:[sklearn.preprocessing.label_binarize](https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.label_binarize.html)
|