We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dad3de commit eafe78dCopy full SHA for eafe78d
Pilot2/P2B2/p2b2.py
@@ -270,7 +270,7 @@ def train_ac(self):
270
x,y=next(imggen)
271
subset_sample_weight=np.ones((x.shape[0],1))
272
sample_weight=np.zeros((x.shape[0],self.look_back))
273
- sample_weight[:,0:1]=subset_sample_weight
+ sample_weight[:,0:look_forward]=subset_sample_weight
274
loss_data=self.model.train_on_batch(x,y,sample_weight=sample_weight)
275
iter_loss.append(loss_data)
276
file_loss.append(np.array(iter_loss).mean(axis=0))
0 commit comments