0
신경망에 python과 pybrain을 사용하고 있습니다. 불행히도, 샘플은 정말 크고, 프로그램이 오류를 인쇄 할 때 프로그램이 완료되기 전에 내 기억이 가득차 있습니다.함수 결과를 출력하지 않습니다.
어쨌든 기능에서 오류를 인쇄하지 않습니까?
!!!! 파이썬 오류가 아닙니다. 그것은 pybrain 기능입니다. 예측과 실제 샘플의 차이를 인쇄합니다. 예 : "error : 0.00424".
예측을 할 때마다이 문자열을 인쇄합니다.
여기에 내 코드
ds = SupervisedDataSet(1, 1)
ds.addSample(x,y) <--- in a "for" to add all my sample
net = FeedForwardNetwork()
inp = LinearLayer(1)
h1 = SigmoidLayer(1)
outp = LinearLayer(1)
net.addOutputModule(outp)
net.addInputModule(inp)
net.addModule(h1)
net.addConnection(FullConnection(inp, h1))
net.addConnection(FullConnection(h1, outp))
net.sortModules()
trainer = BackpropTrainer(net, ds)
trainer.trainOnDataset(ds) ###
trainer.testOnData(verbose=True)### Here is where the function print the errors
net.activate((ind,))
내 실수. 파이썬 오류가 아닙니다. 예를 들어 "error : 0.0042"라는 문자열입니다. 그것은 pybrain의 기능입니다. 실제 샘플에 대한 예측을 만들어 예상과 실제의 차이를 인쇄합니다. 모든 사람에게 분명하게 알리기 위해 내 게시물을 수정합니다. – Tasos