문제

I started working with this network. And I wrote some code, but I am not sure whether I am doing it right or not. here is what I do:

  • First create the network HopefieldNetwork net = new HopefieldNetwork(50).
  • Than add all patterns, with net.addPattern(aPattern) where aPattern is of type BasicMLData and changes in a loop to add all patterns.
  • Now do net.runUntilStable(5000) for training with 5000 iterations max. Is this right?
  • Now we have the trained network. Get output like out = (BasicMLData) net.compute(input)

So is everything OK?

도움이 되었습니까?

해결책

I found the solution.

You have to call setCurrentState then runUntilStable then getCurrentState to get output.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top