回答編集履歴
1
ライブラリ名を修正
answer
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
手元に環境がないので未確認ですが、
|
2
2
|
|
3
3
|
```python
|
4
|
-
from sklearn.preprocessing import LabelBinarizer
|
4
|
+
## from sklearn.preprocessing import LabelBinarizer
|
5
|
+
from sklearn.preprocessing import label_binarize
|
5
6
|
```
|
6
|
-
が必要ではないですか?
|
7
|
+
が必要ではないですか?
|
8
|
+
|
9
|
+
参考:[sklearn.preprocessing.label_binarize](https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.label_binarize.html)
|