public override void Initialize() { this._graph = ConstructionGraphBuilder.BuildNNConstructionGraph(this.Dataset.Metadata, _hiddenUnitCount); this.ConstructionGraph.InitializePheromone(1); this.ConstructionGraph.SetHeuristicValues(this._problem.HeuristicsCalculator, false); this._bestAnt = null; this._iterationBestAnt = null; }
public override void Initialize() { this._iterationBestAnt = new Ant <ConnectionDC>(0, this); this._bestAnt = new Ant <ConnectionDC>(0, this); SetLearningAndValidationSets(); this._graph = ConstructionGraphBuilder.BuildNNConstructionGraph(this.Dataset.Metadata, _hiddenUnitCount); this._solution = new Solution <ConnectionDC>(); foreach (DecisionComponent <ConnectionDC> component in this.ConstructionGraph.Components) { if (component.Element.Include) { this._solution.Components.Add(component); } } this.EvaluateSolutionQuality(this._solution); }