Changeset 16892 for branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification
- Timestamp:
- 05/04/19 08:22:42 (6 years ago)
- Location:
- branches/2925_AutoDiffForDynamicalModels
- Files:
-
- 5 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/2925_AutoDiffForDynamicalModels
- Property svn:mergeinfo changed
-
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification
- Property svn:mergeinfo changed
-
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification-3.4.csproj
r16662 r16892 126 126 <Compile Include="ModelCreators\NormalDistributedThresholdsModelCreator.cs" /> 127 127 <Compile Include="MultiObjective\SymbolicClassificationMultiObjectiveValidationBestSolutionAnalyzer.cs" /> 128 <Compile Include="SingleObjective\SymbolicClassificationSingleObjectiveWeightedPerformanceMeasuresEvaluator.cs" /> 129 <Compile Include="SingleObjective\SymbolicClassificationSingleObjectiveWeightedResidualsMeanSquaredErrorEvaluator.cs" /> 128 130 <Compile Include="SymbolicClassificationPhenotypicDiversityAnalyzer.cs" /> 129 131 <Compile Include="SymbolicClassificationPruningAnalyzer.cs" /> -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicClassificationModel.cs
r16662 r16892 81 81 var classificationProblemData = problemData as IClassificationProblemData; 82 82 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"); 84 84 return IsProblemDataCompatible(classificationProblemData, out errorMessage); 85 85 } -
branches/2925_AutoDiffForDynamicalModels/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicDiscriminantFunctionClassificationModel.cs
r16662 r16892 112 112 113 113 public override IEnumerable<double> GetEstimatedClassValues(IDataset dataset, IEnumerable<int> rows) { 114 var estimatedValues = GetEstimatedValues(dataset, rows); 115 return GetEstimatedClassValues(estimatedValues); 116 } 117 public IEnumerable<double> GetEstimatedClassValues(IEnumerable<double> estimatedValues) { 114 118 if (!Thresholds.Any() && !ClassValues.Any()) throw new ArgumentException("No thresholds and class values were set for the current symbolic classification model."); 115 foreach (var x in GetEstimatedValues(dataset, rows)) {119 foreach (var x in estimatedValues) { 116 120 int classIndex = 0; 117 121 // find first threshold value which is larger than x => class index = threshold index + 1 … … 123 127 } 124 128 } 125 126 129 127 130 public override ISymbolicClassificationSolution CreateClassificationSolution(IClassificationProblemData problemData) {
Note: See TracChangeset
for help on using the changeset viewer.