我有一个SyntaxError
没有明显的原因。我知道Python有时会给出错误的一行。但我也检查了之前的线路,没有发现任何错误的线路。你知道吗
import math
import numpy
class neuralNetwork:
def __init__ (self,inputnodes,hiddennodes,outputnodes,learningrate):
#set number of nodes in each input, hidden, output layer
self.inodes= inputnodes
self.hnodes= hiddennodes
self.onodes= outputnodes
```
self.wih = (numpy.random.normal(0.0,pow(self.hnodes,- 0.5),
(self.hnodes,self.inodes))
self.who = (numpy.random.normal(0.0,pow(self.hnodes,- 0.5),
(self.hnodes,self.inodes))
```
# learning rate
elf.lr = learningrate
pass
def train():
pass
def query():
pass
File "<ipython-input-53-3e0b0716fcb1>", line 13 self.who = (numpy.random.normal(0.0,pow(self.hnodes,- 0.5),(self.hnodes,self.inodes)) ^ SyntaxError: invalid syntax
你忘了
)
:相关问题 更多 >
编程相关推荐