Exemplo n.º 1
0
        }//trainer end

        #endregion

        #region PUBLIC
        /// <summary>
        /// Run NBN train and its test
        /// </summary>
        /// <param name="trials">int - number of learning trials</param>
        /// <param name="version">VersionNBN - version of nbn algorithm</param>
        /// <returns>LearnResult</returns>
        public LearnResult Run(int trials = 1, VersionNBN version = VersionNBN.First)
        {
            switch (version)
            {
            case VersionNBN.First:
            {
                return(RunFirstVersion(trials));
            }

            default: throw new NotImplementedException("Nie ma takiej funkcjonalności jeszcze zaimplementowanej.");
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Run NBN train and its test
 /// </summary>
 /// <param name="trials">int - number of learning trials</param>
 /// <param name="version">VersionNBN - version of nbn algorithm</param>
 /// <returns>LearnResult</returns>
 public LearnResult Run(int trials = 1, VersionNBN version = VersionNBN.First)
 {
     switch (version)
     {
         case VersionNBN.First:
             {
                 return RunFirstVersion(trials);
             }
         default: throw new NotImplementedException("Nie ma takiej funkcjonalności jeszcze zaimplementowanej.");
     }
 }