Free cookie consent management tool by TermsFeed Policy Generator

source: stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Classification/UCI/Wine.cs @ 11170

Last change on this file since 11170 was 11170, checked in by ascheibe, 10 years ago

#2115 updated copyright year in stable branch

File size: 3.8 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22
23using System;
24namespace HeuristicLab.Problems.Instances.DataAnalysis {
25  public class Wine : UCIDataDescriptor {
26    public override string Filename { get { return "Wine"; } }
27    public override string Description {
28      get {
29        return "These data are the results of a chemical analysis of wines grown in the same region " +
30        "in Italy but derived from three different cultivars. The analysis determined the quantities " +
31        "of 13 constituents found in each of the three types of wines." + Environment.NewLine + Environment.NewLine +
32        "I think that the initial data set had around 30 variables, but for some reason I only have the " +
33        "13 dimensional version. I had a list of what the 30 or so variables were, but a.) I lost it, and b.), " +
34        "I would not know which 13 variables are included in the set." + Environment.NewLine + Environment.NewLine +
35        "The attributes are (dontated by Riccardo Leardi, riclea '@' anchem.unige.it )" + Environment.NewLine +
36        "1) Alcohol" + Environment.NewLine +
37        "2) Malic acid" + Environment.NewLine +
38        "3) Ash" + Environment.NewLine +
39        "4) Alcalinity of ash" + Environment.NewLine +
40        "5) Magnesium" + Environment.NewLine +
41        "6) Total phenols" + Environment.NewLine +
42        "7) Flavanoids" + Environment.NewLine +
43        "8) Nonflavanoid phenols" + Environment.NewLine +
44        "9) Proanthocyanins" + Environment.NewLine +
45        "10)Color intensity" + Environment.NewLine +
46        "11)Hue" + Environment.NewLine +
47        "12)OD280/OD315 of diluted wines" + Environment.NewLine +
48        "13)Proline" + Environment.NewLine + Environment.NewLine +
49        "In a classification context, this is a well posed problem with \"well behaved\" class structures. A " +
50        "good data set for first testing of a new classifier, but not very challenging. ";
51      }
52    }
53    public override string Donor { get { return "S. Aeberhard"; } }
54    public override int Year { get { return 1991; } }
55
56    protected override string TargetVariable { get { return "Class"; } }
57    protected override string[] VariableNames {
58      get { return new string[] { "Alcohol", "Malic acid", "Ash", "Alcalinity of ash", "Magnesium", "Total phenols", "Flavanoids", "Nonflavanoid phenols", "Proanthocyanins", "Color intensity", "Hue", "OD280/OD315 of diluted wines", "Proline", "Class" }; }
59    }
60    protected override string[] AllowedInputVariables {
61      get { return new string[] { "Alcohol", "Malic acid", "Ash", "Alcalinity of ash", "Magnesium", "Total phenols", "Flavanoids", "Nonflavanoid phenols", "Proanthocyanins", "Color intensity", "Hue", "OD280/OD315 of diluted wines", "Proline" }; }
62    }
63    protected override int TrainingPartitionStart { get { return 0; } }
64    protected override int TrainingPartitionEnd { get { return 119; } }
65    protected override int TestPartitionStart { get { return 119; } }
66    protected override int TestPartitionEnd { get { return 178; } }
67  }
68}
Note: See TracBrowser for help on using the repository browser.