Changeset 12699 for branches/GBT-trunkintegration/Tests
- Timestamp:
- 07/09/15 18:46:20 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GBT-trunkintegration/Tests/Test.cs
r12661 r12699 183 183 gbt.Iterations = 5000; 184 184 gbt.MaxSize = 20; 185 gbt.CreateSolution = false; 185 186 #endregion 186 187 187 188 RunAlgorithm(gbt); 188 189 190 Console.WriteLine(gbt.ExecutionTime); 189 191 Assert.AreEqual(267.68704241153921, ((DoubleValue)gbt.Results["Loss (train)"].Value).Value, 1E-6); 190 192 Assert.AreEqual(393.84704062205469, ((DoubleValue)gbt.Results["Loss (test)"].Value).Value, 1E-6); … … 209 211 gbt.Nu = 0.02; 210 212 gbt.LossFunctionParameter.Value = gbt.LossFunctionParameter.ValidValues.First(l => l.ToString().Contains("Absolute")); 213 gbt.CreateSolution = false; 211 214 #endregion 212 215 213 216 RunAlgorithm(gbt); 214 217 218 Console.WriteLine(gbt.ExecutionTime); 215 219 Assert.AreEqual(10.551385044666661, ((DoubleValue)gbt.Results["Loss (train)"].Value).Value, 1E-6); 216 220 Assert.AreEqual(12.918001745581172, ((DoubleValue)gbt.Results["Loss (test)"].Value).Value, 1E-6); … … 235 239 gbt.Nu = 0.005; 236 240 gbt.LossFunctionParameter.Value = gbt.LossFunctionParameter.ValidValues.First(l => l.ToString().Contains("Relative")); 241 gbt.CreateSolution = false; 237 242 #endregion 238 243 239 244 RunAlgorithm(gbt); 240 245 246 Console.WriteLine(gbt.ExecutionTime); 241 247 Assert.AreEqual(0.061954221604374943, ((DoubleValue)gbt.Results["Loss (train)"].Value).Value, 1E-6); 242 248 Assert.AreEqual(0.06316303473499961, ((DoubleValue)gbt.Results["Loss (test)"].Value).Value, 1E-6);
Note: See TracChangeset
for help on using the changeset viewer.