Exemplo n.º 1
0
 //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
        }
    }
Exemplo n.º 3
0
 private void Start()
 {
     grapher.AddGraph("Avg", Color.red);
     grapher.Plot(0, 0, "Avg");
     InstaPopulation();
 }