Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/06/11 17:33:23 (13 years ago)
Author:
sforsten
Message:

#1669:
-Iris benchmark has been corrected and data set will ordered randomly
-Benchmarks of Trent McConaghy have been corrected
-Descriptions have been added (Mammography and Iris)
-Bug fix in ClassificationRealWorldBenchmark

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  
    2020#endregion
    2121
     22using System;
    2223using System.Collections;
    2324using System.Collections.Generic;
     
    2829  public class Iris : ClassificationRealWorldBenchmark {
    2930
    30     private const string fileName = "iris.csv";
     31    private const string fileName = "iris.data";
    3132
    3233    public Iris() {
    3334      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;";
    4051    }
    4152
     
    4960      testPartition = new IntRange(trainingPartEnd, csvFileParser.Rows);
    5061
    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;
    5279    }
    5380  }
  • branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/ClassificationBenchmark/RealWorldProblems/Mammography.cs

    r7127 r7138  
    2020#endregion
    2121
     22using System;
    2223using System.Collections;
    2324using System.Collections.Generic;
     
    3233    public Mammography() {
    3334      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)";
    4052    }
    4153
  • 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
     1sepal_length,sepal_width,petal_length,petal_width,class
     25.1,3.5,1.4,0.2,0
     34.9,3.0,1.4,0.2,0
     44.7,3.2,1.3,0.2,0
     54.6,3.1,1.5,0.2,0
     65.0,3.6,1.4,0.2,0
     75.4,3.9,1.7,0.4,0
     84.6,3.4,1.4,0.3,0
     95.0,3.4,1.5,0.2,0
     104.4,2.9,1.4,0.2,0
     114.9,3.1,1.5,0.1,0
     125.4,3.7,1.5,0.2,0
     134.8,3.4,1.6,0.2,0
     144.8,3.0,1.4,0.1,0
     154.3,3.0,1.1,0.1,0
     165.8,4.0,1.2,0.2,0
     175.7,4.4,1.5,0.4,0
     185.4,3.9,1.3,0.4,0
     195.1,3.5,1.4,0.3,0
     205.7,3.8,1.7,0.3,0
     215.1,3.8,1.5,0.3,0
     225.4,3.4,1.7,0.2,0
     235.1,3.7,1.5,0.4,0
     244.6,3.6,1.0,0.2,0
     255.1,3.3,1.7,0.5,0
     264.8,3.4,1.9,0.2,0
     275.0,3.0,1.6,0.2,0
     285.0,3.4,1.6,0.4,0
     295.2,3.5,1.5,0.2,0
     305.2,3.4,1.4,0.2,0
     314.7,3.2,1.6,0.2,0
     324.8,3.1,1.6,0.2,0
     335.4,3.4,1.5,0.4,0
     345.2,4.1,1.5,0.1,0
     355.5,4.2,1.4,0.2,0
     364.9,3.1,1.5,0.1,0
     375.0,3.2,1.2,0.2,0
     385.5,3.5,1.3,0.2,0
     394.9,3.1,1.5,0.1,0
     404.4,3.0,1.3,0.2,0
     415.1,3.4,1.5,0.2,0
     425.0,3.5,1.3,0.3,0
     434.5,2.3,1.3,0.3,0
     444.4,3.2,1.3,0.2,0
     455.0,3.5,1.6,0.6,0
     465.1,3.8,1.9,0.4,0
     474.8,3.0,1.4,0.3,0
     485.1,3.8,1.6,0.2,0
     494.6,3.2,1.4,0.2,0
     505.3,3.7,1.5,0.2,0
     515.0,3.3,1.4,0.2,0
     527.0,3.2,4.7,1.4,1
     536.4,3.2,4.5,1.5,1
     546.9,3.1,4.9,1.5,1
     555.5,2.3,4.0,1.3,1
     566.5,2.8,4.6,1.5,1
     575.7,2.8,4.5,1.3,1
     586.3,3.3,4.7,1.6,1
     594.9,2.4,3.3,1.0,1
     606.6,2.9,4.6,1.3,1
     615.2,2.7,3.9,1.4,1
     625.0,2.0,3.5,1.0,1
     635.9,3.0,4.2,1.5,1
     646.0,2.2,4.0,1.0,1
     656.1,2.9,4.7,1.4,1
     665.6,2.9,3.6,1.3,1
     676.7,3.1,4.4,1.4,1
     685.6,3.0,4.5,1.5,1
     695.8,2.7,4.1,1.0,1
     706.2,2.2,4.5,1.5,1
     715.6,2.5,3.9,1.1,1
     725.9,3.2,4.8,1.8,1
     736.1,2.8,4.0,1.3,1
     746.3,2.5,4.9,1.5,1
     756.1,2.8,4.7,1.2,1
     766.4,2.9,4.3,1.3,1
     776.6,3.0,4.4,1.4,1
     786.8,2.8,4.8,1.4,1
     796.7,3.0,5.0,1.7,1
     806.0,2.9,4.5,1.5,1
     815.7,2.6,3.5,1.0,1
     825.5,2.4,3.8,1.1,1
     835.5,2.4,3.7,1.0,1
     845.8,2.7,3.9,1.2,1
     856.0,2.7,5.1,1.6,1
     865.4,3.0,4.5,1.5,1
     876.0,3.4,4.5,1.6,1
     886.7,3.1,4.7,1.5,1
     896.3,2.3,4.4,1.3,1
     905.6,3.0,4.1,1.3,1
     915.5,2.5,4.0,1.3,1
     925.5,2.6,4.4,1.2,1
     936.1,3.0,4.6,1.4,1
     945.8,2.6,4.0,1.2,1
     955.0,2.3,3.3,1.0,1
     965.6,2.7,4.2,1.3,1
     975.7,3.0,4.2,1.2,1
     985.7,2.9,4.2,1.3,1
     996.2,2.9,4.3,1.3,1
     1005.1,2.5,3.0,1.1,1
     1015.7,2.8,4.1,1.3,1
     1026.3,3.3,6.0,2.5,2
     1035.8,2.7,5.1,1.9,2
     1047.1,3.0,5.9,2.1,2
     1056.3,2.9,5.6,1.8,2
     1066.5,3.0,5.8,2.2,2
     1077.6,3.0,6.6,2.1,2
     1084.9,2.5,4.5,1.7,2
     1097.3,2.9,6.3,1.8,2
     1106.7,2.5,5.8,1.8,2
     1117.2,3.6,6.1,2.5,2
     1126.5,3.2,5.1,2.0,2
     1136.4,2.7,5.3,1.9,2
     1146.8,3.0,5.5,2.1,2
     1155.7,2.5,5.0,2.0,2
     1165.8,2.8,5.1,2.4,2
     1176.4,3.2,5.3,2.3,2
     1186.5,3.0,5.5,1.8,2
     1197.7,3.8,6.7,2.2,2
     1207.7,2.6,6.9,2.3,2
     1216.0,2.2,5.0,1.5,2
     1226.9,3.2,5.7,2.3,2
     1235.6,2.8,4.9,2.0,2
     1247.7,2.8,6.7,2.0,2
     1256.3,2.7,4.9,1.8,2
     1266.7,3.3,5.7,2.1,2
     1277.2,3.2,6.0,1.8,2
     1286.2,2.8,4.8,1.8,2
     1296.1,3.0,4.9,1.8,2
     1306.4,2.8,5.6,2.1,2
     1317.2,3.0,5.8,1.6,2
     1327.4,2.8,6.1,1.9,2
     1337.9,3.8,6.4,2.0,2
     1346.4,2.8,5.6,2.2,2
     1356.3,2.8,5.1,1.5,2
     1366.1,2.6,5.6,1.4,2
     1377.7,3.0,6.1,2.3,2
     1386.3,3.4,5.6,2.4,2
     1396.4,3.1,5.5,1.8,2
     1406.0,3.0,4.8,1.8,2
     1416.9,3.1,5.4,2.1,2
     1426.7,3.1,5.6,2.4,2
     1436.9,3.1,5.1,2.3,2
     1445.8,2.7,5.1,1.9,2
     1456.8,3.2,5.9,2.3,2
     1466.7,3.3,5.7,2.5,2
     1476.7,3.0,5.2,2.3,2
     1486.3,2.5,5.0,1.9,2
     1496.5,3.0,5.2,2.0,2
     1506.2,3.4,5.4,2.3,2
     1515.9,3.0,5.1,1.8,2
    151152
Note: See TracChangeset for help on using the changeset viewer.