Changeset 14718 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective
- Timestamp:
- 03/06/17 16:53:09 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/MultiObjective/SymbolicRegressionMultiObjectiveTrainingBestSolutionAnalyzer.cs
r14185 r14718 44 44 private const string MaximumSymbolicExpressionTreeLengthParameterName = "MaximumSymbolicExpressionTreeLength"; 45 45 private const string ValidationPartitionParameterName = "ValidationPartition"; 46 private const string AnalyzeTestErrorParameterName = "Analyze Test Error"; 46 47 47 48 #region parameter properties … … 62 63 get { return (IValueLookupParameter<IntRange>)Parameters[ValidationPartitionParameterName]; } 63 64 } 65 66 public IFixedValueParameter<BoolValue> AnalyzeTestErrorParameter { 67 get { return (IFixedValueParameter<BoolValue>)Parameters[AnalyzeTestErrorParameterName]; } 68 } 64 69 #endregion 70 71 public bool AnalyzeTestError { 72 get { return AnalyzeTestErrorParameter.Value.Value; } 73 set { AnalyzeTestErrorParameter.Value.Value = value; } 74 } 65 75 66 76 [StorableConstructor] … … 74 84 Parameters.Add(new LookupParameter<IntValue>(MaximumSymbolicExpressionTreeLengthParameterName, "Maximal length of the symbolic expression.") { Hidden = true }); 75 85 Parameters.Add(new ValueLookupParameter<IntRange>(ValidationPartitionParameterName, "The validation partition.")); 86 Parameters.Add(new FixedValueParameter<BoolValue>(AnalyzeTestErrorParameterName, "Flag whether the test error should be displayed in the Pareto-Front", new BoolValue(false))); 76 87 } 77 88 … … 82 93 if (!Parameters.ContainsKey(ValidationPartitionParameterName)) 83 94 Parameters.Add(new ValueLookupParameter<IntRange>(ValidationPartitionParameterName, "The validation partition.")); 95 if (!Parameters.ContainsKey(AnalyzeTestErrorParameterName)) 96 Parameters.Add(new FixedValueParameter<BoolValue>(AnalyzeTestErrorParameterName, "Flag whether the test error should be displayed in the Pareto-Front", new BoolValue(false))); 84 97 } 85 98 … … 135 148 qualityToTreeSize.Rows.Add(trainingRow); 136 149 150 if (AnalyzeTestError) { 151 var testRow = new ScatterPlotDataRow("Test NMSE", "", 152 sizeParetoFront.Select(x => new Point2D<double>(x.Model.SymbolicExpressionTree.Length, x.TestNormalizedMeanSquaredError))); 153 testRow.VisualProperties.PointSize = 8; 154 qualityToTreeSize.Rows.Add(testRow); 155 } 156 137 157 var validationPartition = ValidationPartitionParameter.ActualValue; 138 158 if (validationPartition.Size != 0) {
Note: See TracChangeset
for help on using the changeset viewer.