예제 #1
0
파일: ANNMiner.cs 프로젝트: skn123/iFourmi
 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;
 }
예제 #2
0
파일: GHCNN.cs 프로젝트: skn123/iFourmi
        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);
        }