Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/05/14 15:08:11 (10 years ago)
Author:
mkommend
Message:

#1758: Reimplemented functionality to load new problem data to data analysis solution and redesigned the according views.

  • Added setter for the target variable of regression and classification problem data.
  • Added functionality to check the compatibility of problem data.
  • Added functionality to adjust the properties of a problem data.
  • Added flowLayoutPanel with according buttons for loading a new problem data, simplifying and exporting data analysis solutions.
  • TradingProblemData currently throws a NotSupportedException when the properties should be adjusted.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClassificationSolutionView.cs

    r10175 r10540  
    2020#endregion
    2121
    22 using System;
    2322using System.Windows.Forms;
    24 using HeuristicLab.Common;
    2523using HeuristicLab.Core;
    2624using HeuristicLab.MainForm;
    27 using HeuristicLab.PluginInfrastructure;
    2825
    2926namespace HeuristicLab.Problems.DataAnalysis.Views {
     
    5451    }
    5552    #endregion
    56 
    57     protected override bool CheckCompatibilityOfProblemData(IDataAnalysisProblemData problemData) {
    58       IClassificationProblemData classificationProblemData = problemData as IClassificationProblemData;
    59       if (classificationProblemData == null) {
    60         ErrorHandling.ShowErrorDialog(this, new ArgumentException("The problem data is no classification problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided."));
    61         return false;
    62       }
    63 
    64       if (!classificationProblemData.TargetVariable.Equals(Content.ProblemData.TargetVariable)) {
    65         string message = "The target variables are not matching. Old target variable: '"
    66                          + Content.ProblemData.TargetVariable
    67                          + "'. New targetvariable: '" + classificationProblemData.TargetVariable + "'";
    68         ErrorHandling.ShowErrorDialog(this, new InvalidOperationException(message));
    69         return false;
    70       }
    71 
    72       return base.CheckCompatibilityOfProblemData(problemData);
    73     }
    7453  }
    7554}
Note: See TracChangeset for help on using the changeset viewer.