/// <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()); }
/// <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()); }