Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/04/19 15:47:41 (5 years ago)
Author:
gkronber
Message:

#2955: changed error strings when trying to load an incompatible dataset for a model.

Location:
trunk/HeuristicLab.Problems.DataAnalysis/3.4/Implementation
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationModel.cs

    r16565 r16763  
    7575      var classificationProblemData = problemData as IClassificationProblemData;
    7676      if (classificationProblemData == null)
    77         throw new ArgumentException("The problem data is not a regression problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
     77        throw new ArgumentException("The problem data is not compatible with this classification model. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
    7878      return IsProblemDataCompatible(classificationProblemData, out errorMessage);
    7979    }
  • trunk/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/ConstantModel.cs

    r16565 r16763  
    9898        return IsProblemDataCompatible(classificationProblemData, out errorMessage);
    9999
    100       throw new ArgumentException("The problem data is not a regression nor a classification problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
     100      throw new ArgumentException("The problem data is compatible with this model. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
    101101    }
    102102
  • trunk/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionModel.cs

    r16565 r16763  
    7676      var regressionProblemData = problemData as IRegressionProblemData;
    7777      if (regressionProblemData == null)
    78         throw new ArgumentException("The problem data is not a regression problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
     78        throw new ArgumentException("The problem data is not compatible with this regression model. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
    7979      return IsProblemDataCompatible(regressionProblemData, out errorMessage);
    8080    }
Note: See TracChangeset for help on using the changeset viewer.