回答編集履歴
1
追記
test
CHANGED
@@ -61,3 +61,35 @@
|
|
61
61
|
|
62
62
|
|
63
63
|
```
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
### 追記
|
70
|
+
|
71
|
+
あとから気づいたのですが、元のコードで
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
```python
|
76
|
+
|
77
|
+
y_pred = pd.Series(y_pred)
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
の行を
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
```python
|
88
|
+
|
89
|
+
y_pred = pd.Series(y_pred, index=y_test.index)
|
90
|
+
|
91
|
+
```
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
としてindexを揃えてやれば、あとは特に変更なく比較できそうですね・・・。
|