Exemple #1
0
        public SpatialPoolerColumn(MiniColumn miniColumn)
        {
            MiniColumn = miniColumn;

            var rng = new Random();

            double minBoost = 0.95;
            double maxBoost = 1.05;

            BoostFactor = rng.NextDouble(minBoost, maxBoost);
        }
Exemple #2
0
        public Cortex(CortexCreationOptions options)
        {
            Parameters   = options;
            _MiniColumns = new List <MiniColumn>();

            int numColumns = options.CortexShape.Product();
            int numInputs  = options.InputShape.Product();

            for (int iColumn = 0; iColumn < numColumns; iColumn++)
            {
                var column = new MiniColumn(iColumn, numInputs,
                                            options.PotentialSynapsePercent,
                                            options.ConnectedPermanenceThreshold);
                _MiniColumns.Add(column);
                column.Region = this;
            }
        }