public SlidingFeatureMap(int numToEvaluate, MapParams config, MapSizer groupSizer) { _allIndividuals = new List <Individual>(); _groupSizer = groupSizer; _maxIndividualsToEvaluate = numToEvaluate; _remapFrequency = config.RemapFrequency; NumFeatures = config.Features.Length; _groupBoundaries = new List <double> [NumFeatures]; }
public SlidingFeatureMap(Configuration config, MapSizer groupSizer) { _allIndividuals = new List <Individual>(); _groupSizer = groupSizer; _maxIndividualsToEvaluate = config.Search.NumToEvaluate; _remapFrequency = config.Map.RemapFrequency; NumFeatures = config.Map.Features.Length; _groupBoundaries = new List <int> [NumFeatures]; }
public FixedFeatureMap(Configuration config, MapSizer groupSizer) { _allIndividuals = new List <Individual>(); _groupSizer = groupSizer; _maxIndividualsToEvaluate = config.Search.NumToEvaluate; NumGroups = -1; NumFeatures = config.Map.Features.Length; _lowGroupBound = new int[NumFeatures]; _highGroupBound = new int[NumFeatures]; for (int i = 0; i < NumFeatures; i++) { _lowGroupBound[i] = config.Map.Features[i].MinValue; _highGroupBound[i] = config.Map.Features[i].MaxValue; } }
public FixedFeatureMap(int numToEvaluate, MapParams config, MapSizer groupSizer) { _groupSizer = groupSizer; _numIndividualsEvaluated = 0; _maxIndividualsToEvaluate = numToEvaluate; NumGroups = -1; NumFeatures = config.Features.Length; _lowGroupBound = new double[NumFeatures]; _highGroupBound = new double[NumFeatures]; for (int i = 0; i < NumFeatures; i++) { _lowGroupBound[i] = config.Features[i].MinValue; _highGroupBound[i] = config.Features[i].MaxValue; } _eliteIndices = new List <string>(); EliteMap = new Dictionary <string, Individual>(); CellCount = new Dictionary <string, int>(); }