- Timestamp:
- 08/13/09 17:28:07 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SupportVectorMachines/3.2/SupportVectorRegression.cs
r2270 r2285 69 69 } 70 70 71 public I Model Model {71 public IAnalyzerModel Model { 72 72 get { 73 73 if (!engine.Terminated) throw new InvalidOperationException("The algorithm is still running. Wait until the algorithm is terminated to retrieve the result."); … … 421 421 422 422 423 protected internal virtual Model CreateSVMModel(IScope bestModelScope) {424 Model model = newModel();423 protected internal virtual IAnalyzerModel CreateSVMModel(IScope bestModelScope) { 424 AnalyzerModel model = new AnalyzerModel(); 425 425 model.TrainingMeanSquaredError = bestModelScope.GetVariableValue<DoubleData>("Quality", false).Data; 426 426 model.ValidationMeanSquaredError = bestModelScope.GetVariableValue<DoubleData>("ValidationQuality", false).Data; … … 439 439 model.TestVarianceAccountedFor = bestModelScope.GetVariableValue<DoubleData>("TestVAF", false).Data; 440 440 441 model.Data = bestModelScope.GetVariableValue<SVMModel>("Model", false);442 441 HeuristicLab.DataAnalysis.Dataset ds = bestModelScope.GetVariableValue<Dataset>("Dataset", true); 443 442 model.Dataset = ds; … … 449 448 model.TestSamplesStart = bestModelScope.GetVariableValue<IntData>("TestSamplesStart", true).Data; 450 449 model.TestSamplesEnd = bestModelScope.GetVariableValue<IntData>("TestSamplesEnd", true).Data; 450 model.Predictor = new Predictor(bestModelScope.GetVariableValue<SVMModel>("Model", false), model.TargetVariable); 451 451 452 452 453 ItemList evaluationImpacts = bestModelScope.GetVariableValue<ItemList>("VariableEvaluationImpacts", false); … … 456 457 double impact = ((DoubleData)row[1]).Data; 457 458 model.SetVariableEvaluationImpact(variableName, impact); 458 model.AddInputVariable s(variableName);459 model.AddInputVariable(variableName); 459 460 } 460 461 foreach (ItemList row in qualityImpacts) { … … 462 463 double impact = ((DoubleData)row[1]).Data; 463 464 model.SetVariableQualityImpact(variableName, impact); 464 model.AddInputVariable s(variableName);465 model.AddInputVariable(variableName); 465 466 } 466 467
Note: See TracChangeset
for help on using the changeset viewer.