Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/12/12 09:26:00 (11 years ago)
Author:
sforsten
Message:

#1941: IUCIDataDescriptor to add more information about the datasets to the data, to distinguish between different version, as suggested by abeham

File:
1 edited

Legend:

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

    r8841 r8889  
    4646
    4747    public override IEnumerable<IDataDescriptor> GetDataDescriptors() {
    48       List<IDataDescriptor> descriptorList = new List<IDataDescriptor>();
     48      List<IUCIDataDescriptor> descriptorList = new List<IUCIDataDescriptor>();
    4949      descriptorList.Add(new Iris());
    5050      descriptorList.Add(new Mammography());
     
    6161          foreach (var entry in entries.OrderBy(x => x)) {
    6262            string prettyName = Path.GetFileNameWithoutExtension(entry);
    63             IDataDescriptor desc = descriptorList.Where(x => x.Name.Equals(prettyName)).FirstOrDefault();
     63            IUCIDataDescriptor desc = descriptorList.Where(x => x.Name.Equals(prettyName)).FirstOrDefault();
     64            prettyName = String.Format("{0}, {1}, {2}", prettyName, desc.Donor, desc.Year);
    6465            if (desc != null) {
    6566              yield return new ResourceClassificationDataDescriptor(prettyName, desc.Description, entry);
Note: See TracChangeset for help on using the changeset viewer.