Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/30/18 13:08:01 (6 years ago)
Author:
bburlacu
Message:

#2950: Refactor hashing to use unsigned long for hashes. Implement new DiversityPreservingCrossover which prevents subtrees with the same hash value from being swapped.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisBuildingBlockAnalyzer.cs

    r16259 r16263  
    4141    private const string SimplifyTreesParameterName = "SimplifyTrees";
    4242
    43     private Dictionary<int, DataRow> hashToRow = new Dictionary<int, DataRow>();
     43    private Dictionary<ulong, DataRow> hashToRow = new Dictionary<ulong, DataRow>();
    4444
    4545    #region parameters
     
    6666      base.InitializeState();
    6767
    68       hashToRow = new Dictionary<int, DataRow>();
     68      hashToRow = new Dictionary<ulong, DataRow>();
    6969    }
    7070
     
    104104      var simplify = SimplifyTrees.Value;
    105105
    106       var expressions = new Dictionary<int, string>();
    107       var expressionCounts = new Dictionary<int, int>();
     106      var expressions = new Dictionary<ulong, string>();
     107      var expressionCounts = new Dictionary<ulong, int>();
    108108
    109109      int totalCount = 0; // total number of examined subtrees
Note: See TracChangeset for help on using the changeset viewer.