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/Wine.cs

    r8889 r9208  
    2323using System;
    2424namespace HeuristicLab.Problems.Instances.DataAnalysis {
    25   public class Wine : IUCIDataDescriptor {
    26     public string Name { get { return "Wine"; } }
    27     public string Description {
     25  public class Wine : UCIDataDescriptor {
     26    public override string Filename { get { return "Wine"; } }
     27    public override string Description {
    2828      get {
    2929        return "These data are the results of a chemical analysis of wines grown in the same region " +
     
    5151      }
    5252    }
    53     public string Donor { get { return "S. Aeberhard"; } }
    54     public int Year { get { return 1991; } }
     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; } }
    5567  }
    5668}
Note: See TracChangeset for help on using the changeset viewer.