Explorar o código

Fix dimension issue

DricomDragon %!s(int64=5) %!d(string=hai) anos
pai
achega
8f4edddc63
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      python/lab/neural.py

+ 2 - 2
python/lab/neural.py

@@ -14,6 +14,6 @@ class Network():
 		self.layer1 = np.zeros((self.hiddenLength, self.inputLength))
 		self.bias1 = np.zeros(self.hiddenLength)
 
-		self.layer2 = np.zeros((self.inputLength, self.hiddenLength))
-		self.bias2 = np.zeros(self.inputLength)
+		self.layer2 = np.zeros((self.outputLength, self.hiddenLength))
+		self.bias2 = np.zeros(self.outputLength)