//Create a new population of random NetworkStorages private void Start() { grapher.AddGraph("AverageFitness", Color.red); grapher.AddGraph("CurrentFitness", Color.blue); for (int i = 0; i < population + 1; i++) { Network n = new Network(); n.Initialise(controller.LAYERS, controller.NEURONS); currentGeneration.Add(n); } Next(); }
void Start() { if (!isExperimentOver) { updateTexture = new Texture2D(size, size); // instantiate new texture updateTexture.filterMode = FilterMode.Point; texture = gameObject.GetComponent <SpriteRenderer>().sprite; h = GameObject.FindObjectOfType <GraphHelp>(); h.AddGraph("graphing", Color.red); // set up grapher Debug.Log("Trial No: " + ExperimentManager.Instance.numOfRun); p = new Population(populationMax, mutationRate, isPbx); // create population object } }
private void Start() { grapher.AddGraph("Avg", Color.red); grapher.Plot(0, 0, "Avg"); InstaPopulation(); }