回答編集履歴
1
一部修正
test
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
model.compile(loss=sharpe_loss, optimizer=optimizer)
|
16
16
|
|
17
|
-
initial_weight = model.get_weights() # 追加
|
17
|
+
initial_weights = model.get_weights() # 追加
|
18
18
|
|
19
19
|
--------------------------
|
20
20
|
|
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
for i in range(0, 2010, 500):
|
26
26
|
|
27
|
-
model.set_weights(initial_weight) # 追加
|
27
|
+
model.set_weights(initial_weights) # 追加
|
28
28
|
|
29
29
|
model.fit(re_data[0:1200+i], re_target[0:1200+i],
|
30
30
|
|