- Timestamp:
- 05/15/12 13:54:24 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources
- Property svn:mergeinfo changed
/branches/ProblemInstancesRegressionAndClassification (added) merged: 7568-7572,7603,7605-7607,7610,7664-7667,7682-7685,7687,7698,7748-7755,7757-7759,7770-7774,7794,7805,7809-7810
- Property svn:mergeinfo changed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab-3.3/SamplesTest.cs
r7662 r7823 53 53 using HeuristicLab.Selection; 54 54 using Microsoft.VisualStudio.TestTools.UnitTesting; 55 using classification = HeuristicLab.Problems.Instances.Classification; 56 using regression = HeuristicLab.Problems.Instances.Regression; 55 57 56 58 namespace HeuristicLab_33.Tests { 57 59 [TestClass] 58 60 [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")]61 61 [DeploymentItem(@"HeuristicLab-3.3/Resources/C101.txt")] 62 62 public class SamplesTest { … … 250 250 symbRegProblem.Name = "Tower Symbolic Regression Problem"; 251 251 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); 253 255 towerProblemData.TargetVariableParameter.Value = towerProblemData.TargetVariableParameter.ValidValues 254 256 .First(v => v.Value == "towerResponse"); … … 353 355 symbClassProblem.Name = "Mammography Classification Problem"; 354 356 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); 356 360 mammoData.TargetVariableParameter.Value = mammoData.TargetVariableParameter.ValidValues 357 361 .First(v => v.Value == "Severity");
Note: See TracChangeset
for help on using the changeset viewer.