Ejemplo n.º 1
0
    public int loadNet(string netLoadName)
    {
        string neuralNet = Scrivener.readController("ProjectData\\" + netLoadName);

        //nets.Add(new NeuralNetwork(this, neuralNet));
        return(networks.Length - 1); // The index of the new net
    }
Ejemplo n.º 2
0
 // buildDirector Helper Methods
 private void initializeComponents()
 {
     /* assignGlobalValues ----- assigns the components which should be attached to the director
      * GameObject in the editor to their corresponding members fields. */
     bart = gameObject.GetComponent <Scrivener>();
     bart.buildScrivener();
     // Experiment Name and Id.
     string[] nameAndId = bart.chooseExperimentNameAndId();
     experimentName = nameAndId[0];
     experimentId   = int.Parse(nameAndId[1]);
     // Find initial module
     try {
         Module[] modules = GetComponentsInChildren <Module>();
         foreach (var module in modules)
         {
             module.buildModule(this);
             if (module.initialModule)
             {
                 baseModule = module;
             }
         }
         activeModule = baseModule.activateModule();
     }
     catch (NullReferenceException) {
         Debug.Log("Director initializeComponents failure, no module is initial");
     }
 }
Ejemplo n.º 3
0
        public OutputPackage(List <string> stringInputs, Scrivener scrivenerInput)
        {
            outputs       = new Dictionary <string, Text>();
            rootScrivener = scrivenerInput;
            nameplateRoot = rootScrivener.nameplateRoot;
            outputsRoot   = rootScrivener.outputRoot;

            for (int i = 0; i < stringInputs.Count; i++)
            {
                GameObject nameplate = createTextObject(stringInputs[i] + " NamePlate", i, nameplateRoot, true);
                createText(stringInputs[i], nameplate, true);
                GameObject output = createTextObject(stringInputs[i] + " Output", i, outputsRoot, false);
                outputs.Add(stringInputs[i], createText(stringInputs[i], output, false));
            }
            resizePanels(stringInputs.Count);
        }
Ejemplo n.º 4
0
 public void loadNeuralNetwork()
 {
     inscribeController(Scrivener.readController(networkLoadPath));
 }
Ejemplo n.º 5
0
 // CONTROLLER TRANSCRIPTION/INSCRIPTION METHODS //
 public void saveNeuralNetwork(string path)
 {
     Scrivener.writeController(path, transcribeController(), "");
 }