Changeset 11890
- Timestamp:
- 02/04/15 16:13:47 (10 years ago)
- Location:
- trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/GridSearchRFClassificationScriptTest.cs
r11789 r11890 57 57 58 58 var bestSolution = ScriptingUtils.GetVariable<IClassificationSolution>(script, BestSolutionVariableName); 59 Assert.AreEqual(0. 946957878315133, bestSolution.TrainingAccuracy, 1E-8);60 Assert.AreEqual(0. 734375, bestSolution.TestAccuracy, 1E-8);59 Assert.AreEqual(0.85179407176287, bestSolution.TrainingAccuracy, 1E-8); 60 Assert.AreEqual(0.81875, bestSolution.TestAccuracy, 1E-8); 61 61 } 62 62 -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/GridSearchRFRegressionScriptTest.cs
r11789 r11890 57 57 58 58 var bestSolution = ScriptingUtils.GetVariable<IRegressionSolution>(script, BestSolutionVariableName); 59 Assert.AreEqual( 1.0, bestSolution.TrainingRSquared, 1E-8);60 Assert.AreEqual(0.9 66618401251492, bestSolution.TestRSquared, 1E-8);59 Assert.AreEqual(0.968329534139836, bestSolution.TrainingRSquared, 1E-8); 60 Assert.AreEqual(0.982380790563445, bestSolution.TestRSquared, 1E-8); 61 61 } 62 62 -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/Script Sources/GridSearchRFClassificationScriptSource.cs
r11789 r11890 30 30 static Dictionary<string, IEnumerable<double>> randomForestParameterRanges = new Dictionary<string, IEnumerable<double>> { 31 31 { "N", ValueGenerator.GenerateSteps(5m, 10, 1).Select(x => Math.Pow(2,(double)x)) }, 32 { "R", ValueGenerator.GenerateSteps(0.05m, 1, 0.05m).Select(x => (double)x) },32 { "R", ValueGenerator.GenerateSteps(0.05m, 0.66m, 0.05m).Select(x => (double)x) }, 33 33 { "M", ValueGenerator.GenerateSteps(0.1m, 1, 0.1m).Select(x => (double)x) } 34 34 }; -
trunk/sources/HeuristicLab.Tests/HeuristicLab.Scripting-3.3/Script Sources/GridSearchRFRegressionScriptSource.cs
r11789 r11890 31 31 static Dictionary<string, IEnumerable<double>> randomForestParameterRanges = new Dictionary<string, IEnumerable<double>> { 32 32 { "N", ValueGenerator.GenerateSteps(5m, 10, 1).Select(x => Math.Pow(2,(double)x)) }, 33 { "R", ValueGenerator.GenerateSteps(0.05m, 1, 0.05m).Select(x => (double)x) },33 { "R", ValueGenerator.GenerateSteps(0.05m, 0.66m, 0.05m).Select(x => (double)x) }, 34 34 { "M", ValueGenerator.GenerateSteps(0.1m, 1, 0.1m).Select(x => (double)x) } 35 35 };
Note: See TracChangeset
for help on using the changeset viewer.