コード例 #1
0
        public double CalculateError(double[][] input, double[][] ideal)
        {
            var errorCalculation = new ErrorCalculation();

            for (var i = 0; i < ideal.Length; i++)
            {
                ComputeOutputs(input[i]);
                errorCalculation.UpdateError(OutputLayer.Fire, ideal[i]);
            }

            return(errorCalculation.CalculateRootMeanSquare());
        }