Changeset 7127
- Timestamp:
- 12/05/11 17:03:49 (13 years ago)
- Location:
- branches/RegressionBenchmarks
- Files:
-
- 58 added
- 2 deleted
- 51 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/Benchmark.cs
r7025 r7127 20 20 #endregion 21 21 22 using System.IO; 23 using System.Linq; 24 using System.Reflection; 22 25 using HeuristicLab.Common; 23 26 using HeuristicLab.Core; … … 33 36 throw new System.NotImplementedException(); 34 37 } 38 39 #region Helpers 40 protected static TableFileParser getParserForFile(string fileName) { 41 Assembly assembly = Assembly.GetExecutingAssembly(); 42 string file = assembly.GetManifestResourceNames().Where(x => x.EndsWith(fileName)).First(); 43 44 string path = Path.GetTempFileName(); 45 46 using (Stream stream = assembly.GetManifestResourceStream(file)) { 47 WriteStreamToTempFile(stream, path); 48 } 49 50 TableFileParser csvFileParser = new TableFileParser(); 51 csvFileParser.Parse(path); 52 53 return csvFileParser; 54 } 55 56 private static void WriteStreamToTempFile(Stream stream, string path) { 57 using (FileStream output = new FileStream(path, FileMode.Create, FileAccess.Write)) { 58 int cnt = 0; 59 byte[] buffer = new byte[32 * 1024]; 60 while ((cnt = stream.Read(buffer, 0, buffer.Length)) != 0) 61 output.Write(buffer, 0, cnt); 62 } 63 } 64 #endregion 35 65 } 36 66 } -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/HeuristicLab.Problems.DataAnalysis.Benchmarks-3.4.csproj
r7096 r7127 49 49 <ItemGroup> 50 50 <Compile Include="Benchmark.cs" /> 51 <Compile Include="Generator\RegressionRealWorldBenchmark.cs" /> 52 <Compile Include="Generator\RegressionToyBenchmark.cs" /> 51 <Compile Include="ClassificationBenchmark\RealWorldProblems\Iris.cs" /> 52 <Compile Include="ClassificationBenchmark\RealWorldProblems\Mammography.cs" /> 53 <Compile Include="RegressionBenchmarks\Other\BreimanOne.cs" /> 54 <Compile Include="ClassificationGenerator\ClassificationBenchmark.cs" /> 55 <Compile Include="ClassificationGenerator\ClassificationRealWorldBenchmark.cs" /> 56 <Compile Include="ClassificationGenerator\ClassificationToyBenchmark.cs" /> 57 <Compile Include="RegressionBenchmarks\Trent McConaghy\HighVoltrefPWR.cs" /> 58 <Compile Include="RegressionBenchmarks\Trent McConaghy\HighVoltrefDVREF.cs" /> 59 <Compile Include="RegressionBenchmarks\Trent McConaghy\HighSenseampPwr.cs" /> 60 <Compile Include="RegressionBenchmarks\Trent McConaghy\HighSenseampDelay.cs" /> 61 <Compile Include="RegressionBenchmarks\Trent McConaghy\HighOpampSR.cs" /> 62 <Compile Include="RegressionBenchmarks\Trent McConaghy\HighOpampPM.cs" /> 63 <Compile Include="RegressionBenchmarks\Trent McConaghy\HighOpampBW.cs" /> 64 <Compile Include="RegressionBenchmarks\Trent McConaghy\HighOpampAV.cs" /> 65 <Compile Include="RegressionBenchmarks\Trent McConaghy\HighGmcIL.cs" /> 66 <Compile Include="RegressionBenchmarks\Trent McConaghy\HighGmcATTEN.cs" /> 67 <Compile Include="RegressionBenchmarks\Trent McConaghy\HighComparBw.cs" /> 68 <Compile Include="RegressionBenchmarks\Trent McConaghy\HighBitcellCellI.cs" /> 69 <Compile Include="RegressionBenchmarks\Trent McConaghy\MediumSrp.cs" /> 70 <Compile Include="RegressionBenchmarks\Trent McConaghy\MediumSrn.cs" /> 71 <Compile Include="RegressionBenchmarks\Trent McConaghy\MediumPm.cs" /> 72 <Compile Include="RegressionBenchmarks\Trent McConaghy\MediumOffsetn.cs" /> 73 <Compile Include="RegressionBenchmarks\Trent McConaghy\MediumLogfu.cs" /> 74 <Compile Include="RegressionBenchmarks\Trent McConaghy\MediumLfgain.cs" /> 75 <Compile Include="RegressionGenerator\RegressionRealWorldBenchmark.cs" /> 76 <Compile Include="RegressionGenerator\RegressionToyBenchmark.cs" /> 53 77 <Compile Include="Plugin.cs" /> 54 78 <Compile Include="Properties\AssemblyInfo.cs" /> … … 158 182 <SubType>Code</SubType> 159 183 </Compile> 160 <Compile Include="RegressionBenchmarks\Poli\PloyTen.cs" /> 184 <Compile Include="RegressionBenchmarks\Other\SpatialCoevolution.cs" /> 185 <Compile Include="RegressionBenchmarks\Other\PloyTen.cs" /> 161 186 <Compile Include="RegressionBenchmarks\RealWorldProblems\ChemicalOne.cs" /> 162 187 <Compile Include="RegressionBenchmarks\RealWorldProblems\Housing.cs" /> 163 188 <Compile Include="RegressionBenchmarks\RealWorldProblems\TowerProblem.cs" /> 164 <Compile Include=" Generator\RegressionBenchmark.cs" />189 <Compile Include="RegressionGenerator\RegressionBenchmark.cs" /> 165 190 <Compile Include="RegressionBenchmarks\Vladislavleva\KotanchekFunction.cs"> 166 191 <SubType>Code</SubType> … … 223 248 </ItemGroup> 224 249 <ItemGroup> 250 <EmbeddedResource Include="ClassificationBenchmark\RealWorldProblems\files\iris.data" /> 251 <EmbeddedResource Include="ClassificationBenchmark\RealWorldProblems\files\mammography.csv" /> 225 252 <None Include="HeuristicLab.snk" /> 226 253 <None Include="Plugin.cs.frame" /> … … 228 255 <EmbeddedResource Include="RegressionBenchmarks\RealWorldProblems\files\chemical-I.csv" /> 229 256 <EmbeddedResource Include="RegressionBenchmarks\RealWorldProblems\files\housing.csv" /> 230 </ItemGroup> 231 <ItemGroup /> 257 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\high\bitcell_cell_i.csv" /> 258 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\high\compar_bw.csv" /> 259 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\high\opamp_AV.csv" /> 260 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\high\opamp_BW.csv" /> 261 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\high\opamp_PM.csv" /> 262 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\high\opamp_SR.csv" /> 263 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\high\senseamp_delay.csv" /> 264 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\high\senseamp_pwr.csv" /> 265 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\high\voltref_DVREF.csv" /> 266 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\high\voltref_PWR.csv" /> 267 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\high\gmc_ATTEN.csv" /> 268 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\high\gmc_IL.csv" /> 269 </ItemGroup> 270 <ItemGroup> 271 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\medium\lfgain.txt" /> 272 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\medium\logfu.txt" /> 273 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\medium\offsetn.txt" /> 274 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\medium\pm.txt" /> 275 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\medium\srn.txt" /> 276 <EmbeddedResource Include="RegressionBenchmarks\Trent McConaghy\medium\srp.txt" /> 277 </ItemGroup> 232 278 <ItemGroup> 233 279 <EmbeddedResource Include="RegressionBenchmarks\RealWorldProblems\files\towerData.txt" /> -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Keijzer/KeijzerFunctionEight.cs
r7096 r7127 39 39 inputVariables = new List<string>() { "X" }; 40 40 trainingPartition = new IntRange(0, 101); 41 testPartition = new IntRange(10 2, 1103);41 testPartition = new IntRange(101, 1103); 42 42 } 43 43 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Keijzer/KeijzerFunctionFifteen.cs
r7085 r7127 38 38 inputVariables = new List<string>() { "X", "Y" }; 39 39 trainingPartition = new IntRange(0, 20); 40 testPartition = new IntRange(2 1, 621);40 testPartition = new IntRange(20, 621); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Keijzer/KeijzerFunctionFour.cs
r7085 r7127 38 38 inputVariables = new List<string>() { "X" }; 39 39 trainingPartition = new IntRange(0, 21); 40 testPartition = new IntRange(2 2, 2022);40 testPartition = new IntRange(21, 2022); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Keijzer/KeijzerFunctionSeven.cs
r7044 r7127 39 39 inputVariables = new List<string>() { "X" }; 40 40 trainingPartition = new IntRange(0, 50); 41 testPartition = new IntRange(5 1, 170);41 testPartition = new IntRange(50, 170); 42 42 } 43 43 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Keijzer/KeijzerFunctionSix.cs
r7044 r7127 38 38 inputVariables = new List<string>() { "X", "Y", "Z" }; 39 39 trainingPartition = new IntRange(0, 1000); 40 testPartition = new IntRange(100 1, 11000);40 testPartition = new IntRange(1000, 11000); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Keijzer/KeijzerFunctionSixteen.cs
r7085 r7127 38 38 inputVariables = new List<string>() { "X", "Y" }; 39 39 trainingPartition = new IntRange(0, 20); 40 testPartition = new IntRange(2 1, 621);40 testPartition = new IntRange(20, 621); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Keijzer/KeijzerFunctionThirteen.cs
r7085 r7127 38 38 inputVariables = new List<string>() { "X", "Y" }; 39 39 trainingPartition = new IntRange(0, 20); 40 testPartition = new IntRange(2 1, 621);40 testPartition = new IntRange(20, 621); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Keijzer/KeijzerFunctionTwelve.cs
r7085 r7127 38 38 inputVariables = new List<string>() { "X", "Y" }; 39 39 trainingPartition = new IntRange(0, 20); 40 testPartition = new IntRange(2 1, 621);40 testPartition = new IntRange(20, 621); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionEight.cs
r7095 r7127 44 44 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 45 45 trainingPartition = new IntRange(0, 5000); 46 testPartition = new IntRange(500 1, 10000);46 testPartition = new IntRange(5000, 10000); 47 47 } 48 48 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionEleven.cs
r7095 r7127 43 43 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 44 44 trainingPartition = new IntRange(0, 5000); 45 testPartition = new IntRange(500 1, 10000);45 testPartition = new IntRange(5000, 10000); 46 46 } 47 47 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionFive.cs
r7095 r7127 44 44 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 45 45 trainingPartition = new IntRange(0, 5000); 46 testPartition = new IntRange(500 1, 10000);46 testPartition = new IntRange(5000, 10000); 47 47 } 48 48 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionFiveteen.cs
r7095 r7127 44 44 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 45 45 trainingPartition = new IntRange(0, 5000); 46 testPartition = new IntRange(500 1, 10000);46 testPartition = new IntRange(5000, 10000); 47 47 } 48 48 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionFour.cs
r7095 r7127 43 43 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 44 44 trainingPartition = new IntRange(0, 5000); 45 testPartition = new IntRange(500 1, 10000);45 testPartition = new IntRange(5000, 10000); 46 46 } 47 47 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionFourteen.cs
r7095 r7127 43 43 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 44 44 trainingPartition = new IntRange(0, 5000); 45 testPartition = new IntRange(500 1, 10000);45 testPartition = new IntRange(5000, 10000); 46 46 } 47 47 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionNine.cs
r7095 r7127 44 44 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 45 45 trainingPartition = new IntRange(0, 5000); 46 testPartition = new IntRange(500 1, 10000);46 testPartition = new IntRange(5000, 10000); 47 47 } 48 48 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionOne.cs
r7095 r7127 43 43 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 44 44 trainingPartition = new IntRange(0, 5000); 45 testPartition = new IntRange(500 1, 10000);45 testPartition = new IntRange(5000, 10000); 46 46 } 47 47 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionSeven.cs
r7095 r7127 43 43 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 44 44 trainingPartition = new IntRange(0, 5000); 45 testPartition = new IntRange(500 1, 10000);45 testPartition = new IntRange(5000, 10000); 46 46 } 47 47 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionSix.cs
r7095 r7127 44 44 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 45 45 trainingPartition = new IntRange(0, 5000); 46 testPartition = new IntRange(500 1, 10000);46 testPartition = new IntRange(5000, 10000); 47 47 } 48 48 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionTen.cs
r7095 r7127 43 43 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 44 44 trainingPartition = new IntRange(0, 5000); 45 testPartition = new IntRange(500 1, 10000);45 testPartition = new IntRange(5000, 10000); 46 46 } 47 47 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionThirteen.cs
r7095 r7127 43 43 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 44 44 trainingPartition = new IntRange(0, 5000); 45 testPartition = new IntRange(500 1, 10000);45 testPartition = new IntRange(5000, 10000); 46 46 } 47 47 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionThree.cs
r7095 r7127 43 43 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 44 44 trainingPartition = new IntRange(0, 5000); 45 testPartition = new IntRange(500 1, 10000);45 testPartition = new IntRange(5000, 10000); 46 46 } 47 47 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionTwelve.cs
r7095 r7127 43 43 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 44 44 trainingPartition = new IntRange(0, 5000); 45 testPartition = new IntRange(500 1, 10000);45 testPartition = new IntRange(5000, 10000); 46 46 } 47 47 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Korns/KornFunctionTwo.cs
r7095 r7127 43 43 inputVariables = new List<string>() { "X0", "X1", "X2", "X3", "X4" }; 44 44 trainingPartition = new IntRange(0, 5000); 45 testPartition = new IntRange(500 1, 10000);45 testPartition = new IntRange(5000, 10000); 46 46 } 47 47 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionEight.cs
r7044 r7127 38 38 inputVariables = new List<string>() { "X" }; 39 39 trainingPartition = new IntRange(0, 250); 40 testPartition = new IntRange(25 1, 500);40 testPartition = new IntRange(250, 500); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionEleven.cs
r7044 r7127 38 38 inputVariables = new List<string>() { "X", "Y" }; 39 39 trainingPartition = new IntRange(0, 250); 40 testPartition = new IntRange(25 1, 500);40 testPartition = new IntRange(250, 500); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionFive.cs
r7044 r7127 38 38 inputVariables = new List<string>() { "X" }; 39 39 trainingPartition = new IntRange(0, 250); 40 testPartition = new IntRange(25 1, 500);40 testPartition = new IntRange(250, 500); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionFour.cs
r7044 r7127 38 38 inputVariables = new List<string>() { "X" }; 39 39 trainingPartition = new IntRange(0, 250); 40 testPartition = new IntRange(25 1, 500);40 testPartition = new IntRange(250, 500); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionNine.cs
r7044 r7127 38 38 inputVariables = new List<string>() { "X", "Y" }; 39 39 trainingPartition = new IntRange(0, 250); 40 testPartition = new IntRange(25 1, 500);40 testPartition = new IntRange(250, 500); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionOne.cs
r7096 r7127 38 38 inputVariables = new List<string>() { "X" }; 39 39 trainingPartition = new IntRange(0, 250); 40 testPartition = new IntRange(25 1, 500);40 testPartition = new IntRange(250, 500); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionSeven.cs
r7044 r7127 38 38 inputVariables = new List<string>() { "X" }; 39 39 trainingPartition = new IntRange(0, 250); 40 testPartition = new IntRange(25 1, 500);40 testPartition = new IntRange(250, 500); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionSix.cs
r7044 r7127 38 38 inputVariables = new List<string>() { "X" }; 39 39 trainingPartition = new IntRange(0, 250); 40 testPartition = new IntRange(25 1, 500);40 testPartition = new IntRange(250, 500); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionTen.cs
r7044 r7127 38 38 inputVariables = new List<string>() { "X", "Y" }; 39 39 trainingPartition = new IntRange(0, 250); 40 testPartition = new IntRange(25 1, 500);40 testPartition = new IntRange(250, 500); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionThree.cs
r7044 r7127 38 38 inputVariables = new List<string>() { "X" }; 39 39 trainingPartition = new IntRange(0, 250); 40 testPartition = new IntRange(25 1, 500);40 testPartition = new IntRange(250, 500); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionTwelve.cs
r7044 r7127 38 38 inputVariables = new List<string>() { "X", "Y" }; 39 39 trainingPartition = new IntRange(0, 250); 40 testPartition = new IntRange(25 1, 500);40 testPartition = new IntRange(250, 500); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Nguyen/NguyenFunctionTwo.cs
r7044 r7127 38 38 inputVariables = new List<string>() { "X" }; 39 39 trainingPartition = new IntRange(0, 250); 40 testPartition = new IntRange(25 1, 500);40 testPartition = new IntRange(250, 500); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/RealWorldProblems/ChemicalOne.cs
r7085 r7127 41 41 42 42 protected override List<IList> GetData() { 43 csvFileParser = RegressionRealWorldBenchmark.getParserForFile(fileName);43 csvFileParser = Benchmark.getParserForFile(fileName); 44 44 45 45 targetVariable = csvFileParser.VariableNames.Last(); … … 47 47 int trainingPartEnd = csvFileParser.Rows * 2 / 3; 48 48 trainingPartition = new IntRange(0, trainingPartEnd); 49 testPartition = new IntRange(trainingPartEnd + 1, csvFileParser.Rows);49 testPartition = new IntRange(trainingPartEnd, csvFileParser.Rows); 50 50 51 51 return csvFileParser.Values.Skip(csvFileParser.Columns - 1).Union(csvFileParser.Values.Take(csvFileParser.Columns - 1)).ToList(); -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/RealWorldProblems/Housing.cs
r7085 r7127 41 41 42 42 protected override List<IList> GetData() { 43 csvFileParser = RegressionRealWorldBenchmark.getParserForFile(fileName);43 csvFileParser = Benchmark.getParserForFile(fileName); 44 44 45 45 targetVariable = csvFileParser.VariableNames.Last(); … … 47 47 int trainingPartEnd = csvFileParser.Rows * 2 / 3; 48 48 trainingPartition = new IntRange(0, trainingPartEnd); 49 testPartition = new IntRange(trainingPartEnd + 1, csvFileParser.Rows);49 testPartition = new IntRange(trainingPartEnd, csvFileParser.Rows); 50 50 51 51 return csvFileParser.Values.Skip(csvFileParser.Columns - 1).Union(csvFileParser.Values.Take(csvFileParser.Columns - 1)).ToList(); -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/RealWorldProblems/TowerProblem.cs
r7085 r7127 41 41 42 42 protected override List<IList> GetData() { 43 csvFileParser = RegressionRealWorldBenchmark.getParserForFile(fileName);43 csvFileParser = Benchmark.getParserForFile(fileName); 44 44 45 45 targetVariable = csvFileParser.VariableNames.Last(); … … 47 47 int trainingPartEnd = csvFileParser.Rows * 2 / 3; 48 48 trainingPartition = new IntRange(0, trainingPartEnd); 49 testPartition = new IntRange(trainingPartEnd + 1, csvFileParser.Rows);49 testPartition = new IntRange(trainingPartEnd, csvFileParser.Rows); 50 50 51 51 return csvFileParser.Values.Skip(csvFileParser.Columns - 1).Union(csvFileParser.Values.Take(csvFileParser.Columns - 1)).ToList(); -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Vladislavleva/KotanchekFunction.cs
r7085 r7127 38 38 inputVariables = new List<string>() { "X1", "X2" }; 39 39 trainingPartition = new IntRange(0, 100); 40 testPartition = new IntRange(10 1, 2125);40 testPartition = new IntRange(100, 2125); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Vladislavleva/RationalPolynomialThreeDimensional.cs
r7085 r7127 38 38 inputVariables = new List<string>() { "X1", "X2", "X3" }; 39 39 trainingPartition = new IntRange(0, 300); 40 testPartition = new IntRange(30 1, 3000);40 testPartition = new IntRange(300, 3000); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Vladislavleva/RationalPolynomialTwoDimensional.cs
r7085 r7127 38 38 inputVariables = new List<string>() { "X1", "X2" }; 39 39 trainingPartition = new IntRange(0, 50); 40 testPartition = new IntRange(5 1, 1207);40 testPartition = new IntRange(50, 1207); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Vladislavleva/RippleFunction.cs
r7085 r7127 38 38 inputVariables = new List<string>() { "X1", "X2" }; 39 39 trainingPartition = new IntRange(0, 300); 40 testPartition = new IntRange(30 1, 1300);40 testPartition = new IntRange(300, 1300); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Vladislavleva/SalutowiczFunctionOneDimensional.cs
r7085 r7127 38 38 inputVariables = new List<string>() { "X" }; 39 39 trainingPartition = new IntRange(0, 100); 40 testPartition = new IntRange(10 1, 321);40 testPartition = new IntRange(100, 321); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Vladislavleva/SalutowiczFunctionTwoDimensional.cs
r7085 r7127 39 39 inputVariables = new List<string>() { "X1", "X2" }; 40 40 trainingPartition = new IntRange(0, 601); 41 testPartition = new IntRange(60 2, 3155);41 testPartition = new IntRange(601, 3155); 42 42 } 43 43 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Vladislavleva/SineCosineFunction.cs
r7085 r7127 38 38 inputVariables = new List<string>() { "X1", "X2" }; 39 39 trainingPartition = new IntRange(0, 30); 40 testPartition = new IntRange(3 1, 991);40 testPartition = new IntRange(30, 991); 41 41 } 42 42 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/RegressionBenchmarks/Vladislavleva/UnwrappedBallFunctionFiveDimensional.cs
r7085 r7127 39 39 inputVariables = new List<string>() { "X1", "X2", "X3", "X4", "X5" }; 40 40 trainingPartition = new IntRange(0, 1024); 41 testPartition = new IntRange(102 5, 6024);41 testPartition = new IntRange(1024, 6024); 42 42 } 43 43 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Views/3.4/DataAnalysisProblemView.Designer.cs
r7085 r7127 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this. importButton = new System.Windows.Forms.Button();47 this.ImportButton = new System.Windows.Forms.Button(); 48 48 this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); 49 this. benchmarkComboBox = new System.Windows.Forms.ComboBox();50 this. loadButton = new System.Windows.Forms.Button();51 this. tableLayoutPanel1= new System.Windows.Forms.TableLayoutPanel();49 this.BenchmarkComboBox = new System.Windows.Forms.ComboBox(); 50 this.LoadButton = new System.Windows.Forms.Button(); 51 this.BenchmarkTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel(); 52 52 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 53 this. tableLayoutPanel1.SuspendLayout();53 this.BenchmarkTableLayoutPanel.SuspendLayout(); 54 54 this.SuspendLayout(); 55 55 // … … 70 70 this.infoLabel.Location = new System.Drawing.Point(474, 3); 71 71 // 72 // importButton72 // ImportButton 73 73 // 74 this. importButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)74 this.ImportButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 75 75 | System.Windows.Forms.AnchorStyles.Right))); 76 this. importButton.Location = new System.Drawing.Point(3, 24);77 this. importButton.Name = "importButton";78 this. importButton.Size = new System.Drawing.Size(487, 23);79 this. importButton.TabIndex = 3;80 this. importButton.Text = "Import from CSV file";81 this. importButton.UseVisualStyleBackColor = true;82 this. importButton.Click += new System.EventHandler(this.ImportButton_Click);76 this.ImportButton.Location = new System.Drawing.Point(3, 24); 77 this.ImportButton.Name = "ImportButton"; 78 this.ImportButton.Size = new System.Drawing.Size(487, 23); 79 this.ImportButton.TabIndex = 3; 80 this.ImportButton.Text = "Import from CSV file"; 81 this.ImportButton.UseVisualStyleBackColor = true; 82 this.ImportButton.Click += new System.EventHandler(this.ImportButton_Click); 83 83 // 84 84 // openFileDialog … … 87 87 this.openFileDialog.Title = "Import data..."; 88 88 // 89 // benchmarkComboBox89 // BenchmarkComboBox 90 90 // 91 this. benchmarkComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)91 this.BenchmarkComboBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 92 92 | System.Windows.Forms.AnchorStyles.Right))); 93 this. benchmarkComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;94 this. benchmarkComboBox.FormattingEnabled = true;95 this. benchmarkComboBox.Location = new System.Drawing.Point(3, 3);96 this. benchmarkComboBox.Name = "benchmarkComboBox";97 this. benchmarkComboBox.Size = new System.Drawing.Size(240, 21);98 this. benchmarkComboBox.TabIndex = 5;93 this.BenchmarkComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; 94 this.BenchmarkComboBox.FormattingEnabled = true; 95 this.BenchmarkComboBox.Location = new System.Drawing.Point(3, 3); 96 this.BenchmarkComboBox.Name = "BenchmarkComboBox"; 97 this.BenchmarkComboBox.Size = new System.Drawing.Size(240, 21); 98 this.BenchmarkComboBox.TabIndex = 5; 99 99 // 100 // loadButton100 // LoadButton 101 101 // 102 this. loadButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)102 this.LoadButton.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 103 103 | System.Windows.Forms.AnchorStyles.Right))); 104 this. loadButton.Location = new System.Drawing.Point(249, 2);105 this. loadButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 3);106 this. loadButton.Name = "loadButton";107 this. loadButton.Size = new System.Drawing.Size(241, 23);108 this. loadButton.TabIndex = 6;109 this. loadButton.Text = "Load";110 this. loadButton.UseVisualStyleBackColor = true;111 this. loadButton.Click += new System.EventHandler(this.loadButton_Click);104 this.LoadButton.Location = new System.Drawing.Point(249, 2); 105 this.LoadButton.Margin = new System.Windows.Forms.Padding(3, 2, 3, 3); 106 this.LoadButton.Name = "LoadButton"; 107 this.LoadButton.Size = new System.Drawing.Size(241, 23); 108 this.LoadButton.TabIndex = 6; 109 this.LoadButton.Text = "Load"; 110 this.LoadButton.UseVisualStyleBackColor = true; 111 this.LoadButton.Click += new System.EventHandler(this.loadButton_Click); 112 112 // 113 // tableLayoutPanel1113 // BenchmarkTableLayoutPanel 114 114 // 115 this. tableLayoutPanel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)115 this.BenchmarkTableLayoutPanel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 116 116 | System.Windows.Forms.AnchorStyles.Right))); 117 this. tableLayoutPanel1.ColumnCount = 2;118 this. tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));119 this. tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));120 this. tableLayoutPanel1.Controls.Add(this.benchmarkComboBox, 0, 0);121 this. tableLayoutPanel1.Controls.Add(this.loadButton, 1, 0);122 this. tableLayoutPanel1.Location = new System.Drawing.Point(0, 51);123 this. tableLayoutPanel1.Name = "tableLayoutPanel1";124 this. tableLayoutPanel1.RowCount = 1;125 this. tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));126 this. tableLayoutPanel1.Size = new System.Drawing.Size(493, 28);127 this. tableLayoutPanel1.TabIndex = 7;117 this.BenchmarkTableLayoutPanel.ColumnCount = 2; 118 this.BenchmarkTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); 119 this.BenchmarkTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); 120 this.BenchmarkTableLayoutPanel.Controls.Add(this.BenchmarkComboBox, 0, 0); 121 this.BenchmarkTableLayoutPanel.Controls.Add(this.LoadButton, 1, 0); 122 this.BenchmarkTableLayoutPanel.Location = new System.Drawing.Point(0, 51); 123 this.BenchmarkTableLayoutPanel.Name = "BenchmarkTableLayoutPanel"; 124 this.BenchmarkTableLayoutPanel.RowCount = 1; 125 this.BenchmarkTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); 126 this.BenchmarkTableLayoutPanel.Size = new System.Drawing.Size(493, 28); 127 this.BenchmarkTableLayoutPanel.TabIndex = 7; 128 128 // 129 129 // DataAnalysisProblemView … … 131 131 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 132 132 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 133 this.Controls.Add(this. importButton);134 this.Controls.Add(this. tableLayoutPanel1);133 this.Controls.Add(this.ImportButton); 134 this.Controls.Add(this.BenchmarkTableLayoutPanel); 135 135 this.Name = "DataAnalysisProblemView"; 136 136 this.Size = new System.Drawing.Size(493, 334); 137 this.Controls.SetChildIndex(this. tableLayoutPanel1, 0);138 this.Controls.SetChildIndex(this. importButton, 0);137 this.Controls.SetChildIndex(this.BenchmarkTableLayoutPanel, 0); 138 this.Controls.SetChildIndex(this.ImportButton, 0); 139 139 this.Controls.SetChildIndex(this.parameterCollectionView, 0); 140 140 this.Controls.SetChildIndex(this.infoLabel, 0); … … 142 142 this.Controls.SetChildIndex(this.nameLabel, 0); 143 143 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 144 this. tableLayoutPanel1.ResumeLayout(false);144 this.BenchmarkTableLayoutPanel.ResumeLayout(false); 145 145 this.ResumeLayout(false); 146 146 this.PerformLayout(); … … 150 150 #endregion 151 151 152 private System.Windows.Forms.Button importButton;152 private System.Windows.Forms.Button ImportButton; 153 153 private System.Windows.Forms.OpenFileDialog openFileDialog; 154 private System.Windows.Forms.ComboBox benchmarkComboBox;155 private System.Windows.Forms.Button loadButton;156 private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;154 private System.Windows.Forms.ComboBox BenchmarkComboBox; 155 private System.Windows.Forms.Button LoadButton; 156 private System.Windows.Forms.TableLayoutPanel BenchmarkTableLayoutPanel; 157 157 } 158 158 } -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Views/3.4/DataAnalysisProblemView.cs
r7085 r7127 44 44 protected override void SetEnabledStateOfControls() { 45 45 base.SetEnabledStateOfControls(); 46 importButton.Enabled = !Locked && !ReadOnly && Content != null; 46 ImportButton.Enabled = !Locked && !ReadOnly && Content != null; 47 LoadButton.Enabled = !Locked && !ReadOnly && Content != null; 48 BenchmarkComboBox.Enabled = !Locked && !ReadOnly && Content != null; 47 49 } 48 50 … … 59 61 60 62 private void loadButton_Click(object sender, EventArgs e) { 61 if ( benchmarkComboBox.SelectedItem != null)62 Content.ProblemData = ((IDataAnalysisBenchmarkProblemDataGenerator) benchmarkComboBox.SelectedItem).GenerateProblemData();63 if (BenchmarkComboBox.SelectedItem != null) 64 Content.ProblemData = ((IDataAnalysisBenchmarkProblemDataGenerator)BenchmarkComboBox.SelectedItem).GenerateProblemData(); 63 65 } 64 66 65 67 protected override void OnContentChanged() { 66 68 base.OnContentChanged(); 67 benchmarkComboBox.Items.Clear();68 benchmarkComboBox.Items.AddRange(GetBenchmarkProblemDataGenerators().OrderBy(b => b.Name, new NaturalStringComparer()).ToArray());69 if ( benchmarkComboBox.Items.Count > 0)70 benchmarkComboBox.SelectedIndex = 0;69 BenchmarkComboBox.Items.Clear(); 70 BenchmarkComboBox.Items.AddRange(GetBenchmarkProblemDataGenerators().OrderBy(b => b.Name, new NaturalStringComparer()).ToArray()); 71 if (BenchmarkComboBox.Items.Count > 0) 72 BenchmarkComboBox.SelectedIndex = 0; 71 73 } 72 74 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Views/3.4/DataAnalysisProblemView.resx
r7085 r7127 121 121 <value>107, 17</value> 122 122 </metadata> 123 <metadata name="errorProvider.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">124 <value>107, 17</value>125 </metadata>126 123 <metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 127 124 <value>17, 17</value>
Note: See TracChangeset
for help on using the changeset viewer.