Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/06/16 19:37:20 (8 years ago)
Author:
bburlacu
Message:

#1772: SchemaCreator: Replace cutpoints with wildcards from the bottom up when generating schemas. Add temporary workaround to restore parent links in child nodes if they become corrupted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.EvolutionTracking/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Tracking/SchemaDiversification/SchemaCreator.cs

    r13625 r13876  
    241241                       let fragment = (IFragment<ISymbolicExpressionTreeNode>)arc.Data
    242242                       select fragment.Index1).Distinct().ToArray();
    243         Array.Sort(indices);
     243        var levels = indices.Select(x => schema.Root.GetBranchLevel(nodes[x])).ToArray();
     244        Array.Sort(levels, indices);
     245        // order nodes by their depth so that cutpoints are replaced with wildcards from the bottom up
    244246        var nodesToReplace = indices.Select(x => nodes[x]).ToList();
    245247        for (int i = nodesToReplace.Count - 1; i >= 0; --i) {
Note: See TracChangeset for help on using the changeset viewer.