/// <summary> /// Initializes a new instance of the <see cref="NetConfig"/> class. /// </summary> public NetConfig() { // Initialize top region params this.TopRegionParams = new RegionParams(null, "Top Region"); this.TopRegionParams.InputSize = new Size(16, 16); this.TopRegionParams.SegmentActivateThreshold = 3; this.TopRegionParams.NewNumberSynapses = 5; this.TopRegionParams.CellsPerColumn = 4; this.TopRegionParams.Size = new Size(12, 12); this.TopRegionParams.PercentageInputCol = 15; this.TopRegionParams.PercentageMinOverlap = 10; this.TopRegionParams.PercentageLocalActivity = 10; this.TopRegionParams.LocalityRadius = 5; // Create a file sensor and add it as lower node to top region var fileSensorParams = new FileSensorParams(this.TopRegionParams, "Sensor"); fileSensorParams.FileName = "input.txt"; // Initialize the synapses parameters this.SynapseParams = new SynapseParam(); this.SynapseParams.ConnectedPermanence = .2f; this.SynapseParams.InitialPermanence = .2f; this.SynapseParams.PermanenceIncrease = .05f; this.SynapseParams.PermanenceDecrease = .04f; }