//[JsonRequired] //public BrainConfiguration Configuration { get; set; } public void InitLayers(BrainConfiguration configuration) { //Configuration = configuration; foreach (IBrainLayer layer in this) { layer.InitLayer(configuration); layer.InitFiredNeurons(); } globals.CachedNeuronCount = HiddenLayers.Sum(l => l.Count); }