Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/01/11 17:48:53 (13 years ago)
Author:
mkommend
Message:

#1479: Integrated trunk changes.

Location:
branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/HeuristicLabProblemsDataAnalysisSymbolicClassificationPlugin.cs.frame

    r6139 r6618  
    2626
    2727namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification {
    28   [Plugin("HeuristicLab.Problems.DataAnalysis.Symbolic.Classification","Provides classes to perform symbolic classification (single- or multiobjective).", "3.4.0.$WCREV$")]
     28  [Plugin("HeuristicLab.Problems.DataAnalysis.Symbolic.Classification","Provides classes to perform symbolic classification (single- or multiobjective).", "3.4.1.$WCREV$")]
    2929  [PluginFile("HeuristicLab.Problems.DataAnalysis.Symbolic.Classification-3.4.dll", PluginFileType.Assembly)]
    3030  [PluginDependency("HeuristicLab.ALGLIB", "3.1")]
  • branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/Properties/AssemblyInfo.frame

    r6139 r6618  
    5353// by using the '*' as shown below:
    5454[assembly: AssemblyVersion("3.4.0.0")]
    55 [assembly: AssemblyFileVersion("3.4.0.$WCREV$")]
     55[assembly: AssemblyFileVersion("3.4.1.$WCREV$")]
  • branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicClassificationModel.cs

    r5809 r6618  
    2121
    2222using System.Collections.Generic;
    23 using System.Linq;
    2423using HeuristicLab.Common;
    2524using HeuristicLab.Core;
    26 using HeuristicLab.Data;
    2725using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
    28 using HeuristicLab.Operators;
    29 using HeuristicLab.Parameters;
    3026using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    31 using HeuristicLab.Optimization;
    32 using System;
    3327
    3428namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification {
     
    5549      return Interpreter.GetSymbolicExpressionTreeValues(SymbolicExpressionTree, dataset, rows);
    5650    }
     51
     52    public ISymbolicClassificationSolution CreateClassificationSolution(IClassificationProblemData problemData) {
     53      return new SymbolicClassificationSolution(this, problemData);
     54    }
     55    IClassificationSolution IClassificationModel.CreateClassificationSolution(IClassificationProblemData problemData) {
     56      return CreateClassificationSolution(problemData);
     57    }
     58
     59
    5760  }
    5861}
  • branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicClassificationSolution.cs

    r6415 r6618  
    6363      Add(new Result(ModelLengthResultName, "Length of the symbolic classification model.", new IntValue()));
    6464      Add(new Result(ModelDepthResultName, "Depth of the symbolic classification model.", new IntValue()));
    65       CalculateResults();
     65      RecalculateResults();
    6666    }
    6767
     
    7171
    7272    protected override void RecalculateResults() {
    73       base.RecalculateResults();
    74       CalculateResults();
    75     }
    76 
    77     private void CalculateResults() {
    7873      ModelLength = Model.SymbolicExpressionTree.Length;
    7974      ModelDepth = Model.SymbolicExpressionTree.Depth;
     75      CalculateResults();
    8076    }
    8177  }
  • branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicDiscriminantFunctionClassificationModel.cs

    r6387 r6618  
    104104    }
    105105
     106    public SymbolicDiscriminantFunctionClassificationSolution CreateClassificationSolution(IClassificationProblemData problemData) {
     107      return new SymbolicDiscriminantFunctionClassificationSolution(this, problemData);
     108    }
     109    IClassificationSolution IClassificationModel.CreateClassificationSolution(IClassificationProblemData problemData) {
     110      return CreateClassificationSolution(problemData);
     111    }
     112    IDiscriminantFunctionClassificationSolution IDiscriminantFunctionClassificationModel.CreateDiscriminantFunctionClassificationSolution(IClassificationProblemData problemData) {
     113      return CreateClassificationSolution(problemData);
     114    }
     115
    106116    #region events
    107117    public event EventHandler ThresholdsChanged;
  • branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicDiscriminantFunctionClassificationSolution.cs

    r6415 r6618  
    6666      Add(new Result(ModelLengthResultName, "Length of the symbolic classification model.", new IntValue()));
    6767      Add(new Result(ModelDepthResultName, "Depth of the symbolic classification model.", new IntValue()));
    68       CalculateResults();
     68      RecalculateResults();
    6969    }
    7070
     
    7474
    7575    protected override void RecalculateResults() {
    76       base.RecalculateResults();
    7776      CalculateResults();
    78     }
    79 
    80     private void CalculateResults() {
     77      CalculateRegressionResults();
    8178      ModelLength = Model.SymbolicExpressionTree.Length;
    8279      ModelDepth = Model.SymbolicExpressionTree.Depth;
    8380    }
     81
    8482  }
    8583}
Note: See TracChangeset for help on using the changeset viewer.