Changeset 7666 for branches/ProblemInstancesRegressionAndClassification
- Timestamp:
- 03/27/12 16:13:25 (13 years ago)
- Location:
- branches/ProblemInstancesRegressionAndClassification
- Files:
-
- 9 added
- 1 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab 3.3.sln
r7665 r7666 15 15 EndProject 16 16 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.Instances.Regression-3.4", "HeuristicLab.Problems.Instances.Regression\3.4\HeuristicLab.Problems.Instances.Regression-3.4.csproj", "{26BF13E1-C8B2-4ACE-862D-EBFD360116B3}" 17 EndProject18 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Problems.Instances.Regression.Views-3.4", "HeuristicLab.Problems.Instances.Regression.Views\3.4\HeuristicLab.Problems.Instances.Regression.Views-3.4.csproj", "{1CC61973-7706-42DC-8023-310F591AB02B}"19 17 EndProject 20 18 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Optimization.Views-3.3", "HeuristicLab.Optimization.Views\3.3\HeuristicLab.Optimization.Views-3.3.csproj", "{662B4B15-8F4D-4AE5-B3EB-D91C215F5AF2}" … … 94 92 {26BF13E1-C8B2-4ACE-862D-EBFD360116B3}.Release|x64.ActiveCfg = Release|Any CPU 95 93 {26BF13E1-C8B2-4ACE-862D-EBFD360116B3}.Release|x86.ActiveCfg = Release|Any CPU 96 {1CC61973-7706-42DC-8023-310F591AB02B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU97 {1CC61973-7706-42DC-8023-310F591AB02B}.Debug|Any CPU.Build.0 = Debug|Any CPU98 {1CC61973-7706-42DC-8023-310F591AB02B}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU99 {1CC61973-7706-42DC-8023-310F591AB02B}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU100 {1CC61973-7706-42DC-8023-310F591AB02B}.Debug|x64.ActiveCfg = Debug|Any CPU101 {1CC61973-7706-42DC-8023-310F591AB02B}.Debug|x86.ActiveCfg = Debug|Any CPU102 {1CC61973-7706-42DC-8023-310F591AB02B}.Release|Any CPU.ActiveCfg = Release|Any CPU103 {1CC61973-7706-42DC-8023-310F591AB02B}.Release|Any CPU.Build.0 = Release|Any CPU104 {1CC61973-7706-42DC-8023-310F591AB02B}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU105 {1CC61973-7706-42DC-8023-310F591AB02B}.Release|Mixed Platforms.Build.0 = Release|Any CPU106 {1CC61973-7706-42DC-8023-310F591AB02B}.Release|x64.ActiveCfg = Release|Any CPU107 {1CC61973-7706-42DC-8023-310F591AB02B}.Release|x86.ActiveCfg = Release|Any CPU108 94 {662B4B15-8F4D-4AE5-B3EB-D91C215F5AF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 109 95 {662B4B15-8F4D-4AE5-B3EB-D91C215F5AF2}.Debug|Any CPU.Build.0 = Debug|Any CPU -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4
- Property svn:ignore
-
old new 2 2 bin 3 3 obj 4 *.user
-
- Property svn:ignore
-
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/HeuristicLab.Problems.Instances.Regression-3.4.csproj
r7664 r7666 53 53 <HintPath>..\..\..\..\trunk\sources\bin\HeuristicLab.Random-3.3.dll</HintPath> 54 54 </Reference> 55 <Reference Include="ICSharpCode.SharpZipLib, Version=0.85.4.369, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL" /> 55 56 <Reference Include="System" /> 56 57 <Reference Include="System.Core" /> … … 107 108 <Compile Include="Properties\AssemblyInfo.cs" /> 108 109 <Compile Include="RegressionInstanceProvider.cs" /> 110 <Compile Include="TrentMcConaghy\TrentMcConaghyInstanceProvider.cs" /> 109 111 <Compile Include="ValueGenerator.cs" /> 112 <Compile Include="Various\BreimanOne.cs" /> 113 <Compile Include="Various\SpatialCoevolution.cs" /> 114 <Compile Include="Various\PolyTen.cs" /> 115 <Compile Include="Various\VariousInstanceProvider.cs" /> 110 116 <Compile Include="Vladislavleva\UnwrappedBallFunctionFiveDimensional.cs" /> 111 117 <Compile Include="Vladislavleva\SineCosineFunction.cs" /> … … 119 125 </ItemGroup> 120 126 <ItemGroup> 127 <EmbeddedResource Include="Data\TrentMcConaghy.zip" /> 121 128 <None Include="HeuristicLab.snk" /> 122 129 <None Include="Plugin.cs.frame" /> … … 133 140 </ProjectReference> 134 141 </ItemGroup> 142 <ItemGroup /> 135 143 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 136 144 <PropertyGroup> -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Properties/AssemblyInfo.cs
r7665 r7666 55 55 // [assembly: AssemblyVersion("1.0.*")] 56 56 [assembly: AssemblyVersion("3.4.0.0")] 57 [assembly: AssemblyFileVersion("3.4.0.766 4")]57 [assembly: AssemblyFileVersion("3.4.0.7665")] -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/ResourceRegressionDataDescriptor.cs
r7664 r7666 26 26 public string Description { get; internal set; } 27 27 28 internal string resourceName { get; set; } 28 internal string ResourceName { get; set; } 29 internal ResourceRegressionDataDescriptor(string name, string description, string resourceName) { 30 Name = name; 31 Description = description; 32 ResourceName = resourceName; 33 } 29 34 } 30 35 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/ResourceRegressionInstanceProvider.cs
r7664 r7666 23 23 using System.Linq; 24 24 using System.Reflection; 25 using System.Text.RegularExpressions; 26 using ICSharpCode.SharpZipLib.Zip; 25 27 26 28 namespace HeuristicLab.Problems.Instances.Regression { 27 29 public abstract class ResourceRegressionInstanceProvider : RegressionInstanceProvider { 30 31 protected abstract string FileExtension { get; } 32 28 33 public override RegressionData LoadData(IDataDescriptor id) { 29 34 var descriptor = (ResourceRegressionDataDescriptor)id; 30 35 31 RegressionData regData = LoadData(GetTempFileForResource(descriptor. resourceName));36 RegressionData regData = LoadData(GetTempFileForResource(descriptor.ResourceName)); 32 37 regData.Name = descriptor.Name; 33 38 regData.Description = descriptor.Description; … … 36 41 } 37 42 38 #region Helpers 39 protected static string GetTempFileForResource(string resourceName) { 40 Assembly assembly = Assembly.GetExecutingAssembly(); 41 string resource = assembly.GetManifestResourceNames().Where(x => x.EndsWith(resourceName)).First(); 42 43 string path = Path.GetTempFileName(); 44 45 using (Stream stream = assembly.GetManifestResourceStream(resource)) { 46 WriteStreamToTempFile(stream, path); 47 } 48 return path; 43 protected virtual string GetResourceName(string fileName) { 44 return Assembly.GetExecutingAssembly().GetManifestResourceNames() 45 .Where(x => Regex.Match(x, @".*\.Data\." + fileName).Success).SingleOrDefault(); 49 46 } 50 47 51 private static void WriteStreamToTempFile(Stream stream, string path) { 48 private string GetTempFileForResource(string resourceName) { 49 var instanceArchiveName = GetResourceName(FileExtension + @"\.zip"); 50 using (var instancesZipFile = new ZipFile(GetType().Assembly.GetManifestResourceStream(instanceArchiveName))) { 51 var entry = instancesZipFile.GetEntry(resourceName); 52 string path = Path.GetTempFileName(); 53 using (var stream = instancesZipFile.GetInputStream(entry)) { 54 WriteStreamToTempFile(stream, path); 55 } 56 return path; 57 } 58 } 59 60 private void WriteStreamToTempFile(Stream stream, string path) { 52 61 using (FileStream output = new FileStream(path, FileMode.Create, FileAccess.Write)) { 53 62 int cnt = 0; … … 57 66 } 58 67 } 59 #endregion60 68 } 61 69 } -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Regression/3.4/Vladislavleva/KotanchekFunction.cs
r7664 r7666 57 57 } 58 58 59 60 59 double x1, x2; 61 60 List<double> results = new List<double>(); -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/Plugin.cs
r7665 r7666 23 23 24 24 namespace HeuristicLab.Problems.Instances.Views { 25 [Plugin("HeuristicLab.Problems.Instances.Views", "3.4.0.766 4")]25 [Plugin("HeuristicLab.Problems.Instances.Views", "3.4.0.7665")] 26 26 [PluginFile("HeuristicLab.Problems.Instances.Views-3.4.dll", PluginFileType.Assembly)] 27 27 [PluginDependency("HeuristicLab.Common", "3.3")] -
branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Problems.Instances.Views/3.4/Properties/AssemblyInfo.cs
r7665 r7666 53 53 // by using the '*' as shown below: 54 54 [assembly: AssemblyVersion("3.4.0.0")] 55 [assembly: AssemblyFileVersion("3.4.2.766 4")]55 [assembly: AssemblyFileVersion("3.4.2.7665")]
Note: See TracChangeset
for help on using the changeset viewer.