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
Hi there,
I think the mean-square error calculation might have a problem. It doesn't seem to be accumulating values. That swift syntax is a little unfamiliar to me, so I tried typing it out verbosely:
var errorSum = Float(0)
for x in 0 ..< real.count {
let error = (real[x] - target[x]) * (real[x] - target[x])
errorSum += error
}
errorSum /= Float(real.count)
... and the result was different.
Hope this helps your project, apologies if I have got it wrong, best wishes,
Simon.
The text was updated successfully, but these errors were encountered:
Hi there,
I think the mean-square error calculation might have a problem. It doesn't seem to be accumulating values. That swift syntax is a little unfamiliar to me, so I tried typing it out verbosely:
... and the result was different.
Hope this helps your project, apologies if I have got it wrong, best wishes,
Simon.
The text was updated successfully, but these errors were encountered: