- Timestamp:
- 04/04/17 16:57:45 (8 years ago)
- Location:
- branches/symbreg-factors-2650
- Files:
-
- 6 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/symbreg-factors-2650
- Property svn:mergeinfo changed
/trunk/sources merged: 14769-14770,14772-14775,14779-14781,14786,14789-14791,14793,14805,14809-14810,14817,14819-14820
- Property svn:mergeinfo changed
-
branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Views merged: 14770,14772,14805
- Property svn:mergeinfo changed
-
branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj
r14542 r14825 215 215 <Compile Include="Interfaces\IGradientChart.cs" /> 216 216 <Compile Include="Interfaces\IDataPreprocessorStarter.cs" /> 217 <Compile Include="MenuItems\ChangeDataOfOptimizersMenuItem.cs" /> 217 218 <Compile Include="MenuItems\ShrinkDataAnalysisRunsMenuItem.cs" /> 218 219 <Compile Include="ModifiableDatasetView.cs"> -
branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/ConfidenceRegressionSolutionEstimatedValuesView.cs
r14185 r14825 61 61 foreach (var row in Enumerable.Range(0, Content.ProblemData.Dataset.Rows)) { 62 62 estimated_var.MoveNext(); 63 matrix[row, 7] = estimated_var.Current.ToString();63 matrix[row, 8] = estimated_var.Current.ToString(); 64 64 } 65 65 66 66 foreach (var row in Content.ProblemData.TrainingIndices) { 67 67 estimated_var_training.MoveNext(); 68 matrix[row, 8] = estimated_var_training.Current.ToString();68 matrix[row, 9] = estimated_var_training.Current.ToString(); 69 69 } 70 70 71 71 foreach (var row in Content.ProblemData.TestIndices) { 72 72 estimated_var_test.MoveNext(); 73 matrix[row, 9] = estimated_var_test.Current.ToString();73 matrix[row, 10] = estimated_var_test.Current.ToString(); 74 74 } 75 75 -
branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionEstimatedValuesView.cs
r14185 r14825 81 81 82 82 protected virtual StringMatrix CreateValueMatrix() { 83 string[,] values = new string[Content.ProblemData.Dataset.Rows, 7];83 string[,] values = new string[Content.ProblemData.Dataset.Rows, 8]; 84 84 85 85 double[] target = Content.ProblemData.Dataset.GetDoubleValues(Content.ProblemData.TargetVariable).ToArray(); … … 101 101 estimated.MoveNext(); 102 102 double est = estimated.Current; 103 double res = Math.Abs(est - target[row]);103 double res = target[row] - est; 104 104 values[row, 0] = row.ToString(); 105 105 values[row, 1] = target[row].ToString(); 106 106 values[row, 2] = est.ToString(); 107 values[row, 5] = Math.Abs(res).ToString(); 108 values[row, 6] = Math.Abs(res / target[row]).ToString(); 107 values[row, 5] = res.ToString(); 108 values[row, 6] = Math.Abs(res).ToString(); 109 values[row, 7] = Math.Abs(res / target[row]).ToString(); 109 110 } 110 111 111 112 var matrix = new StringMatrix(values); 112 matrix.ColumnNames = new string[] { "Id", TARGETVARIABLE_SERIES_NAME, ESTIMATEDVALUES_SERIES_NAME, ESTIMATEDVALUES_TRAINING_SERIES_NAME, ESTIMATEDVALUES_TEST_SERIES_NAME, " Absolute Error (all)", "Relative Error (all)" };113 matrix.ColumnNames = new string[] { "Id", TARGETVARIABLE_SERIES_NAME, ESTIMATEDVALUES_SERIES_NAME, ESTIMATEDVALUES_TRAINING_SERIES_NAME, ESTIMATEDVALUES_TEST_SERIES_NAME, "Residuals (all)", "Absolute Error (all)", "Relative Error (all)" }; 113 114 matrix.SortableView = true; 114 115 return matrix; -
branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs
r14185 r14825 29 29 using HeuristicLab.MainForm; 30 30 using HeuristicLab.Optimization; 31 using HeuristicLab.Optimization.Views;32 31 using HeuristicLab.Persistence.Default.Xml; 33 32 using HeuristicLab.PluginInfrastructure; … … 97 96 } 98 97 99 protected override void itemsListView_DoubleClick(object sender, EventArgs e) {98 protected sealed override void itemsListView_DoubleClick(object sender, EventArgs e) { 100 99 if (itemsListView.SelectedItems.Count != 1) return; 101 100 … … 103 102 Type viewType = itemsListView.SelectedItems[0].Tag as Type; 104 103 if (result != null) { 105 IContentView view = MainFormManager.MainForm.ShowContent(result , typeof(ResultView));104 IContentView view = MainFormManager.MainForm.ShowContent(result.Value); 106 105 if (view != null) { 106 view.Caption = result.Name; 107 107 view.ReadOnly = ReadOnly; 108 108 view.Locked = Locked;
Note: See TracChangeset
for help on using the changeset viewer.