예제 #1
0
 /// <summary>
 /// Run the example.
 /// </summary>
 public void Process()
 {
     IList<BasicData> trainingData = GenerateTrainingData();
     var poly = new PolynomialFn(3);
     IScoreFunction score = new ScoreRegressionData(trainingData);
     var train = new TrainGreedyRandom(true, poly, score);
     PerformIterations(train, 1000000, 0.01, true);
     Console.WriteLine(poly.ToString());
 }
예제 #2
0
        /// <summary>
        /// Run the example.
        /// </summary>
        public void Process()
        {
            IList <BasicData> trainingData = GenerateTrainingData();
            var            poly            = new PolynomialFn(3);
            IScoreFunction score           = new ScoreRegressionData(trainingData);
            var            train           = new TrainGreedyRandom(true, poly, score);

            PerformIterations(train, 1000000, 0.01, true);
            Console.WriteLine(poly.ToString());
        }