Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

learn.Evaluation() Least Squares Method #10

Open
danhardman opened this issue Mar 11, 2016 · 0 comments
Open

learn.Evaluation() Least Squares Method #10

danhardman opened this issue Mar 11, 2016 · 0 comments

Comments

@danhardman
Copy link

I was just checking out the least squares algorithm in the learn.Evaluation() method and I can't find the maths to back up the algorithm used. Would you be able to point me in the right direction?

Why isn't the Means Square Error being used here? Example:

func Evaluation(n *neural.Network, in, ideal []float64) float64 {
    out := n.Calculate(in)

    var e float64
    for i, _ := range out {
        e += math.Pow(out[i]-ideal[i], 2)
    }

    return e / float64(len(out))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant