Free cookie consent management tool by TermsFeed Policy Generator

source: branches/2213_irace/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Classification/UCI/Iris.cs @ 15923

Last change on this file since 15923 was 15583, checked in by swagner, 7 years ago

#2640: Updated year of copyrights in license headers

File size: 2.9 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2018 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 Iris : UCIDataDescriptor {
26    public override string Filename { get { return "Iris"; } }
27    public override string Description {
28      get {
29        return "Data Set Information:" + Environment.NewLine
30        + "This is perhaps the best known database to be found in the pattern " + Environment.NewLine
31        + "recognition literature. Fisher's paper is a classic in the field and "
32        + "is referenced frequently to this day. (See Duda & Hart, for example.) "
33        + "The data set contains 3 classes of 50 instances each, where each class "
34        + "refers to a type of iris plant. One class is linearly separable from the "
35        + "other 2; the latter are NOT linearly separable from each other." + Environment.NewLine
36        + "Predicted attribute: class of iris plant." + Environment.NewLine
37        + "This is an exceedingly simple domain." + Environment.NewLine + Environment.NewLine
38        + "The classes have been converted in the following way" + Environment.NewLine
39        + "Iris-setosa     = 0" + Environment.NewLine
40        + "Iris-versicolor = 1" + Environment.NewLine
41        + "Iris-virginica  = 2";
42      }
43    }
44    public override string Donor { get { return "M. Marshall"; } }
45    public override int Year { get { return 1988; } }
46
47    protected override string TargetVariable { get { return "class"; } }
48    protected override string[] VariableNames {
49      get { return new string[] { "sepal_length", "sepal_width", "petal_length", "petal_width", "class" }; }
50    }
51    protected override string[] AllowedInputVariables {
52      get { return new string[] { "sepal_length", "sepal_width", "petal_length", "petal_width" }; }
53    }
54    protected override int TrainingPartitionStart { get { return 0; } }
55    protected override int TrainingPartitionEnd { get { return 100; } }
56    protected override int TestPartitionStart { get { return 100; } }
57    protected override int TestPartitionEnd { get { return 150; } }
58  }
59}
Note: See TracBrowser for help on using the repository browser.