Changeset 18084
- Timestamp:
- 11/18/21 15:55:41 (3 years ago)
- Location:
- branches/3136_Structural_GP
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression-3.4.csproj
r18061 r18084 258 258 <Private>False</Private> 259 259 </ProjectReference> 260 <ProjectReference Include="..\..\HeuristicLab.Problems.Instances.DataAnalysis\3.3\HeuristicLab.Problems.Instances.DataAnalysis-3.3.csproj"> 261 <Project>{94C7714E-29D4-4D6D-B213-2C18D627AB75}</Project> 262 <Name>HeuristicLab.Problems.Instances.DataAnalysis-3.3</Name> 263 </ProjectReference> 260 264 <ProjectReference Include="..\..\HeuristicLab.Problems.Instances\3.3\HeuristicLab.Problems.Instances-3.3.csproj"> 261 265 <Project>{3540E29E-4793-49E7-8EE2-FEA7F61C3994}</Project> -
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/StructuredSymbolicRegressionSingleObjectiveProblem.cs
r18081 r18084 13 13 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 14 14 using HeuristicLab.PluginInfrastructure; 15 using HeuristicLab.Problems.Instances.DataAnalysis.Regression.Asadzadeh; 16 using HeuristicLab.Problems.Instances.DataAnalysis; 15 17 16 18 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression { … … 74 76 #region Constructors & Cloning 75 77 public StructuredSymbolicRegressionSingleObjectiveProblem() { 76 var problemData = new ShapeConstrainedRegressionProblemData(); 77 var targetInterval = problemData.VariableRanges.GetInterval(problemData.TargetVariable); 78 var provider = new AsadzadehProvider(); 79 var descriptor = new Asadzadeh1(); 80 var problemData = provider.LoadData(descriptor); 81 var shapeConstraintProblemData = new ShapeConstrainedRegressionProblemData(problemData); 82 83 84 var targetInterval = shapeConstraintProblemData.VariableRanges.GetInterval(shapeConstraintProblemData.TargetVariable); 78 85 var estimationWidth = targetInterval.Width * 10; 79 86 … … 93 100 Parameters.Add(new ValueParameter<IRegressionProblemData>( 94 101 ProblemDataParameterName, 95 problemData));102 shapeConstraintProblemData)); 96 103 ProblemDataParameter.ValueChanged += ProblemDataParameterValueChanged; 97 104 … … 119 126 Operators.Add(new SymbolicDataAnalysisVariableFrequencyAnalyzer()); 120 127 Operators.Add(new MinAverageMaxSymbolicExpressionTreeLengthAnalyzer()); 121 //TODO change to value lookup122 //Operators.Add(new SymbolicExpressionTreeLengthAnalyzer());123 128 Operators.Add(new SymbolicExpressionSymbolFrequencyAnalyzer()); 124 129 130 StructureTemplate.Template = 131 "(" + 132 "(210000 / (210000 + h)) * ((sigma_y * t * t) / (wR * Rt * t)) + " + 133 "PlasticHardening(_) - Elasticity(_)" + 134 ")" + 135 " * C(_)"; 125 136 } 126 137 -
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Converters/DerivativeCalculator.cs
r17902 r18084 197 197 var tanh = (ISymbolicExpressionTreeNode)branch.Clone(); 198 198 return Product(fxp, Subtract(CreateConstant(1.0), Square(tanh))); 199 } 200 if (branch.Symbol is SubFunctionSymbol) { 201 return Derive(branch.GetSubtree(0), variableName); 199 202 } 200 203 throw new NotSupportedException(string.Format("Symbol {0} is not supported.", branch.Symbol)); … … 282 285 !(n.Symbol is Cosine) && 283 286 !(n.Symbol is Tangent) && 284 !(n.Symbol is StartSymbol) 287 !(n.Symbol is StartSymbol) && 288 !(n.Symbol is SubFunctionSymbol) 285 289 select n).Any(); 286 290 return !containsUnknownSymbol; -
branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Interpreter/IntervalArithBoundsEstimator.cs
r17964 r18084 247 247 248 248 break; 249 } 250 case OpCodes.SubFunction: { 251 result = Evaluate(instructions, ref instructionCounter, nodeIntervals, variableIntervals); 252 break; 249 253 } 250 254 default: … … 342 346 !(n.Symbol is Power) && 343 347 !(n.Symbol is Absolute) && 344 !(n.Symbol is AnalyticQuotient) 348 !(n.Symbol is AnalyticQuotient) && 349 !(n.Symbol is SubFunctionSymbol) 345 350 select n).Any(); 346 351 return !containsUnknownSymbols; -
branches/3136_Structural_GP/HeuristicLab.Problems.Instances.DataAnalysis/3.3/HeuristicLab.Problems.Instances.DataAnalysis-3.3.csproj
r17969 r18084 155 155 <Compile Include="Regression\ArtificialRegressionDataDescriptor.cs" /> 156 156 <Compile Include="Regression\ArtificialRegressionInstanceProvider.cs" /> 157 <Compile Include="Regression\Asadzadeh\Asadzadeh1.cs" /> 158 <Compile Include="Regression\Asadzadeh\AsadzadehProvider.cs" /> 157 159 <Compile Include="Regression\CSV\RegressionCSVInstanceProvider.cs" /> 158 160 <Compile Include="Regression\FeatureSelection\FeatureSelectionRegressionProblemData.cs" />
Note: See TracChangeset
for help on using the changeset viewer.