Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/04/17 16:57:45 (7 years ago)
Author:
gkronber
Message:

#2650: merged r14769:14820 from trunk to branch to prepare for branch reintegration

Location:
branches/symbreg-factors-2650
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/symbreg-factors-2650

  • branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Views

  • branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj

    r14542 r14825  
    215215    <Compile Include="Interfaces\IGradientChart.cs" />
    216216    <Compile Include="Interfaces\IDataPreprocessorStarter.cs" />
     217    <Compile Include="MenuItems\ChangeDataOfOptimizersMenuItem.cs" />
    217218    <Compile Include="MenuItems\ShrinkDataAnalysisRunsMenuItem.cs" />
    218219    <Compile Include="ModifiableDatasetView.cs">
  • branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/ConfidenceRegressionSolutionEstimatedValuesView.cs

    r14185 r14825  
    6161      foreach (var row in Enumerable.Range(0, Content.ProblemData.Dataset.Rows)) {
    6262        estimated_var.MoveNext();
    63         matrix[row, 7] = estimated_var.Current.ToString();
     63        matrix[row, 8] = estimated_var.Current.ToString();
    6464      }
    6565
    6666      foreach (var row in Content.ProblemData.TrainingIndices) {
    6767        estimated_var_training.MoveNext();
    68         matrix[row, 8] = estimated_var_training.Current.ToString();
     68        matrix[row, 9] = estimated_var_training.Current.ToString();
    6969      }
    7070
    7171      foreach (var row in Content.ProblemData.TestIndices) {
    7272        estimated_var_test.MoveNext();
    73         matrix[row, 9] = estimated_var_test.Current.ToString();
     73        matrix[row, 10] = estimated_var_test.Current.ToString();
    7474      }
    7575
  • branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionEstimatedValuesView.cs

    r14185 r14825  
    8181
    8282    protected virtual StringMatrix CreateValueMatrix() {
    83       string[,] values = new string[Content.ProblemData.Dataset.Rows, 7];
     83      string[,] values = new string[Content.ProblemData.Dataset.Rows, 8];
    8484
    8585      double[] target = Content.ProblemData.Dataset.GetDoubleValues(Content.ProblemData.TargetVariable).ToArray();
     
    101101        estimated.MoveNext();
    102102        double est = estimated.Current;
    103         double res = Math.Abs(est - target[row]);
     103        double res = target[row] - est;
    104104        values[row, 0] = row.ToString();
    105105        values[row, 1] = target[row].ToString();
    106106        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();
    109110      }
    110111
    111112      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)" };
    113114      matrix.SortableView = true;
    114115      return matrix;
  • branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs

    r14185 r14825  
    2929using HeuristicLab.MainForm;
    3030using HeuristicLab.Optimization;
    31 using HeuristicLab.Optimization.Views;
    3231using HeuristicLab.Persistence.Default.Xml;
    3332using HeuristicLab.PluginInfrastructure;
     
    9796    }
    9897
    99     protected override void itemsListView_DoubleClick(object sender, EventArgs e) {
     98    protected sealed override void itemsListView_DoubleClick(object sender, EventArgs e) {
    10099      if (itemsListView.SelectedItems.Count != 1) return;
    101100
     
    103102      Type viewType = itemsListView.SelectedItems[0].Tag as Type;
    104103      if (result != null) {
    105         IContentView view = MainFormManager.MainForm.ShowContent(result, typeof(ResultView));
     104        IContentView view = MainFormManager.MainForm.ShowContent(result.Value);
    106105        if (view != null) {
     106          view.Caption = result.Name;
    107107          view.ReadOnly = ReadOnly;
    108108          view.Locked = Locked;
Note: See TracChangeset for help on using the changeset viewer.