- Timestamp:
- 08/01/11 17:48:53 (13 years ago)
- Location:
- branches/GP.Grammar.Editor/HeuristicLab.Algorithms.DataAnalysis/3.4/RandomForest
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Algorithms.DataAnalysis/3.4/RandomForest/RandomForestClassificationSolution.cs
r6241 r6618 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 RandomForestClassificationSolution(IClassificationProblemData problemData, IRandomForestModel randomForestModel) 50 46 : base(randomForestModel, problemData) { 47 RecalculateResults(); 51 48 } 52 49 … … 54 51 return new RandomForestClassificationSolution(this, cloner); 55 52 } 53 54 protected override void RecalculateResults() { 55 CalculateResults(); 56 } 56 57 } 57 58 } -
branches/GP.Grammar.Editor/HeuristicLab.Algorithms.DataAnalysis/3.4/RandomForest/RandomForestModel.cs
r6241 r6618 22 22 using System; 23 23 using System.Collections.Generic; 24 using System.IO;25 24 using System.Linq; 26 using System.Text;27 25 using HeuristicLab.Common; 28 26 using HeuristicLab.Core; 29 27 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 28 using HeuristicLab.Problems.DataAnalysis; 31 using SVM;32 29 33 30 namespace HeuristicLab.Algorithms.DataAnalysis { … … 134 131 } 135 132 133 public IRandomForestRegressionSolution CreateRegressionSolution(IRegressionProblemData problemData) { 134 return new RandomForestRegressionSolution(problemData, this); 135 } 136 IRegressionSolution IRegressionModel.CreateRegressionSolution(IRegressionProblemData problemData) { 137 return CreateRegressionSolution(problemData); 138 } 139 public IRandomForestClassificationSolution CreateClassificationSolution(IClassificationProblemData problemData) { 140 return new RandomForestClassificationSolution(problemData, this); 141 } 142 IClassificationSolution IClassificationModel.CreateClassificationSolution(IClassificationProblemData problemData) { 143 return CreateClassificationSolution(problemData); 144 } 145 136 146 #region events 137 147 public event EventHandler Changed; -
branches/GP.Grammar.Editor/HeuristicLab.Algorithms.DataAnalysis/3.4/RandomForest/RandomForestRegressionSolution.cs
r6241 r6618 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 RandomForestRegressionSolution(IRegressionProblemData problemData, IRandomForestModel randomForestModel) 50 46 : base(randomForestModel, problemData) { 47 RecalculateResults(); 51 48 } 52 49
Note: See TracChangeset
for help on using the changeset viewer.