Changeset 14305 for stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/VariableNetworks
- Timestamp:
- 09/23/16 12:57:27 (8 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 14228-14229
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.Instances.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis merged: 14228-14229
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/VariableNetworks/VariableNetworkInstanceProvider.cs
r14117 r14305 40 40 get { return ""; } 41 41 } 42 public int Seed { get; private set; } 43 44 public VariableNetworkInstanceProvider() : this((int)DateTime.Now.Ticks) { } 45 public VariableNetworkInstanceProvider(int seed) : base() { 46 Seed = seed; 47 } 42 48 43 49 public override IEnumerable<IDataDescriptor> GetDataDescriptors() { 44 50 var numVariables = new int[] { 10, 20, 50, 100 }; 45 51 var noiseRatios = new double[] { 0.01, 0.05, 0.1 }; 46 var rand = new System.Random(1234); // use fixed seed for deterministic problem generation52 var rand = new MersenneTwister((uint)Seed); // use fixed seed for deterministic problem generation 47 53 return (from size in numVariables 48 54 from noiseRatio in noiseRatios
Note: See TracChangeset
for help on using the changeset viewer.