public override void Initialize(LayerState layerState, double damagedSD, int rowCount) { base.Initialize(layerState, damagedSD, rowCount); CurrentTick = 0; HideLayerList = new List <Layer>(); for (int layerIndex = 0; layerIndex <= Tick; layerIndex++) { Layer newLayer = new Layer(random, Name + "-Hide" + layerIndex, UnitCount, 0, 0); newLayer.BiasMatrix = (Matrix <double>)BaseHideBiasMatrix.Clone(); newLayer.Initialize(layerState, damagedSD, rowCount); HideLayerList.Add(newLayer); } HideBundleList = new List <Bundle>(); for (int bundleIndex = 0; bundleIndex < Tick; bundleIndex++) { Bundle newBundle = new Bundle(random, Name + "-Hide" + bundleIndex, HideLayerList[bundleIndex], HideLayerList[bundleIndex + 1], 0); newBundle.WeightMatrix = (Matrix <double>)BaseHideWeightMatrix.Clone(); newBundle.Initialize(BundleState.On, 0); HideBundleList.Add(newBundle); } }
public override void Initialize(LayerState layerState, double damagedSD, int rowCount) { base.Initialize(layerState, damagedSD, rowCount); CurrentTick = 0; HideLayerList = new List <Layer>(); for (int layerIndex = 0; layerIndex <= Tick; layerIndex++) { Layer newLayer = new Layer(random, Name + "-Hide" + layerIndex, UnitCount, 0, 0); newLayer.BiasMatrix = (Matrix <double>)BaseHideBiasMatrix.Clone(); newLayer.Initialize(layerState, damagedSD, rowCount); HideLayerList.Add(newLayer); } HideConnectionList = new List <Connection>(); for (int connectionIndex = 0; connectionIndex < Tick; connectionIndex++) { Connection newConnection = new Connection(random, Name + "-Hide" + connectionIndex, HideLayerList[connectionIndex], HideLayerList[connectionIndex + 1], 0); newConnection.WeightMatrix = (Matrix <double>)BaseHideWeightMatrix.Clone(); newConnection.Initialize(ConnectionState.On, 0); HideConnectionList.Add(newConnection); } }
public override void Initialize(LayerState layerState, double damagedSD, int rowCount) { base.Initialize(layerState, damagedSD, rowCount); CurrentTick = 0; HideLayerList = new List<Layer>(); for (int layerIndex = 0; layerIndex <= Tick; layerIndex++) { Layer newLayer = new Layer(random, Name + "-Hide" + layerIndex, UnitCount, 0, 0); newLayer.BiasMatrix = (Matrix<double>)BaseHideBiasMatrix.Clone(); newLayer.Initialize(layerState, damagedSD, rowCount); HideLayerList.Add(newLayer); } HideConnectionList = new List<Connection>(); for (int connectionIndex = 0; connectionIndex < Tick; connectionIndex++) { Connection newConnection = new Connection(random, Name + "-Hide" + connectionIndex, HideLayerList[connectionIndex], HideLayerList[connectionIndex + 1], 0); newConnection.WeightMatrix = (Matrix<double>)BaseHideWeightMatrix.Clone(); newConnection.Initialize(ConnectionState.On, 0); HideConnectionList.Add(newConnection); } }