Changeset 15196 for stable/HeuristicLab.Problems.Instances.DataAnalysis
- Timestamp:
- 07/11/17 12:58:52 (7 years ago)
- Location:
- stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3
- Files:
-
- 12 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/HeuristicLab.Problems.Instances.DataAnalysis-3.3.csproj
r15195 r15196 157 157 <Compile Include="Regression\FeatureSelection\FeatureSelection.cs" /> 158 158 <Compile Include="Regression\FeatureSelection\FeatureSelectionInstanceProvider.cs" /> 159 <Compile Include="Regression\MibaFriction\CF3.cs" /> 160 <Compile Include="Regression\MibaFriction\Wear1.cs" /> 161 <Compile Include="Regression\MibaFriction\Wear2.cs" /> 162 <Compile Include="Regression\MibaFriction\Temp2.cs" /> 163 <Compile Include="Regression\MibaFriction\Temp1.cs" /> 164 <Compile Include="Regression\MibaFriction\NvhRating.cs" /> 165 <Compile Include="Regression\MibaFriction\CF4.cs" /> 166 <Compile Include="Regression\MibaFriction\CF2.cs" /> 167 <Compile Include="Regression\MibaFriction\CF1.cs" /> 168 <Compile Include="Regression\MibaFriction\MibaFrictionRegressionInstanceProvider.cs" /> 159 169 <Compile Include="Regression\VariableNetworks\LinearVariableNetwork.cs" /> 160 170 <Compile Include="Regression\VariableNetworks\GaussianProcessVariableNetwork.cs" /> … … 246 256 <None Include="Properties\AssemblyInfo.cs.frame" /> 247 257 <EmbeddedResource Include="Regression\Data\RegressionRealWorld.zip" /> 258 <EmbeddedResource Include="Regression\Data\MibaFriction.zip" /> 248 259 </ItemGroup> 249 260 <ItemGroup> -
stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/MibaFriction/CF1.cs
r14789 r15196 37 37 } 38 38 39 // TODO: include string variables after factor branch integration40 39 protected override string[] AllowedInputVariables { 41 get { return new string[] { /* "Material_Cat", */40 get { return new string[] { "Material_Cat", 42 41 "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16", 43 /* "Material", "Grooving", "Oil", */42 "Material", "Grooving", "Oil", 44 43 "x17", "x20", "x22" }; } 45 44 } -
stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/MibaFriction/CF2.cs
r14790 r15196 38 38 } 39 39 40 // TODO: include string variables after factor branch integration41 40 protected override string[] AllowedInputVariables { 42 get { return new string[] { /* "Material_Cat", */43 "Source1", " Source2", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16",44 /* "Material", "Grooving", "Oil", */41 get { return new string[] { "Material_Cat", 42 "Source1", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16", 43 "Material", "Grooving", "Oil", 45 44 "x17", "x18", "x19", "x20", "x21", "x22" }; } 46 45 } -
stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/MibaFriction/CF3.cs
r14791 r15196 38 38 } 39 39 40 // TODO: include string variables after factor branch integration41 40 protected override string[] AllowedInputVariables { 42 get { return new string[] { /* "Material_Cat", */43 /*"Source1", "Source2",*/"x1", "x2", "x3", "x4", "x5", "x6", "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16",44 /* "Material", "Grooving", "Oil", */41 get { return new string[] { "Material_Cat", 42 "Source1", "x1", "x2", "x3", "x4", "x5", "x6", "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16", 43 "Material", "Grooving", "Oil", 45 44 "x17", "x22" }; } 46 45 } -
stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/MibaFriction/CF4.cs
r14791 r15196 38 38 } 39 39 40 // TODO: include string variables after factor branch integration41 40 protected override string[] AllowedInputVariables { 42 get { return new string[] { /* "Material_Cat", */41 get { return new string[] { "Material_Cat", 43 42 "x1", "x2", "x3", "x4", "x5", "x6", "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16", 44 /* "Material", "Grooving", "Oil", */43 "Material", "Grooving", "Oil", 45 44 "x17", "x22" }; } 46 45 } -
stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/MibaFriction/MibaFrictionRegressionInstanceProvider.cs
r14790 r15196 47 47 public override IEnumerable<IDataDescriptor> GetDataDescriptors() { 48 48 List<ResourceRegressionDataDescriptor> descriptorList = new List<ResourceRegressionDataDescriptor>(); 49 descriptorList.Add(new CF1()); 50 descriptorList.Add(new CF2()); 51 descriptorList.Add(new CF3()); 52 descriptorList.Add(new CF4()); 53 descriptorList.Add(new NvhRating()); 54 descriptorList.Add(new Temp1()); 55 descriptorList.Add(new Temp2()); 56 descriptorList.Add(new Wear1()); 57 descriptorList.Add(new Wear2()); 58 var solutionsArchiveName = GetResourceName(FileName + @"\.zip"); 59 if (!String.IsNullOrEmpty(solutionsArchiveName)) { 60 using (var solutionsZipFile = new ZipArchive(GetType().Assembly.GetManifestResourceStream(solutionsArchiveName), ZipArchiveMode.Read)) { 61 IList<string> entries = new List<string>(); 62 foreach (var curEntry in solutionsZipFile.Entries) { 63 entries.Add(curEntry.Name); 64 } 65 foreach (var entry in entries.OrderBy(x => x)) { 66 string prettyName = Path.GetFileNameWithoutExtension(entry); 67 ResourceRegressionDataDescriptor desc = descriptorList.Where(x => x.Name.Equals(prettyName)).FirstOrDefault(); 68 if (desc != null) { 69 desc.ResourceName = entry; 70 yield return desc; 71 } else 72 throw new ArgumentNullException("No descriptor could be found for this entry."); 73 } 74 } 75 } 49 descriptorList.Add(new CF1() { ResourceName = "CF1.csv" }); 50 descriptorList.Add(new CF2() { ResourceName = "CF2.csv" }); 51 descriptorList.Add(new CF3() { ResourceName = "CF3.csv" }); 52 descriptorList.Add(new CF4() { ResourceName = "CF4.csv" }); 53 descriptorList.Add(new NvhRating() { ResourceName = "NvhRating.csv" }); 54 descriptorList.Add(new Temp1() { ResourceName = "Temp1.csv" }); 55 descriptorList.Add(new Temp2() { ResourceName = "Temp2.csv" }); 56 descriptorList.Add(new Wear1() { ResourceName = "Wear1.csv" }); 57 descriptorList.Add(new Wear2() { ResourceName = "Wear2.csv" }); 58 59 return descriptorList; 76 60 } 77 61 } -
stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/MibaFriction/NvhRating.cs
r14791 r15196 38 38 } 39 39 40 // TODO: include string variables after factor branch integration41 40 protected override string[] AllowedInputVariables { 42 get { return new string[] { /* "Material_Cat", */41 get { return new string[] { "Material_Cat", 43 42 "x1", "x2", "x3", "x4", "x5", "x6", "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16", 44 /* "Material", "Grooving", "Oil", */43 "Material", "Grooving", "Oil", 45 44 "x17", "x18", "x19", "x21", "x22" }; } 46 45 } -
stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/MibaFriction/Temp1.cs
r14791 r15196 38 38 } 39 39 40 // TODO: include string variables after factor branch integration41 40 protected override string[] AllowedInputVariables { 42 get { return new string[] { /* "Material_Cat", */41 get { return new string[] { "Material_Cat", 43 42 "x1", "x2", "x3", "x4", "x5", "x6", "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16", 44 /* "Material", "Grooving", "Oil", */43 "Material", "Grooving", "Oil", 45 44 "x17", "x22" }; } 46 45 } -
stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/MibaFriction/Temp2.cs
r14791 r15196 38 38 } 39 39 40 // TODO: include string variables after factor branch integration41 40 protected override string[] AllowedInputVariables { 42 get { return new string[] { /* "Material_Cat", */41 get { return new string[] { "Material_Cat", 43 42 "x1", "x2", "x3", "x4", "x5", "x6", "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16", 44 /* "Material", "Grooving", "Oil", */43 "Material", "Grooving", "Oil", 45 44 "x17", "x22" }; } 46 45 } -
stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/MibaFriction/Wear1.cs
r14791 r15196 38 38 } 39 39 40 // TODO: include string variables after factor branch integration41 40 protected override string[] AllowedInputVariables { 42 get { return new string[] { /* "Material_Cat", */41 get { return new string[] { "Material_Cat", 43 42 "Source1", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16", 44 /* "Material", "Grooving", "Oil", */43 "Material", "Grooving", "Oil", 45 44 "x17", "x18", "x19", "x20", "x21", "x22" }; } 46 45 } -
stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/MibaFriction/Wear2.cs
r14791 r15196 38 38 } 39 39 40 // TODO: include string variables after factor branch integration41 40 protected override string[] AllowedInputVariables { 42 get { return new string[] { /* "Material_Cat", */41 get { return new string[] { "Material_Cat", 43 42 "Source1", "x1", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9", "x10", "x11", "x12", "x13", "x14", "x15", "x16", 44 /* "Material", "Grooving", "Oil", */43 "Material", "Grooving", "Oil", 45 44 "x17", "x18", "x19", "x20", "x21", "x22" }; } 46 45 } -
stable/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Regression/RealWorld/RealWorldRegressionInstanceProvider.cs
r14186 r15196 47 47 public override IEnumerable<IDataDescriptor> GetDataDescriptors() { 48 48 List<ResourceRegressionDataDescriptor> descriptorList = new List<ResourceRegressionDataDescriptor>(); 49 descriptorList.Add(new ChemicalOne()); 50 descriptorList.Add(new Housing()); 51 descriptorList.Add(new Tower()); 52 descriptorList.Add(new Powermeter()); 53 descriptorList.Add(new SARCOS()); 54 var solutionsArchiveName = GetResourceName(FileName + @"\.zip"); 55 if (!String.IsNullOrEmpty(solutionsArchiveName)) { 56 using (var solutionsZipFile = new ZipArchive(GetType().Assembly.GetManifestResourceStream(solutionsArchiveName), ZipArchiveMode.Read)) { 57 IList<string> entries = new List<string>(); 58 foreach (var curEntry in solutionsZipFile.Entries) { 59 entries.Add(curEntry.Name); 60 } 61 foreach (var entry in entries.OrderBy(x => x)) { 62 string prettyName = Path.GetFileNameWithoutExtension(entry); 63 ResourceRegressionDataDescriptor desc = descriptorList.Where(x => x.Name.Equals(prettyName)).FirstOrDefault(); 64 if (desc != null) { 65 desc.ResourceName = entry; 66 yield return desc; 67 } else 68 throw new ArgumentNullException("No Descriptor could be found for this entry."); 69 } 70 } 71 } 49 descriptorList.Add(new ChemicalOne() { ResourceName = "Chemical-I.csv" }); 50 descriptorList.Add(new Housing() { ResourceName = "Housing.csv" }); 51 descriptorList.Add(new Tower() { ResourceName = "Tower.txt" }); 52 descriptorList.Add(new Powermeter() { ResourceName = "Powermeter.txt" }); 53 descriptorList.Add(new SARCOS() { ResourceName = "SARCOS - Inverse Dynamics.txt" }); 54 return descriptorList; 72 55 } 73 56 }
Note: See TracChangeset
for help on using the changeset viewer.