Changeset 7138 for branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/ClassificationBenchmark
- Timestamp:
- 12/06/11 17:33:23 (13 years ago)
- Location:
- branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/ClassificationBenchmark/RealWorldProblems
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/ClassificationBenchmark/RealWorldProblems/Iris.cs
r7127 r7138 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections; 23 24 using System.Collections.Generic; … … 28 29 public class Iris : ClassificationRealWorldBenchmark { 29 30 30 private const string fileName = "iris. csv";31 private const string fileName = "iris.data"; 31 32 32 33 public Iris() { 33 34 Name = "RealWorldProblem Iris"; 34 //Description = "Paper: Improving Symbolic Regression with Interval Arithmetic and Linear Scaling" + Environment.NewLine 35 // + "Authors: Maarten Keijzer" + Environment.NewLine 36 // + "Function: f(x) = log(x)" + Environment.NewLine 37 // + "range(train): x = [0:1:100]" + Environment.NewLine 38 // + "range(test): x = [0:0.1:100]" + Environment.NewLine 39 // + "Function Set: x + y, x * y, 1/x, -x, sqrt(x)"; 35 Description = "Data Set Information: This is perhaps the best known database to be found in the pattern " 36 + "recognition literature. Fisher's paper is a classic in the field and is referenced frequently to this " 37 + "day. (See Duda & Hart, for example.) The data set contains 3 classes of 50 instances each, where each class " 38 + "refers to a type of iris plant. One class is linearly separable from the other 2; the latter are NOT linearly " 39 + "separable from each other." + Environment.NewLine 40 + "Website: http://archive.ics.uci.edu/ml/datasets/Iris" + Environment.NewLine 41 + "Attribute Information:" + Environment.NewLine 42 + "1. sepal length in cm" + Environment.NewLine 43 + "2. sepal width in cm" + Environment.NewLine 44 + "3. petal length in cm" + Environment.NewLine 45 + "4. petal width in cm" + Environment.NewLine 46 + "5. class:" + Environment.NewLine 47 + "-- Iris Setosa" + Environment.NewLine 48 + "-- Iris Versicolour" + Environment.NewLine 49 + "-- Iris Virginica" + Environment.NewLine + Environment.NewLine 50 + "Note: Iris Setosa = 0; Iris Versicolour = 1; Iris Virginica = 2;"; 40 51 } 41 52 … … 49 60 testPartition = new IntRange(trainingPartEnd, csvFileParser.Rows); 50 61 51 return csvFileParser.Values.Skip(csvFileParser.Columns - 1).Union(csvFileParser.Values.Take(csvFileParser.Columns - 1)).ToList(); 62 //get ordered list 63 List<IList> orderList = csvFileParser.Values.Skip(csvFileParser.Columns - 1).Union(csvFileParser.Values.Take(csvFileParser.Columns - 1)).ToList(); 64 65 IEnumerable<int> random = Enumerable.Range(0, orderList[0].Count).OrderBy(x => rand.Next()); 66 67 List<IList> result = new List<IList>(); 68 69 foreach (var item in orderList) { 70 result.Add(new List<double>()); 71 } 72 foreach (var index in random) { 73 for (int i = 0; i < orderList.Count; i++) { 74 result[i].Add(orderList[i][index]); 75 } 76 } 77 78 return result; 52 79 } 53 80 } -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/ClassificationBenchmark/RealWorldProblems/Mammography.cs
r7127 r7138 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections; 23 24 using System.Collections.Generic; … … 32 33 public Mammography() { 33 34 Name = "RealWorldProblem Mammography"; 34 //Description = "Paper: Improving Symbolic Regression with Interval Arithmetic and Linear Scaling" + Environment.NewLine 35 // + "Authors: Maarten Keijzer" + Environment.NewLine 36 // + "Function: f(x) = log(x)" + Environment.NewLine 37 // + "range(train): x = [0:1:100]" + Environment.NewLine 38 // + "range(test): x = [0:0.1:100]" + Environment.NewLine 39 // + "Function Set: x + y, x * y, 1/x, -x, sqrt(x)"; 35 Description = "Data Set Information: Features are computed from a digitized image of a fine needle aspirate (FNA) of a breast mass." 36 + "Website: http://archive.ics.uci.edu/ml/datasets/Breast+Cancer+Wisconsin+%28Diagnostic%29" + Environment.NewLine 37 + "Attribute Information:" + Environment.NewLine 38 + "1) ID number" + Environment.NewLine 39 + "2) Diagnosis (M = malignant, B = benign)" + Environment.NewLine 40 + "3-32)" + Environment.NewLine + Environment.NewLine 41 + "Ten real-valued features are computed for each cell nucleus:" + Environment.NewLine + Environment.NewLine 42 + "a) radius (mean of distances from center to points on the perimeter)" + Environment.NewLine 43 + "b) texture (standard deviation of gray-scale values)" + Environment.NewLine 44 + "c) perimeter" + Environment.NewLine 45 + "d) area" + Environment.NewLine 46 + "e) smoothness (local variation in radius lengths)" + Environment.NewLine 47 + "f) compactness (perimeter^2 / area - 1.0)" + Environment.NewLine 48 + "g) concavity (severity of concave portions of the contour)" + Environment.NewLine 49 + "h) concave points (number of concave portions of the contour)" + Environment.NewLine 50 + "i) symmetry" + Environment.NewLine 51 + "j) fractal dimension (\"coastline approximation\" - 1)"; 40 52 } 41 53 -
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/ClassificationBenchmark/RealWorldProblems/files/iris.data
r7127 r7138 1 5.1,3.5,1.4,0.2,Iris-setosa 2 4.9,3.0,1.4,0.2,Iris-setosa 3 4.7,3.2,1.3,0.2,Iris-setosa 4 4.6,3.1,1.5,0.2,Iris-setosa 5 5.0,3.6,1.4,0.2,Iris-setosa 6 5.4,3.9,1.7,0.4,Iris-setosa 7 4.6,3.4,1.4,0.3,Iris-setosa 8 5.0,3.4,1.5,0.2,Iris-setosa 9 4.4,2.9,1.4,0.2,Iris-setosa 10 4.9,3.1,1.5,0.1,Iris-setosa 11 5.4,3.7,1.5,0.2,Iris-setosa 12 4.8,3.4,1.6,0.2,Iris-setosa 13 4.8,3.0,1.4,0.1,Iris-setosa 14 4.3,3.0,1.1,0.1,Iris-setosa 15 5.8,4.0,1.2,0.2,Iris-setosa 16 5.7,4.4,1.5,0.4,Iris-setosa 17 5.4,3.9,1.3,0.4,Iris-setosa 18 5.1,3.5,1.4,0.3,Iris-setosa 19 5.7,3.8,1.7,0.3,Iris-setosa 20 5.1,3.8,1.5,0.3,Iris-setosa 21 5.4,3.4,1.7,0.2,Iris-setosa 22 5.1,3.7,1.5,0.4,Iris-setosa 23 4.6,3.6,1.0,0.2,Iris-setosa 24 5.1,3.3,1.7,0.5,Iris-setosa 25 4.8,3.4,1.9,0.2,Iris-setosa 26 5.0,3.0,1.6,0.2,Iris-setosa 27 5.0,3.4,1.6,0.4,Iris-setosa 28 5.2,3.5,1.5,0.2,Iris-setosa 29 5.2,3.4,1.4,0.2,Iris-setosa 30 4.7,3.2,1.6,0.2,Iris-setosa 31 4.8,3.1,1.6,0.2,Iris-setosa 32 5.4,3.4,1.5,0.4,Iris-setosa 33 5.2,4.1,1.5,0.1,Iris-setosa 34 5.5,4.2,1.4,0.2,Iris-setosa 35 4.9,3.1,1.5,0.1,Iris-setosa 36 5.0,3.2,1.2,0.2,Iris-setosa 37 5.5,3.5,1.3,0.2,Iris-setosa 38 4.9,3.1,1.5,0.1,Iris-setosa 39 4.4,3.0,1.3,0.2,Iris-setosa 40 5.1,3.4,1.5,0.2,Iris-setosa 41 5.0,3.5,1.3,0.3,Iris-setosa 42 4.5,2.3,1.3,0.3,Iris-setosa 43 4.4,3.2,1.3,0.2,Iris-setosa 44 5.0,3.5,1.6,0.6,Iris-setosa 45 5.1,3.8,1.9,0.4,Iris-setosa 46 4.8,3.0,1.4,0.3,Iris-setosa 47 5.1,3.8,1.6,0.2,Iris-setosa 48 4.6,3.2,1.4,0.2,Iris-setosa 49 5.3,3.7,1.5,0.2,Iris-setosa 50 5.0,3.3,1.4,0.2,Iris-setosa 51 7.0,3.2,4.7,1.4,Iris-versicolor 52 6.4,3.2,4.5,1.5,Iris-versicolor 53 6.9,3.1,4.9,1.5,Iris-versicolor 54 5.5,2.3,4.0,1.3,Iris-versicolor 55 6.5,2.8,4.6,1.5,Iris-versicolor 56 5.7,2.8,4.5,1.3,Iris-versicolor 57 6.3,3.3,4.7,1.6,Iris-versicolor 58 4.9,2.4,3.3,1.0,Iris-versicolor 59 6.6,2.9,4.6,1.3,Iris-versicolor 60 5.2,2.7,3.9,1.4,Iris-versicolor 61 5.0,2.0,3.5,1.0,Iris-versicolor 62 5.9,3.0,4.2,1.5,Iris-versicolor 63 6.0,2.2,4.0,1.0,Iris-versicolor 64 6.1,2.9,4.7,1.4,Iris-versicolor 65 5.6,2.9,3.6,1.3,Iris-versicolor 66 6.7,3.1,4.4,1.4,Iris-versicolor 67 5.6,3.0,4.5,1.5,Iris-versicolor 68 5.8,2.7,4.1,1.0,Iris-versicolor 69 6.2,2.2,4.5,1.5,Iris-versicolor 70 5.6,2.5,3.9,1.1,Iris-versicolor 71 5.9,3.2,4.8,1.8,Iris-versicolor 72 6.1,2.8,4.0,1.3,Iris-versicolor 73 6.3,2.5,4.9,1.5,Iris-versicolor 74 6.1,2.8,4.7,1.2,Iris-versicolor 75 6.4,2.9,4.3,1.3,Iris-versicolor 76 6.6,3.0,4.4,1.4,Iris-versicolor 77 6.8,2.8,4.8,1.4,Iris-versicolor 78 6.7,3.0,5.0,1.7,Iris-versicolor 79 6.0,2.9,4.5,1.5,Iris-versicolor 80 5.7,2.6,3.5,1.0,Iris-versicolor 81 5.5,2.4,3.8,1.1,Iris-versicolor 82 5.5,2.4,3.7,1.0,Iris-versicolor 83 5.8,2.7,3.9,1.2,Iris-versicolor 84 6.0,2.7,5.1,1.6,Iris-versicolor 85 5.4,3.0,4.5,1.5,Iris-versicolor 86 6.0,3.4,4.5,1.6,Iris-versicolor 87 6.7,3.1,4.7,1.5,Iris-versicolor 88 6.3,2.3,4.4,1.3,Iris-versicolor 89 5.6,3.0,4.1,1.3,Iris-versicolor 90 5.5,2.5,4.0,1.3,Iris-versicolor 91 5.5,2.6,4.4,1.2,Iris-versicolor 92 6.1,3.0,4.6,1.4,Iris-versicolor 93 5.8,2.6,4.0,1.2,Iris-versicolor 94 5.0,2.3,3.3,1.0,Iris-versicolor 95 5.6,2.7,4.2,1.3,Iris-versicolor 96 5.7,3.0,4.2,1.2,Iris-versicolor 97 5.7,2.9,4.2,1.3,Iris-versicolor 98 6.2,2.9,4.3,1.3,Iris-versicolor 99 5.1,2.5,3.0,1.1,Iris-versicolor 100 5.7,2.8,4.1,1.3,Iris-versicolor 101 6.3,3.3,6.0,2.5,Iris-virginica 102 5.8,2.7,5.1,1.9,Iris-virginica 103 7.1,3.0,5.9,2.1,Iris-virginica 104 6.3,2.9,5.6,1.8,Iris-virginica 105 6.5,3.0,5.8,2.2,Iris-virginica 106 7.6,3.0,6.6,2.1,Iris-virginica 107 4.9,2.5,4.5,1.7,Iris-virginica 108 7.3,2.9,6.3,1.8,Iris-virginica 109 6.7,2.5,5.8,1.8,Iris-virginica 110 7.2,3.6,6.1,2.5,Iris-virginica 111 6.5,3.2,5.1,2.0,Iris-virginica 112 6.4,2.7,5.3,1.9,Iris-virginica 113 6.8,3.0,5.5,2.1,Iris-virginica 114 5.7,2.5,5.0,2.0,Iris-virginica 115 5.8,2.8,5.1,2.4,Iris-virginica 116 6.4,3.2,5.3,2.3,Iris-virginica 117 6.5,3.0,5.5,1.8,Iris-virginica 118 7.7,3.8,6.7,2.2,Iris-virginica 119 7.7,2.6,6.9,2.3,Iris-virginica 120 6.0,2.2,5.0,1.5,Iris-virginica 121 6.9,3.2,5.7,2.3,Iris-virginica 122 5.6,2.8,4.9,2.0,Iris-virginica 123 7.7,2.8,6.7,2.0,Iris-virginica 124 6.3,2.7,4.9,1.8,Iris-virginica 125 6.7,3.3,5.7,2.1,Iris-virginica 126 7.2,3.2,6.0,1.8,Iris-virginica 127 6.2,2.8,4.8,1.8,Iris-virginica 128 6.1,3.0,4.9,1.8,Iris-virginica 129 6.4,2.8,5.6,2.1,Iris-virginica 130 7.2,3.0,5.8,1.6,Iris-virginica 131 7.4,2.8,6.1,1.9,Iris-virginica 132 7.9,3.8,6.4,2.0,Iris-virginica 133 6.4,2.8,5.6,2.2,Iris-virginica 134 6.3,2.8,5.1,1.5,Iris-virginica 135 6.1,2.6,5.6,1.4,Iris-virginica 136 7.7,3.0,6.1,2.3,Iris-virginica 137 6.3,3.4,5.6,2.4,Iris-virginica 138 6.4,3.1,5.5,1.8,Iris-virginica 139 6.0,3.0,4.8,1.8,Iris-virginica 140 6.9,3.1,5.4,2.1,Iris-virginica 141 6.7,3.1,5.6,2.4,Iris-virginica 142 6.9,3.1,5.1,2.3,Iris-virginica 143 5.8,2.7,5.1,1.9,Iris-virginica 144 6.8,3.2,5.9,2.3,Iris-virginica 145 6.7,3.3,5.7,2.5,Iris-virginica 146 6.7,3.0,5.2,2.3,Iris-virginica 147 6.3,2.5,5.0,1.9,Iris-virginica 148 6.5,3.0,5.2,2.0,Iris-virginica 149 6.2,3.4,5.4,2.3,Iris-virginica 150 5.9,3.0,5.1,1.8,Iris-virginica 1 sepal_length,sepal_width,petal_length,petal_width,class 2 5.1,3.5,1.4,0.2,0 3 4.9,3.0,1.4,0.2,0 4 4.7,3.2,1.3,0.2,0 5 4.6,3.1,1.5,0.2,0 6 5.0,3.6,1.4,0.2,0 7 5.4,3.9,1.7,0.4,0 8 4.6,3.4,1.4,0.3,0 9 5.0,3.4,1.5,0.2,0 10 4.4,2.9,1.4,0.2,0 11 4.9,3.1,1.5,0.1,0 12 5.4,3.7,1.5,0.2,0 13 4.8,3.4,1.6,0.2,0 14 4.8,3.0,1.4,0.1,0 15 4.3,3.0,1.1,0.1,0 16 5.8,4.0,1.2,0.2,0 17 5.7,4.4,1.5,0.4,0 18 5.4,3.9,1.3,0.4,0 19 5.1,3.5,1.4,0.3,0 20 5.7,3.8,1.7,0.3,0 21 5.1,3.8,1.5,0.3,0 22 5.4,3.4,1.7,0.2,0 23 5.1,3.7,1.5,0.4,0 24 4.6,3.6,1.0,0.2,0 25 5.1,3.3,1.7,0.5,0 26 4.8,3.4,1.9,0.2,0 27 5.0,3.0,1.6,0.2,0 28 5.0,3.4,1.6,0.4,0 29 5.2,3.5,1.5,0.2,0 30 5.2,3.4,1.4,0.2,0 31 4.7,3.2,1.6,0.2,0 32 4.8,3.1,1.6,0.2,0 33 5.4,3.4,1.5,0.4,0 34 5.2,4.1,1.5,0.1,0 35 5.5,4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.3,2 138 6.3,3.4,5.6,2.4,2 139 6.4,3.1,5.5,1.8,2 140 6.0,3.0,4.8,1.8,2 141 6.9,3.1,5.4,2.1,2 142 6.7,3.1,5.6,2.4,2 143 6.9,3.1,5.1,2.3,2 144 5.8,2.7,5.1,1.9,2 145 6.8,3.2,5.9,2.3,2 146 6.7,3.3,5.7,2.5,2 147 6.7,3.0,5.2,2.3,2 148 6.3,2.5,5.0,1.9,2 149 6.5,3.0,5.2,2.0,2 150 6.2,3.4,5.4,2.3,2 151 5.9,3.0,5.1,1.8,2 151 152
Note: See TracChangeset
for help on using the changeset viewer.