Free cookie consent management tool by TermsFeed Policy Generator

Changeset 16763


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

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

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour/NearestNeighbourModel.cs

    r16565 r16763  
    294294        return IsProblemDataCompatible(classificationProblemData, out errorMessage);
    295295
    296       throw new ArgumentException("The problem data is not a regression nor a classification problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
     296      throw new ArgumentException("The problem data is not compatible with this nearest neighbour model. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
    297297    }
    298298
  • trunk/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkEnsembleModel.cs

    r16565 r16763  
    144144        return IsProblemDataCompatible(classificationProblemData, out errorMessage);
    145145
    146       throw new ArgumentException("The problem data is not a regression nor a classification problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
     146      throw new ArgumentException("The problem data is not compatible with this neural network ensemble. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
    147147    }
    148148
  • trunk/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkModel.cs

    r16565 r16763  
    147147        return IsProblemDataCompatible(classificationProblemData, out errorMessage);
    148148
    149       throw new ArgumentException("The problem data is not a regression nor a classification problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
     149      throw new ArgumentException("The problem data is not compatible with this neural network. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
    150150    }
    151151
  • trunk/HeuristicLab.Algorithms.DataAnalysis/3.4/RandomForest/RandomForestModel.cs

    r16565 r16763  
    300300        return IsProblemDataCompatible(classificationProblemData, out errorMessage);
    301301
    302       throw new ArgumentException("The problem data is not a regression nor a classification problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
     302      throw new ArgumentException("The problem data is not compatible with this random forest. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
    303303    }
    304304
  • trunk/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorMachineModel.cs

    r16565 r16763  
    143143        return IsProblemDataCompatible(classificationProblemData, out errorMessage);
    144144
    145       throw new ArgumentException("The problem data is not a regression nor a classification problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
     145      throw new ArgumentException("The problem data is not compatible with this SVM. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
    146146    }
    147147
  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicClassificationModel.cs

    r16565 r16763  
    8181      var classificationProblemData = problemData as IClassificationProblemData;
    8282      if (classificationProblemData == null)
    83         throw new ArgumentException("The problem data is not a regression problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
     83        throw new ArgumentException("The problem data is not compatible with this classification model. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
    8484      return IsProblemDataCompatible(classificationProblemData, out errorMessage);
    8585    }
  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.cs

    r16565 r16763  
    9090      var regressionProblemData = problemData as IRegressionProblemData;
    9191      if (regressionProblemData == null)
    92         throw new ArgumentException("The problem data is not a regression problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
     92        throw new ArgumentException("The problem data is not compatible with this symbolic regression model. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");
    9393      return IsProblemDataCompatible(regressionProblemData, out errorMessage);
    9494    }
  • 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.