Changeset 6611 for branches/QAPAlgorithms/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine
- Timestamp:
- 07/29/11 11:38:02 (14 years ago)
- Location:
- branches/QAPAlgorithms
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/QAPAlgorithms
- Property svn:mergeinfo changed
/trunk/sources merged: 6571-6585,6587-6592,6596-6606,6609
- Property svn:mergeinfo changed
-
branches/QAPAlgorithms/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorClassificationSolution.cs
r5809 r6611 20 20 #endregion 21 21 22 using System;23 using System.Collections.Generic;24 using System.Drawing;25 using System.Linq;26 22 using HeuristicLab.Common; 27 23 using HeuristicLab.Core; … … 49 45 public SupportVectorClassificationSolution(SupportVectorMachineModel model, IClassificationProblemData problemData) 50 46 : base(model, problemData) { 47 RecalculateResults(); 51 48 } 52 49 … … 54 51 return new SupportVectorClassificationSolution(this, cloner); 55 52 } 53 54 protected override void RecalculateResults() { 55 CalculateResults(); 56 } 56 57 } 57 58 } -
branches/QAPAlgorithms/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorMachineModel.cs
r6569 r6611 126 126 return GetEstimatedValuesHelper(dataset, rows); 127 127 } 128 #endregion 128 public SupportVectorRegressionSolution CreateRegressionSolution(IRegressionProblemData problemData) { 129 return new SupportVectorRegressionSolution(this, problemData); 130 } 131 IRegressionSolution IRegressionModel.CreateRegressionSolution(IRegressionProblemData problemData) { 132 return CreateRegressionSolution(problemData); 133 } 134 #endregion 135 129 136 #region IClassificationModel Members 130 137 public IEnumerable<double> GetEstimatedClassValues(Dataset dataset, IEnumerable<int> rows) { … … 147 154 } 148 155 } 156 157 public SupportVectorClassificationSolution CreateClassificationSolution(IClassificationProblemData problemData) { 158 return new SupportVectorClassificationSolution(this, problemData); 159 } 160 IClassificationSolution IClassificationModel.CreateClassificationSolution(IClassificationProblemData problemData) { 161 return CreateClassificationSolution(problemData); 162 } 149 163 #endregion 150 164 // cache for predictions, which is cloned but not persisted, must be cleared when the model is changed -
branches/QAPAlgorithms/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorRegressionSolution.cs
r5809 r6611 20 20 #endregion 21 21 22 using System;23 using System.Collections.Generic;24 using System.Drawing;25 using System.Linq;26 22 using HeuristicLab.Common; 27 23 using HeuristicLab.Core; … … 49 45 public SupportVectorRegressionSolution(SupportVectorMachineModel model, IRegressionProblemData problemData) 50 46 : base(model, problemData) { 47 RecalculateResults(); 51 48 } 52 49
Note: See TracChangeset
for help on using the changeset viewer.