You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TrainFlatNetworkResilient.getError() returns the error measured before the last call to TrainFlatNetworkResilient.train().
It would be nice to document that behaviour in the function as it can be surprising.
You can observe the issue by replacing the end of XORFlat.ava with this block. You'll see that the mse is different from the one displayed with getError after the the last iteration.
Since your stopping condition in XORFlat.java is based on getError() it actually runs one unnecessary iteration. So this type of construct is a bit misleading because in some cases the MSE can increase from one epoch to the next and the actual MSE of the network when you leave the loop might not meet the stopping condition. However in general I don't think it will make a huge difference though.
The text was updated successfully, but these errors were encountered:
TrainFlatNetworkResilient.getError() returns the error measured before the last call to TrainFlatNetworkResilient.train().
It would be nice to document that behaviour in the function as it can be surprising.
You can observe the issue by replacing the end of XORFlat.ava with this block. You'll see that the mse is different from the one displayed with getError after the the last iteration.
Since your stopping condition in XORFlat.java is based on getError() it actually runs one unnecessary iteration. So this type of construct is a bit misleading because in some cases the MSE can increase from one epoch to the next and the actual MSE of the network when you leave the loop might not meet the stopping condition. However in general I don't think it will make a huge difference though.
The text was updated successfully, but these errors were encountered: