Changeset 2136 for trunk/sources/HeuristicLab.SupportVectorMachines
- Timestamp:
- 07/06/09 17:12:37 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SupportVectorMachines/3.2/VariableQualityImpactCalculator.cs
r2043 r2136 45 45 for (int i = 0; i < end - start; i++) { 46 46 values[i, 0] = SVM.Prediction.Predict(model.Model, scaledProblem.X[i]); 47 values[i, 1] = dataset.GetValue(start + i, targetVariable);47 values[i, 1] = dataset.GetValue(start + i, targetVariable); 48 48 } 49 49 50 return HeuristicLab.Modeling.SimpleMSEEvaluator.Calculate(values); 50 try { return HeuristicLab.Modeling.SimpleMSEEvaluator.Calculate(values); } 51 catch (ArgumentException) { return double.PositiveInfinity; } 51 52 } 52 53 }
Note: See TracChangeset
for help on using the changeset viewer.