Prechádzať zdrojové kódy

Fix dimension issue

DricomDragon 5 rokov pred
rodič
commit
8f4edddc63
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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)