Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/05/10 20:35:13 (15 years ago)
Author:
gkronber
Message:

Added analyzer to calculate and track min, avg, and max R² on the training set for symbolic regression problems. #999 (Refactor algorithm analysis and tracing)

Location:
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/HeuristicLab.Problems.DataAnalysis.Regression-3.3.csproj

    r3651 r3652  
    8686    <Compile Include="HeuristicLabProblemsDataAnalysisRegressionPlugin.cs" />
    8787    <Compile Include="Properties\AssemblyInfo.cs" />
     88    <Compile Include="Symbolic\Analyzers\PopulationSymbolicRegressionModelQualityAnalyzer.cs" />
    8889    <Compile Include="Symbolic\Analyzers\PopulationSymbolicRegressionVariableFrequencyAnalyzer.cs" />
    8990    <Compile Include="Symbolic\Analyzers\PopulationValidationBestScaledSymbolicRegressionSolutionAnalyzer.cs" />
     
    9192    <Compile Include="Symbolic\Analyzers\ISymbolicRegressionSolutionPopulationAnalyzer.cs" />
    9293    <Compile Include="Symbolic\Analyzers\PopulationBestSymbolicRegressionSolutionAnalyzer.cs" />
     94    <Compile Include="Symbolic\SimpleSymbolicRegressionEvaluator.cs" />
    9395    <Compile Include="Symbolic\SymbolicRegressionScaledMeanSquaredErrorEvaluator.cs" />
    9496    <Compile Include="Symbolic\SymbolicRegressionSolution.cs" />
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/SymbolicRegressionProblem.cs

    r3651 r3652  
    353353      operators.Add(new PopulationMinAvgMaxTreeSizeAnalyzer());
    354354      operators.Add(new PopulationSymbolicRegressionVariableFrequencyAnalyzer());
     355      operators.Add(new PopulationSymbolicRegressionModelQualityAnalyzer());
    355356      ParameterizeOperators();
    356357      ParameterizeAnalyzers();
     
    389390          varFreqAnalyzer.ProblemDataParameter.ActualName = DataAnalysisProblemDataParameter.Name;
    390391        }
     392        var modelQualityAnalyzer = analyzer as PopulationSymbolicRegressionModelQualityAnalyzer;
     393        if (modelQualityAnalyzer != null) {
     394          modelQualityAnalyzer.ProblemDataParameter.ActualName = DataAnalysisProblemDataParameter.Name;
     395          modelQualityAnalyzer.SymbolicExpressionTreeParameter.ActualName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName;
     396          modelQualityAnalyzer.UpperEstimationLimitParameter.ActualName = UpperEstimationLimitParameter.Name;
     397          modelQualityAnalyzer.LowerEstimationLimitParameter.ActualName = LowerEstimationLimitParameter.Name;
     398          modelQualityAnalyzer.SymbolicExpressionTreeInterpreterParameter.ActualName = SymbolicExpressionTreeInterpreterParameter.Name;
     399          modelQualityAnalyzer.SamplesStartParameter.Value = TrainingSamplesStart;
     400          modelQualityAnalyzer.SamplesEndParameter.Value = ValidationSamplesEnd;
     401        }
    391402      }
    392403      foreach (ISymbolicExpressionTreePopulationAnalyzer analyzer in Operators.OfType<ISymbolicExpressionTreePopulationAnalyzer>()) {
Note: See TracChangeset for help on using the changeset viewer.