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 }
// 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"); } }
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); }
public void loadNeuralNetwork() { inscribeController(Scrivener.readController(networkLoadPath)); }
// CONTROLLER TRANSCRIPTION/INSCRIPTION METHODS // public void saveNeuralNetwork(string path) { Scrivener.writeController(path, transcribeController(), ""); }