Changeset 15281 for branches/Async/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Vladislavleva
- Timestamp:
- 07/23/17 11:17:18 (7 years ago)
- Location:
- branches/Async
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Async
- Property svn:ignore
-
old new 24 24 protoc.exe 25 25 obj 26 .vs
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/Async/HeuristicLab.Problems.Instances.DataAnalysis
- Property svn:mergeinfo changed
-
branches/Async/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Vladislavleva/KotanchekFunction.cs
r15280 r15281 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using System.Linq; 25 25 using HeuristicLab.Common; 26 using HeuristicLab.Random; 26 27 27 28 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 47 48 protected override int TestPartitionEnd { get { return 100 + (45 * 45); } } 48 49 50 public int Seed { get; private set; } 51 52 public KotanchekFunction() : this((int)DateTime.Now.Ticks) { } 53 54 public KotanchekFunction(int seed) : base() { 55 Seed = seed; 56 } 49 57 protected override List<List<double>> GenerateValues() { 50 58 List<List<double>> data = new List<List<double>>(); … … 53 61 List<List<double>> testData = new List<List<double>>() { oneVariableTestData, oneVariableTestData }; 54 62 var combinations = ValueGenerator.GenerateAllCombinationsOfValuesInLists(testData).ToList<IEnumerable<double>>(); 63 var rand = new MersenneTwister((uint)Seed); 64 55 65 for (int i = 0; i < AllowedInputVariables.Count(); i++) { 56 data.Add(ValueGenerator.GenerateUniformDistributedValues( 100, 0.3, 4).ToList());66 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), 100, 0.3, 4).ToList()); 57 67 data[i].AddRange(combinations[i]); 58 68 } -
branches/Async/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Vladislavleva/RationalPolynomialThreeDimensional.cs
r12292 r15281 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using System.Linq; 25 25 using HeuristicLab.Common; 26 using HeuristicLab.Random; 26 27 27 28 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 46 47 protected override int TestPartitionStart { get { return 300; } } 47 48 protected override int TestPartitionEnd { get { return 300 + (15 * 12 * 15); } } 49 public int Seed { get; private set; } 48 50 51 public RationalPolynomialThreeDimensional() : this((int)DateTime.Now.Ticks) { } 52 53 public RationalPolynomialThreeDimensional(int seed) : base() { 54 Seed = seed; 55 } 49 56 protected override List<List<double>> GenerateValues() { 50 57 List<List<double>> data = new List<List<double>>(); 51 58 52 59 int n = 300; 53 data.Add(ValueGenerator.GenerateUniformDistributedValues(n, 0.05, 2).ToList()); 54 data.Add(ValueGenerator.GenerateUniformDistributedValues(n, 1, 2).ToList()); 55 data.Add(ValueGenerator.GenerateUniformDistributedValues(n, 0.05, 2).ToList()); 60 var rand = new MersenneTwister((uint)Seed); 61 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), n, 0.05, 2).ToList()); 62 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), n, 1, 2).ToList()); 63 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), n, 0.05, 2).ToList()); 56 64 57 65 List<List<double>> testData = new List<List<double>>() { -
branches/Async/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Vladislavleva/RationalPolynomialTwoDimensional.cs
r12292 r15281 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using System.Linq; 25 25 using HeuristicLab.Common; 26 using HeuristicLab.Random; 26 27 27 28 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 47 48 protected override int TestPartitionEnd { get { return 50 + (34 * 34); } } 48 49 50 public int Seed { get; private set; } 51 52 public RationalPolynomialTwoDimensional() : this((int)DateTime.Now.Ticks) { } 53 54 public RationalPolynomialTwoDimensional(int seed) : base() { 55 Seed = seed; 56 } 49 57 protected override List<List<double>> GenerateValues() { 50 58 List<List<double>> data = new List<List<double>>(); … … 54 62 List<List<double>> testData = new List<List<double>>() { oneVariableTestData, oneVariableTestData }; 55 63 var combinations = ValueGenerator.GenerateAllCombinationsOfValuesInLists(testData).ToList<IEnumerable<double>>(); 64 var rand = new MersenneTwister((uint)Seed); 56 65 57 66 for (int i = 0; i < AllowedInputVariables.Count(); i++) { 58 data.Add(ValueGenerator.GenerateUniformDistributedValues( 50, 0.05, 6.05).ToList());67 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), 50, 0.05, 6.05).ToList()); 59 68 data[i].AddRange(combinations[i]); 60 69 } -
branches/Async/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Vladislavleva/RippleFunction.cs
r12012 r15281 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HeuristicLab.Random; 25 26 26 27 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 45 46 protected override int TestPartitionStart { get { return 300; } } 46 47 protected override int TestPartitionEnd { get { return 300 + 1000; } } 48 public int Seed { get; private set; } 47 49 50 public RippleFunction() : this((int)DateTime.Now.Ticks) { } 51 52 public RippleFunction(int seed) : base() { 53 Seed = seed; 54 } 48 55 protected override List<List<double>> GenerateValues() { 49 56 List<List<double>> data = new List<List<double>>(); 57 var rand = new MersenneTwister((uint)Seed); 50 58 for (int i = 0; i < AllowedInputVariables.Count(); i++) { 51 data.Add(ValueGenerator.GenerateUniformDistributedValues( 300, 0.05, 6.05).ToList());59 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), 300, 0.05, 6.05).ToList()); 52 60 } 53 61 54 62 for (int i = 0; i < AllowedInputVariables.Count(); i++) { 55 data[i].AddRange(ValueGenerator.GenerateUniformDistributedValues( 1000, -0.25, 6.35));63 data[i].AddRange(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), 1000, -0.25, 6.35)); 56 64 } 57 65 -
branches/Async/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Vladislavleva/SalutowiczFunctionOneDimensional.cs
r12292 r15281 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/Async/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Vladislavleva/SalutowiczFunctionTwoDimensional.cs
r12292 r15281 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. -
branches/Async/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Vladislavleva/SineCosineFunction.cs
r12292 r15281 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 24 24 using System.Linq; 25 25 using HeuristicLab.Common; 26 using HeuristicLab.Random; 26 27 27 28 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 46 47 protected override int TestPartitionStart { get { return 30; } } 47 48 protected override int TestPartitionEnd { get { return 30 + (306 * 306); } } 49 public int Seed { get; private set; } 48 50 51 public SineCosineFunction() : this((int)DateTime.Now.Ticks) { } 52 53 public SineCosineFunction(int seed) : base() { 54 Seed = seed; 55 } 49 56 protected override List<List<double>> GenerateValues() { 50 57 List<List<double>> data = new List<List<double>>(); … … 53 60 var combinations = ValueGenerator.GenerateAllCombinationsOfValuesInLists(testData).ToList<IEnumerable<double>>(); 54 61 62 var rand = new MersenneTwister((uint)Seed); 55 63 for (int i = 0; i < AllowedInputVariables.Count(); i++) { 56 data.Add(ValueGenerator.GenerateUniformDistributedValues( 30, 0.1, 5.9).ToList());64 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), 30, 0.1, 5.9).ToList()); 57 65 data[i].AddRange(combinations[i]); 58 66 } -
branches/Async/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Vladislavleva/UnwrappedBallFunctionFiveDimensional.cs
r12012 r15281 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using HeuristicLab.Random; 25 26 26 27 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 45 46 protected override int TestPartitionStart { get { return 1024; } } 46 47 protected override int TestPartitionEnd { get { return 6024; } } 48 public int Seed { get; private set; } 47 49 50 public UnwrappedBallFunctionFiveDimensional() : this((int)DateTime.Now.Ticks) { } 51 52 public UnwrappedBallFunctionFiveDimensional(int seed) : base() { 53 Seed = seed; 54 } 48 55 protected override List<List<double>> GenerateValues() { 49 56 List<List<double>> data = new List<List<double>>(); 57 var rand = new MersenneTwister((uint)Seed); 50 58 for (int i = 0; i < AllowedInputVariables.Count(); i++) { 51 data.Add(ValueGenerator.GenerateUniformDistributedValues( 1024, 0.05, 6.05).ToList());52 data[i].AddRange(ValueGenerator.GenerateUniformDistributedValues( 5000, -0.25, 6.35));59 data.Add(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), 1024, 0.05, 6.05).ToList()); 60 data[i].AddRange(ValueGenerator.GenerateUniformDistributedValues(rand.Next(), 5000, -0.25, 6.35)); 53 61 } 54 62 -
branches/Async/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/Vladislavleva/VladislavlevaInstanceProvider.cs
r12012 r15281 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 5Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2016 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using System; 23 23 using System.Collections.Generic; 24 using HeuristicLab.Random; 24 25 25 26 namespace HeuristicLab.Problems.Instances.DataAnalysis { … … 38 39 } 39 40 41 public int Seed { get; private set; } 42 43 public VladislavlevaInstanceProvider() : this((int)DateTime.Now.Ticks) { } 44 public VladislavlevaInstanceProvider(int seed) : base() { 45 Seed = seed; 46 } 47 40 48 public override IEnumerable<IDataDescriptor> GetDataDescriptors() { 41 49 List<IDataDescriptor> descriptorList = new List<IDataDescriptor>(); 42 descriptorList.Add(new KotanchekFunction()); 50 var rand = new MersenneTwister((uint)Seed); 51 descriptorList.Add(new KotanchekFunction(rand.Next())); 43 52 descriptorList.Add(new SalutowiczFunctionOneDimensional()); 44 53 descriptorList.Add(new SalutowiczFunctionTwoDimensional()); 45 descriptorList.Add(new UnwrappedBallFunctionFiveDimensional( ));46 descriptorList.Add(new RationalPolynomialThreeDimensional( ));47 descriptorList.Add(new SineCosineFunction( ));48 descriptorList.Add(new RippleFunction( ));49 descriptorList.Add(new RationalPolynomialTwoDimensional( ));54 descriptorList.Add(new UnwrappedBallFunctionFiveDimensional(rand.Next())); 55 descriptorList.Add(new RationalPolynomialThreeDimensional(rand.Next())); 56 descriptorList.Add(new SineCosineFunction(rand.Next())); 57 descriptorList.Add(new RippleFunction(rand.Next())); 58 descriptorList.Add(new RationalPolynomialTwoDimensional(rand.Next())); 50 59 return descriptorList; 51 60 }
Note: See TracChangeset
for help on using the changeset viewer.