コード例 #1
0
        /// <summary>
        /// Calculate the score for the network.
        /// </summary>
        ///
        /// <param name="method">The network to calculate for.</param>
        /// <returns>The score.</returns>
        public double CalculateScore(IMLMethod method)
        {
            IMLRegression reg = (IMLRegression)method;

            return(CalculateRegressionError.CalculateError(reg, _training));
        }
コード例 #2
0
 /// <summary>
 /// Calculate the score for the network.
 /// </summary>
 ///
 /// <param name="method">The network to calculate for.</param>
 /// <returns>The score.</returns>
 public double CalculateScore(IMLRegression method)
 {
     return(CalculateRegressionError.CalculateError(method, _training));
 }