- Timestamp:
- 08/17/15 16:35:47 (9 years ago)
- Location:
- branches/crossvalidation-2434
- Files:
-
- 4 deleted
- 25 edited
- 5 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/crossvalidation-2434
- Property svn:mergeinfo changed
/trunk/sources merged: 12835-12837,12839,12844-12846,12851,12855,12868
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab 3.3.sln
r12755 r12869 350 350 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Clients.OKB.Views-3.3", "HeuristicLab.Clients.OKB.Views\3.3\HeuristicLab.Clients.OKB.Views-3.3.csproj", "{399EBB6E-37A1-4AE4-B8CD-0D461FF286A3}" 351 351 EndProject 352 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.LawnMower ", "HeuristicLab.Problems.LawnMower\3.3\HeuristicLab.Problems.LawnMower.csproj", "{9A04599C-D608-4240-8DA6-D41F51C515A3}"353 EndProject 354 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.LawnMower.Views ", "HeuristicLab.Problems.LawnMower.Views\3.3\HeuristicLab.Problems.LawnMower.Views.csproj", "{71CDE004-C50F-48DF-858E-AB0AAA3537BC}"352 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.LawnMower-3.3", "HeuristicLab.Problems.LawnMower\3.3\HeuristicLab.Problems.LawnMower-3.3.csproj", "{9A04599C-D608-4240-8DA6-D41F51C515A3}" 353 EndProject 354 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.LawnMower.Views-3.3", "HeuristicLab.Problems.LawnMower.Views\3.3\HeuristicLab.Problems.LawnMower.Views-3.3.csproj", "{71CDE004-C50F-48DF-858E-AB0AAA3537BC}" 355 355 EndProject 356 356 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Algorithms.ScatterSearch-3.3", "HeuristicLab.Algorithms.ScatterSearch\3.3\HeuristicLab.Algorithms.ScatterSearch-3.3.csproj", "{5FEE5DB4-7FD9-4CBD-BEC2-3FEE17B31A94}" … … 379 379 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.Instances.Scheduling-3.3", "HeuristicLab.Problems.Instances.Scheduling\3.3\HeuristicLab.Problems.Instances.Scheduling-3.3.csproj", "{9D792B6D-836B-46DC-9D69-50B4B1E7B87F}" 380 380 EndProject 381 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.ParallelEngine.Views ", "HeuristicLab.ParallelEngine.Views\3.3\HeuristicLab.ParallelEngine.Views.csproj", "{D34A7620-3E23-40D9-8647-637BE901F271}"381 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.ParallelEngine.Views-3.3", "HeuristicLab.ParallelEngine.Views\3.3\HeuristicLab.ParallelEngine.Views-3.3.csproj", "{D34A7620-3E23-40D9-8647-637BE901F271}" 382 382 EndProject 383 383 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Algorithms.CMAEvolutionStrategy-3.3", "HeuristicLab.Algorithms.CMAEvolutionStrategy\3.3\HeuristicLab.Algorithms.CMAEvolutionStrategy-3.3.csproj", "{5E516C4F-9935-437F-8B15-ECEF4451744E}" … … 421 421 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.ExternalEvaluation.Views-3.4", "HeuristicLab.Problems.ExternalEvaluation.Views\3.4\HeuristicLab.Problems.ExternalEvaluation.Views-3.4.csproj", "{F7E5B975-FDF2-45A4-91CB-FF6D3C33D65E}" 422 422 EndProject 423 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.NK ", "HeuristicLab.Problems.NK\3.3\HeuristicLab.Problems.NK.csproj", "{C3AD50E6-E717-490E-ABC7-32EF7FB03C97}"423 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.NK-3.3", "HeuristicLab.Problems.NK\3.3\HeuristicLab.Problems.NK-3.3.csproj", "{C3AD50E6-E717-490E-ABC7-32EF7FB03C97}" 424 424 EndProject 425 425 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "OutdatedPlugins", "OutdatedPlugins", "{D1B1DE45-F9C7-4FBF-B73C-E759BC4223D5}" -
branches/crossvalidation-2434/HeuristicLab.Algorithms.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Algorithms.DataAnalysis merged: 12868
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesAlgorithm.cs
r12632 r12869 233 233 // produce solution 234 234 if (CreateSolution) { 235 var surrogateModel = new GradientBoostedTreesModelSurrogate(problemData, (uint)Seed, lossFunction.ToString(), 236 Iterations, MaxSize, R, M, Nu, state.GetModel()); 237 235 238 // for logistic regression we produce a classification solution 236 239 if (lossFunction is LogisticRegressionLoss) { 237 var model = new DiscriminantFunctionClassificationModel(s tate.GetModel(),240 var model = new DiscriminantFunctionClassificationModel(surrogateModel, 238 241 new AccuracyMaximizationThresholdCalculator()); 239 242 var classificationProblemData = new ClassificationProblemData(problemData.Dataset, … … 245 248 } else { 246 249 // otherwise we produce a regression solution 247 Results.Add(new Result("Solution", new RegressionSolution(s tate.GetModel(), problemData)));250 Results.Add(new Result("Solution", new RegressionSolution(surrogateModel, problemData))); 248 251 } 249 252 } -
branches/crossvalidation-2434/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesModel.cs
r12660 r12869 34 34 // this is essentially a collection of weighted regression models 35 35 public sealed class GradientBoostedTreesModel : NamedItem, IRegressionModel { 36 [Storable] 36 // BackwardsCompatibility3.4 for allowing deserialization & serialization of old models 37 #region Backwards compatible code, remove with 3.5 38 private bool isCompatibilityLoaded = false; // only set to true if the model is deserialized from the old format, needed to make sure that information is serialized again if it was loaded from the old format 39 40 [Storable(Name = "models")] 41 private IList<IRegressionModel> __persistedModels { 42 set { 43 this.isCompatibilityLoaded = true; 44 this.models.Clear(); 45 foreach (var m in value) this.models.Add(m); 46 } 47 get { if (this.isCompatibilityLoaded) return models; else return null; } 48 } 49 [Storable(Name = "weights")] 50 private IList<double> __persistedWeights { 51 set { 52 this.isCompatibilityLoaded = true; 53 this.weights.Clear(); 54 foreach (var w in value) this.weights.Add(w); 55 } 56 get { if (this.isCompatibilityLoaded) return weights; else return null; } 57 } 58 #endregion 59 37 60 private readonly IList<IRegressionModel> models; 38 61 public IEnumerable<IRegressionModel> Models { get { return models; } } 39 62 40 [Storable]41 63 private readonly IList<double> weights; 42 64 public IEnumerable<double> Weights { get { return weights; } } 43 65 44 66 [StorableConstructor] 45 private GradientBoostedTreesModel(bool deserializing) : base(deserializing) { } 67 private GradientBoostedTreesModel(bool deserializing) 68 : base(deserializing) { 69 models = new List<IRegressionModel>(); 70 weights = new List<double>(); 71 } 46 72 private GradientBoostedTreesModel(GradientBoostedTreesModel original, Cloner cloner) 47 73 : base(original, cloner) { 48 74 this.weights = new List<double>(original.weights); 49 75 this.models = new List<IRegressionModel>(original.models.Select(m => cloner.Clone(m))); 76 this.isCompatibilityLoaded = original.isCompatibilityLoaded; 50 77 } 51 78 public GradientBoostedTreesModel(IEnumerable<IRegressionModel> models, IEnumerable<double> weights) … … 64 91 // allocate target array go over all models and add up weighted estimation for each row 65 92 if (!rows.Any()) return Enumerable.Empty<double>(); // return immediately if rows is empty. This prevents multiple iteration over lazy rows enumerable. 66 93 // (which essentially looks up indexes in a dictionary) 67 94 var res = new double[rows.Count()]; 68 95 for (int i = 0; i < models.Count; i++) { -
branches/crossvalidation-2434/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/RegressionTreeModel.cs
r12700 r12869 82 82 [Storable] 83 83 // to prevent storing the references to data caches in nodes 84 // seemingly it is bad (performance-wise) to persist tuples (tuples are used as keys in a dictionary) TODO 84 85 private Tuple<string, double, int, int>[] SerializedTree { 85 86 get { return tree.Select(t => Tuple.Create(t.VarName, t.Val, t.LeftIdx, t.RightIdx)).ToArray(); } -
branches/crossvalidation-2434/HeuristicLab.Algorithms.DataAnalysis/3.4/HeuristicLab.Algorithms.DataAnalysis-3.4.csproj
r12700 r12869 195 195 <Compile Include="GaussianProcess\GaussianProcessRegressionSolution.cs" /> 196 196 <Compile Include="GaussianProcess\ICovarianceFunction.cs" /> 197 <Compile Include="GradientBoostedTrees\GradientBoostedTreesModelSurrogate.cs" /> 197 198 <Compile Include="GradientBoostedTrees\GradientBoostedTreesAlgorithm.cs" /> 198 199 <Compile Include="GradientBoostedTrees\GradientBoostedTreesAlgorithmStatic.cs" /> -
branches/crossvalidation-2434/HeuristicLab.Analysis.Statistics.Views/3.3/StatisticalTestsView.cs
r12690 r12869 275 275 data = new double[columnNames.Count()][]; 276 276 277 if (!groups.Any() || !columnNames.Any()) { 278 return; 279 } 280 277 281 DoubleMatrix dt = new DoubleMatrix(groups.Select(x => x.Count()).Max(), columnNames.Count()); 278 282 dt.ColumnNames = columnNames; … … 311 315 312 316 foreach (string cn in columnNames) { 313 var tmpRuns = runs.Where(x => ((string)((dynamic)x.Parameters[parameterName]).Value.ToString()) == cn); 317 var tmpRuns = runs.Where(x => 318 x.Parameters.ContainsKey(parameterName) && 319 (((string)((dynamic)x.Parameters[parameterName]).Value.ToString()) == cn)); 314 320 runCols.Add(tmpRuns); 315 321 } … … 331 337 332 338 private bool VerifyDataLength(bool showMessage) { 333 if (data == null || data.Length == 0)339 if (data == null || data.Length < 2) 334 340 return false; 335 341 … … 457 463 double[][] newData = FilterDataForPairwiseTest(colIndex); 458 464 459 var rowNames = new[] { "p-Value of Mann-Whitney U", "Adjusted p-Value of Mann-Whitney U", 465 var rowNames = new[] { "p-Value of Mann-Whitney U", "Adjusted p-Value of Mann-Whitney U", 460 466 "p-Value of T-Test", "Adjusted p-Value of T-Test", "Cohen's d", "Hedges' g" }; 461 467 -
branches/crossvalidation-2434/HeuristicLab.Encodings.IntegerVectorEncoding
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Encodings.IntegerVectorEncoding (added) merged: 12837
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Encodings.IntegerVectorEncoding/3.3/IntegerVectorEncoding.cs
r12012 r12869 130 130 } 131 131 132 LengthParameter = new FixedValueParameter<IntValue>(Name + ".Length", new IntValue(length)); 133 BoundsParameter = new ValueParameter<IntMatrix>(Name + ".Bounds", bounds); 132 lengthParameter = new FixedValueParameter<IntValue>(Name + ".Length", new IntValue(length)); 133 boundsParameter = new ValueParameter<IntMatrix>(Name + ".Bounds", bounds); 134 Parameters.Add(lengthParameter); 135 Parameters.Add(boundsParameter); 134 136 135 137 SolutionCreator = new UniformRandomIntegerVectorCreator(); -
branches/crossvalidation-2434/HeuristicLab.Encodings.RealVectorEncoding
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Encodings.RealVectorEncoding (added) merged: 12837
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Encodings.RealVectorEncoding/3.3/RealVectorEncoding.cs
r12012 r12869 124 124 bounds[i, 1] = max[i]; 125 125 } 126 LengthParameter = new FixedValueParameter<IntValue>(Name + ".Length", new IntValue(length)); 127 BoundsParameter = new ValueParameter<DoubleMatrix>(Name + ".Bounds", bounds); 126 lengthParameter = new FixedValueParameter<IntValue>(Name + ".Length", new IntValue(length)); 127 boundsParameter = new ValueParameter<DoubleMatrix>(Name + ".Bounds", bounds); 128 Parameters.Add(lengthParameter); 129 Parameters.Add(boundsParameter); 128 130 129 131 SolutionCreator = new UniformRandomRealVectorCreator(); -
branches/crossvalidation-2434/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding (added) merged: 12844
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators/FullTreeCreator.cs
r12422 r12869 77 77 rootNode.AddSubtree(startNode); 78 78 79 Create(random, startNode, maxTreeDepth - 2);79 Create(random, startNode, maxTreeDepth-1); 80 80 tree.Root = rootNode; 81 81 return tree; … … 99 99 for (var i = 0; i < arity; i++) { 100 100 var possibleSymbols = allowedSymbols 101 .Where(s => seedNode.Grammar.IsAllowedChildSymbol(seedNode.Symbol, s, i)) 101 .Where(s => seedNode.Grammar.IsAllowedChildSymbol(seedNode.Symbol, s, i) 102 && seedNode.Grammar.GetMinimumExpressionDepth(s) <= maxDepth 103 && seedNode.Grammar.GetMaximumExpressionDepth(s) >= maxDepth) 102 104 .ToList(); 103 105 var weights = possibleSymbols.Select(s => s.InitialFrequency).ToList(); … … 142 144 var selectedSymbol = possibleSymbols.SelectRandom(weights, random); 143 145 #pragma warning restore 612, 618 144 146 145 147 var tree = selectedSymbol.CreateTreeNode(); 146 148 if (tree.HasLocalParameters) tree.ResetLocalParameters(random); -
branches/crossvalidation-2434/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding/3.4/Creators/GrowTreeCreator.cs
r12422 r12869 74 74 rootNode.AddSubtree(startNode); 75 75 76 Create(random, startNode, maxTreeDepth - 2);76 Create(random, startNode, maxTreeDepth - 1); 77 77 tree.Root = rootNode; 78 78 return tree; -
branches/crossvalidation-2434/HeuristicLab.Problems.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis merged: 12851
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Problems.DataAnalysis.Symbolic
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic (added) merged: 12839
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/TreeMatching/SymbolicExpressionTreePhenotypicSimilarityCalculator.cs
r12641 r12869 67 67 var r = OnlinePearsonsRCalculator.Calculate(v1, v2, out error); 68 68 69 if (r > 1.0) 70 r = 1.0; 69 var r2 = error == OnlineCalculatorError.None ? r * r : 0; 71 70 72 return error == OnlineCalculatorError.None ? r*r : 0; 71 if (r2 > 1.0) 72 r2 = 1.0; 73 74 return r2; 73 75 } 74 76 … … 89 91 var r = OnlinePearsonsRCalculator.Calculate(leftValues, rightValues, out error); 90 92 91 if (r > 1.0) 92 r = 1.0; // sometimes due to fp errors it can happen that the correlation is over 1 (like 1.0000000009) 93 var r2 = error == OnlineCalculatorError.None ? r * r : 0; 93 94 94 return error == OnlineCalculatorError.None ? r*r : 0; 95 if (r2 > 1.0) 96 r2 = 1.0; 97 98 return r2; 95 99 } 96 100 } -
branches/crossvalidation-2434/HeuristicLab.Problems.DataAnalysis/3.4/Interfaces/Regression/IRegressionSolution.cs
r12012 r12869 41 41 double TrainingNormalizedMeanSquaredError { get; } 42 42 double TestNormalizedMeanSquaredError { get; } 43 double TrainingRootMeanSquaredError { get; } 44 double TestRootMeanSquaredError { get; } 43 45 } 44 46 } -
branches/crossvalidation-2434/HeuristicLab.Problems.LawnMower
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.LawnMower (added) merged: 12846
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Problems.QuadraticAssignment.Algorithms/3.3/RobustTabooSeachOperator.cs
r12820 r12869 20 20 #endregion 21 21 22 using System; 22 23 using HeuristicLab.Common; 23 24 using HeuristicLab.Core; … … 92 93 } 93 94 94 public ILookupParameter<IntValue> EvaluatedMovesParameter { 95 get { return (ILookupParameter<IntValue>)Parameters["EvaluatedMoves"]; } 95 public ILookupParameter<IntValue> EvaluatedSolutionsParameter { 96 get { return (ILookupParameter<IntValue>)Parameters["EvaluatedSolutions"]; } 97 } 98 99 public ILookupParameter<DoubleValue> EvaluatedSolutionEquivalentsParameter { 100 get { return (ILookupParameter<DoubleValue>)Parameters["EvaluatedSolutionEquivalents"]; } 96 101 } 97 102 #endregion … … 121 126 Parameters.Add(new ValueLookupParameter<IntValue>("AlternativeAspirationTenure", "The time t that a move will be remembered for the alternative aspiration condition.")); 122 127 Parameters.Add(new LookupParameter<BoolValue>("AllMovesTabu", "Indicates that all moves are tabu.")); 123 Parameters.Add(new LookupParameter<IntValue>("EvaluatedMoves", "The number of move evaluations made.")); 128 Parameters.Add(new LookupParameter<IntValue>("EvaluatedSolutions", "The number of evaluated solutions.")); 129 Parameters.Add(new LookupParameter<DoubleValue>("EvaluatedSolutionEquivalents", "The number of evaluated solution equivalents.")); 124 130 } 125 131 … … 135 141 Parameters.Add(new LookupParameter<BoolValue>("AllMovesTabu", "Indicates that all moves are tabu.")); 136 142 } 137 if (!Parameters.ContainsKey("EvaluatedMoves")) { 138 Parameters.Add(new LookupParameter<IntValue>("EvaluatedMoves", "The number of move evaluations made.")); 143 if (!Parameters.ContainsKey("EvaluatedSolutions")) { 144 Parameters.Add(new LookupParameter<IntValue>("EvaluatedSolutions", "The number of evaluated solutions.")); 145 } 146 if (!Parameters.ContainsKey("EvaluatedSolutionEquivalents")) { 147 Parameters.Add(new LookupParameter<DoubleValue>("EvaluatedSolutionEquivalents", "The number of evaluated solution equivalents.")); 139 148 } 140 149 #endregion … … 171 180 bool already_aspired = false; 172 181 173 var evaluatedMoves = 0;182 double evaluations = EvaluatedSolutionEquivalentsParameter.ActualValue.Value; 174 183 foreach (Swap2Move move in ExhaustiveSwap2MoveGenerator.Generate(solution)) { 175 184 double moveQuality; 176 185 if (lastMove == null) { 177 186 moveQuality = QAPSwap2MoveEvaluator.Apply(solution, move, weights, distances); 178 evaluat edMoves++;187 evaluations += 4.0 / solution.Length; 179 188 } else if (allMovesTabu) moveQuality = moveQualityMatrix[move.Index1, move.Index2]; 180 189 else { 181 190 moveQuality = QAPSwap2MoveEvaluator.Apply(solution, move, moveQualityMatrix[move.Index1, move.Index2], weights, distances, lastMove); 182 evaluatedMoves++; 191 if (move.Index1 == lastMove.Index1 || move.Index2 == lastMove.Index1 || move.Index1 == lastMove.Index2 || move.Index2 == lastMove.Index2) 192 evaluations += 4.0 / solution.Length; 193 else evaluations += 2.0 / (solution.Length * solution.Length); 183 194 } 184 195 … … 214 225 } 215 226 216 EvaluatedMovesParameter.ActualValue.Value += evaluatedMoves; 227 EvaluatedSolutionEquivalentsParameter.ActualValue.Value = evaluations; 228 EvaluatedSolutionsParameter.ActualValue.Value = (int)Math.Ceiling(evaluations); 217 229 218 230 allMovesTabu = bestMove == null; -
branches/crossvalidation-2434/HeuristicLab.Problems.QuadraticAssignment.Algorithms/3.3/RobustTabooSearch.cs
r12820 r12869 168 168 VariableCreator variableCreator = new VariableCreator(); 169 169 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("Iterations", new IntValue(0))); 170 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("EvaluatedSolutions", new IntValue( 0)));171 variableCreator.CollectedValues.Add(new ValueParameter< IntValue>("EvaluatedMoves", new IntValue(0)));170 variableCreator.CollectedValues.Add(new ValueParameter<IntValue>("EvaluatedSolutions", new IntValue(1))); 171 variableCreator.CollectedValues.Add(new ValueParameter<DoubleValue>("EvaluatedSolutionEquivalents", new DoubleValue(1))); 172 172 173 173 ResultsCollector resultsCollector = new ResultsCollector(); 174 174 resultsCollector.CollectedValues.Add(new LookupParameter<IntValue>("Iterations", "The actual iteration.")); 175 resultsCollector.CollectedValues.Add(new LookupParameter<IntValue>("EvaluatedSolutions", "The number of full solution evaluations.")); 176 resultsCollector.CollectedValues.Add(new LookupParameter<IntValue>("EvaluatedMoves", "The number of move evaluations.")); 175 resultsCollector.CollectedValues.Add(new LookupParameter<IntValue>("EvaluatedSolutions", "Number of evaluated solutions.")); 177 176 178 177 solutionsCreator = new SolutionsCreator(); 179 178 solutionsCreator.NumberOfSolutions = new IntValue(1); 180 181 IntCounter counter = new IntCounter();182 counter.ValueParameter.ActualName = "EvaluatedSolutions";183 counter.Increment = new IntValue(1);184 179 185 180 Placeholder analyzer = new Placeholder(); … … 202 197 mainOperator.ShortTermMemoryParameter.ActualName = "ShortTermMemory"; 203 198 mainOperator.UseAlternativeAspirationParameter.ActualName = UseAlternativeAspirationParameter.Name; 204 mainOperator.EvaluatedMovesParameter.ActualName = "EvaluatedMoves"; 199 mainOperator.EvaluatedSolutionsParameter.ActualName = "EvaluatedSolutions"; 200 mainOperator.EvaluatedSolutionEquivalentsParameter.ActualName = "EvaluatedSolutionEquivalents"; 205 201 206 202 ConditionalBranch qualityStopBranch = new ConditionalBranch(); … … 235 231 variableCreator.Successor = resultsCollector; 236 232 resultsCollector.Successor = solutionsCreator; 237 solutionsCreator.Successor = counter; 238 counter.Successor = analyzer; 233 solutionsCreator.Successor = analyzer; 239 234 analyzer.Successor = ussp; 240 235 ussp.Operator = mainOperator; -
branches/crossvalidation-2434/HeuristicLab.Tests
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Tests merged: 12836,12844
- Property svn:mergeinfo changed
-
branches/crossvalidation-2434/HeuristicLab.Tests/HeuristicLab-3.3/Samples/VnsOpSampleTest.cs
r12820 r12869 37 37 [TestCategory("Samples.Create")] 38 38 [TestProperty("Time", "medium")] 39 public void CreateVns TspSampleTest() {40 var vns = CreateVns TspSample();39 public void CreateVnsOpSampleTest() { 40 var vns = CreateVnsOpSample(); 41 41 string path = Path.Combine(SamplesUtils.SamplesDirectory, SampleFileName + SamplesUtils.SampleFileExtension); 42 42 XmlGenerator.Serialize(vns, path); … … 45 45 [TestCategory("Samples.Execute")] 46 46 [TestProperty("Time", "long")] 47 public void RunVns TspSampleTest() {48 var vns = CreateVns TspSample();47 public void RunVnsOpSampleTest() { 48 var vns = CreateVnsOpSample(); 49 49 vns.SetSeedRandomly = false; 50 50 SamplesUtils.RunAlgorithm(vns); … … 55 55 } 56 56 57 private VariableNeighborhoodSearch CreateVns TspSample() {57 private VariableNeighborhoodSearch CreateVnsOpSample() { 58 58 VariableNeighborhoodSearch vns = new VariableNeighborhoodSearch(); 59 59 #region Problem Configuration -
branches/crossvalidation-2434/HeuristicLab.Tests/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.4/FullTreeCreatorTest.cs
r12012 r12869 53 53 foreach (var tree in randomTrees) { 54 54 Util.IsValid(tree); 55 Assert.IsTrue(tree.Depth == MAX_TREE_DEPTH);55 Assert.IsTrue(tree.Depth-1 == MAX_TREE_DEPTH); 56 56 if (maxLength < tree.Length) 57 57 maxLength = tree.Length;
Note: See TracChangeset
for help on using the changeset viewer.