Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/02/14 15:18:51 (10 years ago)
Author:
mkommend
Message:

#2238: Removed grammar objects from trees used in symbolic data analysissolutions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicDiscriminantFunctionClassificationSolution.cs

    r11171 r11332  
    2424using HeuristicLab.Core;
    2525using HeuristicLab.Data;
     26using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    2627using HeuristicLab.Optimization;
    2728using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     
    107108    public SymbolicDiscriminantFunctionClassificationSolution(ISymbolicDiscriminantFunctionClassificationModel model, IClassificationProblemData problemData)
    108109      : base(model, problemData) {
     110      foreach (var node in model.SymbolicExpressionTree.Root.IterateNodesPrefix().OfType<SymbolicExpressionTreeTopLevelNode>())
     111        node.SetGrammar(null);
     112
    109113      Add(new Result(ModelLengthResultName, "Length of the symbolic classification model.", new IntValue()));
    110114      Add(new Result(ModelDepthResultName, "Depth of the symbolic classification model.", new IntValue()));
    111 
    112115
    113116      ResultCollection estimationLimitResults = new ResultCollection();
Note: See TracChangeset for help on using the changeset viewer.