Exemplo n.º 1
0
        /// <summary>
        /// Learn the specified training set
        /// </summary>
        /// <param name="trainingSet"> set of training elements to learn </param>
        public virtual void learn(DataSet trainingSet)
        {
            if (trainingSet == null)
            {
                throw new ArgumentException("Training set is null!");
            }

            learningRule.learn(trainingSet);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Learn the specified training set, using specified learning rule
 /// </summary>
 /// <param name="trainingSet">  set of training elements to learn </param>
 /// <param name="learningRule"> instance of learning rule to use for learning </param>
 public virtual void learn(DataSet trainingSet, LearningRule learningRule)
 {
     LearningRule = learningRule;
     learningRule.learn(trainingSet);
 }