回答編集履歴
1
一部修正
test
CHANGED
@@ -4,15 +4,15 @@
|
|
4
4
|
|
5
5
|
```Python
|
6
6
|
|
7
|
-
train_df = (train_df - train_mean) / np.maximum(train_std, 1e-
|
7
|
+
train_df = (train_df - train_mean) / np.maximum(train_std, 1e-12)
|
8
8
|
|
9
|
-
val_df = (val_df - train_mean) / np.maximum(train_std, 1e-
|
9
|
+
val_df = (val_df - train_mean) / np.maximum(train_std, 1e-12)
|
10
10
|
|
11
|
-
test_df = (test_df - train_mean) / np.maximum(train_std, 1e-
|
11
|
+
test_df = (test_df - train_mean) / np.maximum(train_std, 1e-12)
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
df_std = (df - train_mean) / np.maximum(train_std, 1e-
|
15
|
+
df_std = (df - train_mean) / np.maximum(train_std, 1e-12)
|
16
16
|
|
17
17
|
```
|
18
18
|
|