Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/06/13 12:30:13 (11 years ago)
Author:
sforsten
Message:

#1941:

  • added wisconsin breast cancer problem instance
  • corrected iris dataset
  • changed classification data descriptors to be able to set training and test partition as well as input and target variables (in the same way as it is done in regression)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Classification/UCI/Iris.cs

    r8889 r9208  
    2323using System;
    2424namespace HeuristicLab.Problems.Instances.DataAnalysis {
    25   public class Iris : IUCIDataDescriptor {
    26     public string Name { get { return "Iris"; } }
    27     public string Description {
     25  public class Iris : UCIDataDescriptor {
     26    public override string Filename { get { return "Iris"; } }
     27    public override string Description {
    2828      get {
    2929        return "Data Set Information:" + Environment.NewLine
     
    3535        + "other 2; the latter are NOT linearly separable from each other." + Environment.NewLine
    3636        + "Predicted attribute: class of iris plant." + Environment.NewLine
    37         + "This is an exceedingly simple domain.";
     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";
    3842      }
    3943    }
    40     public string Donor { get { return "M. Marshall"; } }
    41     public int Year { get { return 1988; } }
     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; } }
    4258  }
    4359}
Note: See TracChangeset for help on using the changeset viewer.