Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/15/12 13:54:24 (12 years ago)
Author:
sforsten
Message:

#1784: merge branch ProblemInstancesRegressionAndClassification into trunk

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources

  • trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/SamplesTest.cs

    r7662 r7823  
    5353using HeuristicLab.Selection;
    5454using Microsoft.VisualStudio.TestTools.UnitTesting;
     55using classification = HeuristicLab.Problems.Instances.Classification;
     56using regression = HeuristicLab.Problems.Instances.Regression;
    5557
    5658namespace HeuristicLab_33.Tests {
    5759  [TestClass]
    5860  [DeploymentItem(@"HeuristicLab-3.3/Resources/C101.opt.txt")]
    59   [DeploymentItem(@"HeuristicLab-3.3/Resources/mammographic_masses.txt")]
    60   [DeploymentItem(@"HeuristicLab-3.3/Resources/towerData.txt")]
    6161  [DeploymentItem(@"HeuristicLab-3.3/Resources/C101.txt")]
    6262  public class SamplesTest {
     
    250250      symbRegProblem.Name = "Tower Symbolic Regression Problem";
    251251      symbRegProblem.Description = "Tower Dataset (downloaded from: http://vanillamodeling.com/realproblems.html)";
    252       var towerProblemData = RegressionProblemData.ImportFromFile("towerData.txt");
     252      regression.RealWorldInstanceProvider provider = new regression.RealWorldInstanceProvider();
     253      var instance = provider.GetDataDescriptors().Where(x => x.Name.Equals("towerData")).Single();
     254      var towerProblemData = (RegressionProblemData)provider.LoadData(instance);
    253255      towerProblemData.TargetVariableParameter.Value = towerProblemData.TargetVariableParameter.ValidValues
    254256        .First(v => v.Value == "towerResponse");
     
    353355      symbClassProblem.Name = "Mammography Classification Problem";
    354356      symbClassProblem.Description = "Mammography dataset imported from the UCI machine learning repository (http://archive.ics.uci.edu/ml/datasets/Mammographic+Mass)";
    355       var mammoData = ClassificationProblemData.ImportFromFile("mammographic_masses.txt");
     357      classification.RealWorldInstanceProvider provider = new classification.RealWorldInstanceProvider();
     358      var instance = provider.GetDataDescriptors().Where(x => x.Name.Equals("mammography")).Single();
     359      var mammoData = (ClassificationProblemData)provider.LoadData(instance);
    356360      mammoData.TargetVariableParameter.Value = mammoData.TargetVariableParameter.ValidValues
    357361        .First(v => v.Value == "Severity");
Note: See TracChangeset for help on using the changeset viewer.