Changeset 12086 for branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification
- Timestamp:
- 02/26/15 15:33:40 (10 years ago)
- Location:
- branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4
- Files:
-
- 3 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification-3.4.csproj
r12029 r12086 186 186 <Compile Include="ModelCreators\NormalDistributedThresholdsModelCreator.cs" /> 187 187 <Compile Include="MultiObjective\SymbolicClassificationMultiObjectiveValidationBestSolutionAnalyzer.cs" /> 188 <Compile Include="S ingleObjective\SymbolicClassificationPhenotypicDiversityAnalyzer.cs" />188 <Compile Include="SymbolicClassificationPhenotypicDiversityAnalyzer.cs" /> 189 189 <Compile Include="SymbolicClassificationPruningAnalyzer.cs" /> 190 190 <Compile Include="SymbolicClassificationSolutionImpactValuesCalculator.cs" /> -
branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/MultiObjective/SymbolicClassificationMultiObjectiveProblem.cs
r12012 r12086 23 23 using HeuristicLab.Core; 24 24 using HeuristicLab.Data; 25 using HeuristicLab.Optimization; 25 26 using HeuristicLab.Parameters; 26 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; … … 105 106 Operators.Add(new SymbolicClassificationMultiObjectiveTrainingBestSolutionAnalyzer()); 106 107 Operators.Add(new SymbolicClassificationMultiObjectiveValidationBestSolutionAnalyzer()); 108 Operators.Add(new SymbolicExpressionTreePhenotypicSimilarityCalculator()); 109 Operators.Add(new SymbolicClassificationPhenotypicDiversityAnalyzer(Operators.OfType<SymbolicExpressionTreePhenotypicSimilarityCalculator>()) { 110 DiversityResultName = "Phenotypic Diversity" 111 }); 107 112 ParameterizeOperators(); 108 113 } … … 135 140 op.ModelCreatorParameter.ActualName = ModelCreatorParameter.Name; 136 141 } 142 143 foreach (var op in Operators.OfType<ISolutionSimilarityCalculator>()) { 144 op.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName; 145 op.QualityVariableName = Evaluator.QualitiesParameter.ActualName; 146 147 if (op is SymbolicExpressionTreePhenotypicSimilarityCalculator) { 148 var phenotypicSimilarityCalculator = (SymbolicExpressionTreePhenotypicSimilarityCalculator)op; 149 phenotypicSimilarityCalculator.ProblemData = ProblemData; 150 phenotypicSimilarityCalculator.Interpreter = SymbolicExpressionTreeInterpreter; 151 } 152 } 137 153 } 138 154 } -
branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveProblem.cs
r12075 r12086 149 149 } 150 150 151 foreach (var op in Operators.OfType<IS ingleObjectiveSolutionSimilarityCalculator>()) {151 foreach (var op in Operators.OfType<ISolutionSimilarityCalculator>()) { 152 152 op.SolutionVariableName = SolutionCreator.SymbolicExpressionTreeParameter.ActualName; 153 153 op.QualityVariableName = Evaluator.QualityParameter.ActualName; -
branches/SymbolicExpressionTreeDiversityAnalyzers/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicClassificationPhenotypicDiversityAnalyzer.cs
r12079 r12086 76 76 #endregion 77 77 78 public SymbolicClassificationPhenotypicDiversityAnalyzer(IEnumerable<IS ingleObjectiveSolutionSimilarityCalculator> validSimilarityCalculators)78 public SymbolicClassificationPhenotypicDiversityAnalyzer(IEnumerable<ISolutionSimilarityCalculator> validSimilarityCalculators) 79 79 : base(validSimilarityCalculators) { 80 80 #region add parameters … … 123 123 var evaluatedValues = new ItemArray<DoubleArray>(trees.Length); 124 124 for (int i = 0; i < trees.Length; ++i) { 125 var model = 126 (IDiscriminantFunctionClassificationModel) 127 modelCreator.CreateSymbolicDiscriminantFunctionClassificationModel(trees[i], interpreter, 128 estimationLimits.Lower, estimationLimits.Upper); 125 var model = (IDiscriminantFunctionClassificationModel)modelCreator.CreateSymbolicDiscriminantFunctionClassificationModel(trees[i], interpreter, estimationLimits.Lower, estimationLimits.Upper); 129 126 model.RecalculateModelParameters(problemData, rows); 130 127 var values = UseClassValues ? model.GetEstimatedClassValues(ds, rows) : model.GetEstimatedValues(ds, rows);
Note: See TracChangeset
for help on using the changeset viewer.