質問編集履歴
1
ソースコード修正1
test
CHANGED
File without changes
|
test
CHANGED
@@ -119,9 +119,9 @@
|
|
119
119
|
def backward(self, t):
|
120
120
|
delta = self.y - t
|
121
121
|
|
122
|
-
self.grad_w = np.dot(selfx.T,delta)
|
122
|
+
self.grad_w = np.dot(self.x.T,delta)
|
123
123
|
self.grad_b = np.sum(delta,axis=0)
|
124
|
-
self.grad_x = np.
|
124
|
+
self.grad_x = np.dot(delta,self.w.T)
|
125
125
|
|
126
126
|
gen_layers = [MiddleLayer(n_noise,32),
|
127
127
|
MiddleLayer(32,64),
|