Procházet zdrojové kódy

Fix dimension issue

DricomDragon před 5 roky
rodič
revize
8f4edddc63
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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)