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

Network validation #30

Open
GoogleCodeExporter opened this issue May 4, 2015 · 2 comments
Open

Network validation #30

GoogleCodeExporter opened this issue May 4, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

It would be nice if the framework could provide a built-in way to validade 
neural networks based on a validation set. The sample code provided below 
may be useful to accomplish this task:

//AForge.Neuro, in class BackpropagationLearning.cs:

<code> 
        public double MeasureError(double[] input, double[] output) 
        { 
            // compute the network's output 
            network.Compute(input); 

            // calculate network error 
            double error = CalculateError(output); 

            return error; 
        } 

        public double MeasureError(double[][] input, double[][] output) 
        { 
            double error = 0.0; 

            for (int i = 0; i < input.Length; ++i) 
            { 
                error += MeasureError(input[i], output[i]); 
            } 

            return error; 
        } 
</code>

Original issue reported on code.google.com by cesarso...@gmail.com on 5 Nov 2007 at 10:04

@GoogleCodeExporter
Copy link
Author

Original comment by andrew.k...@gmail.com on 6 Nov 2007 at 4:16

  • Changed state: Accepted
  • Added labels: Project-Neuro, Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

Original comment by andrew.k...@gmail.com on 1 Mar 2010 at 10:26

  • Changed state: New

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant