Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/06/13 12:30:13 (12 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/UCIInstanceProvider.cs

    r8903 r9208  
    4646
    4747    public override IEnumerable<IDataDescriptor> GetDataDescriptors() {
    48       List<IUCIDataDescriptor> descriptorList = new List<IUCIDataDescriptor>();
     48      List<UCIDataDescriptor> descriptorList = new List<UCIDataDescriptor>();
    4949      descriptorList.Add(new Iris());
    5050      descriptorList.Add(new Mammography());
     
    5353      descriptorList.Add(new Vertebral_3C());
    5454      descriptorList.Add(new Wine());
     55      descriptorList.Add(new WisconsinDiagnosticBreastCancer());
    5556      var solutionsArchiveName = GetResourceName(FileName + @"\.zip");
    5657      if (!String.IsNullOrEmpty(solutionsArchiveName)) {
     
    6263          }
    6364          foreach (var entry in entries.OrderBy(x => x)) {
    64             string prettyName = Path.GetFileNameWithoutExtension(entry);
    65             IUCIDataDescriptor desc = descriptorList.Where(x => x.Name.Equals(prettyName)).FirstOrDefault();
     65            string filename = Path.GetFileNameWithoutExtension(entry);
     66            UCIDataDescriptor desc = descriptorList.Where(x => x.Filename.Equals(filename)).FirstOrDefault();
    6667            if (desc != null) {
    67               prettyName = String.Format("{0}, {1}, {2}", prettyName, desc.Donor, desc.Year);
    68               yield return new ResourceClassificationDataDescriptor(prettyName, desc.Description, entry);
     68              desc.ResourceName = entry;
     69              yield return desc;
    6970            } else
    70               yield return new ResourceClassificationDataDescriptor(prettyName, Description, entry);
     71              throw new ArgumentNullException("No Descriptor could be found for this entry.");
    7172          }
    7273        }
Note: See TracChangeset for help on using the changeset viewer.