public static NeatEvolutionAlgorithm <double> CreateNeatEvolutionAlgorithm_GenerativeSinewave()
        {
            var experimentFactory = new GenerativeFnRegressionExperimentFactory();

            return(Utils.CreateNeatEvolutionAlgorithm(
                       experimentFactory,
                       "config/generative-sinewave.config.json"));
        }
Example #2
0
        private static INeatExperiment <double> InitExperiment_Sinewave()
        {
            // Read experiment json config from file.
            // Note. We read the entire contents into a string; we don't ever expect to see large json files here, so this fine.
            string jsonStr = File.ReadAllText("config/generative-sinewave.config.json");

            // Create an instance of INeatExperiment for the generative sinewave task, configured using the supplied json config.
            var experimentFactory = new GenerativeFnRegressionExperimentFactory();
            INeatExperiment <double> neatExperiment = experimentFactory.CreateExperiment(jsonStr);

            return(neatExperiment);
        }