Changeset 11315 for trunk/sources/HeuristicLab.Algorithms.DataAnalysis
- Timestamp:
- 08/27/14 14:02:05 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/RandomForest
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/RandomForest/RandomForestModel.cs
r11171 r11315 76 76 // we assume that the trees array (double[]) is immutable in alglib 77 77 randomForest.innerobj.trees = original.randomForest.innerobj.trees; 78 78 79 79 // allowedInputVariables is immutable so we don't need to clone 80 80 allowedInputVariables = original.allowedInputVariables; … … 189 189 public static RandomForestModel CreateRegressionModel(IRegressionProblemData problemData, int nTrees, double r, double m, int seed, 190 190 out double rmsError, out double avgRelError, out double outOfBagAvgRelError, out double outOfBagRmsError) { 191 191 return CreateRegressionModel(problemData, nTrees, r, m, seed, out rmsError, out avgRelError, out outOfBagAvgRelError, out outOfBagRmsError, problemData.TrainingIndices); 192 } 193 194 public static RandomForestModel CreateRegressionModel(IRegressionProblemData problemData, int nTrees, double r, double m, int seed, 195 out double rmsError, out double avgRelError, out double outOfBagAvgRelError, out double outOfBagRmsError, IEnumerable<int> trainingIndices) { 192 196 var variables = problemData.AllowedInputVariables.Concat(new string[] { problemData.TargetVariable }); 193 197 double[,] inputMatrix = AlglibUtil.PrepareInputMatrix(problemData.Dataset, variables, problemData.TrainingIndices);
Note: See TracChangeset
for help on using the changeset viewer.