- Timestamp:
- 03/15/11 17:02:57 (14 years ago)
- Location:
- branches/DataAnalysis Refactoring
- Files:
-
- 2 added
- 7 edited
- 6 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis.Views/3.4
- Property svn:ignore
-
old new 3 3 HeuristicLabAlgorithmsDataAnalysisViewsPlugin.cs 4 4 *.vs10x 5 *.user
-
- Property svn:ignore
-
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis.Views/3.4/HeuristicLab.Algorithms.DataAnalysis.Views-3.4.csproj
r5617 r5694 122 122 <Compile Include="HeuristicLabAlgorithmsDataAnalysisViewsPlugin.cs" /> 123 123 <Compile Include="Properties\AssemblyInfo.cs" /> 124 <Compile Include="SupportVectorMachineModelView.cs"> 125 <SubType>UserControl</SubType> 126 </Compile> 127 <Compile Include="SupportVectorMachineModelView.Designer.cs"> 128 <DependentUpon>SupportVectorMachineModelView.cs</DependentUpon> 129 </Compile> 130 <Compile Include="SupportVectorRegressionSolutionView.cs" /> 131 <Compile Include="SupportVectorRegressionSolutionView.Designer.cs"> 132 <DependentUpon>SupportVectorRegressionSolutionView.cs</DependentUpon> 133 </Compile> 124 134 </ItemGroup> 125 135 <ItemGroup> … … 161 171 <Name>HeuristicLab.Data-3.3</Name> 162 172 </ProjectReference> 173 <ProjectReference Include="..\..\HeuristicLab.ExtLibs\HeuristicLab.LibSVM\1.6.3\HeuristicLab.LibSVM-1.6.3\HeuristicLab.LibSVM-1.6.3.csproj"> 174 <Project>{89B50302-9CEE-4D13-9779-633EADCAE624}</Project> 175 <Name>HeuristicLab.LibSVM-1.6.3 %28HeuristicLab.ExtLibs\HeuristicLab.LibSVM\HeuristicLab.LibSVM-1.6.3\HeuristicLab.LibSVM-1.6.3%29</Name> 176 </ProjectReference> 177 <ProjectReference Include="..\..\HeuristicLab.ExtLibs\HeuristicLab.LibSVM\1.6.3\LibSVM-1.6.3\LibSVM-1.6.3.csproj"> 178 <Project>{A16F23B5-FB62-499E-A831-26953AA56FE2}</Project> 179 <Name>LibSVM-1.6.3</Name> 180 </ProjectReference> 163 181 <ProjectReference Include="..\..\HeuristicLab.MainForm.WindowsForms\3.3\HeuristicLab.MainForm.WindowsForms-3.3.csproj"> 164 182 <Project>{AB687BBE-1BFE-476B-906D-44237135431D}</Project> … … 180 198 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project> 181 199 <Name>HeuristicLab.PluginInfrastructure-3.3</Name> 200 </ProjectReference> 201 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Views\3.4\HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj"> 202 <Project>{3E9E8944-44FF-40BB-A622-3A4A7DD0F198}</Project> 203 <Name>HeuristicLab.Problems.DataAnalysis.Views-3.4</Name> 182 204 </ProjectReference> 183 205 <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj"> -
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis.Views/3.4/SupportVectorMachineModelView.Designer.cs
r5692 r5694 19 19 */ 20 20 #endregion 21 namespace HeuristicLab.Problems.DataAnalysis.Views { 21 22 namespace HeuristicLab.Algorithms.DataAnalysis.Views { 22 23 partial class SupportVectorMachineModelView { 23 24 /// <summary> -
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis.Views/3.4/SupportVectorMachineModelView.cs
r5692 r5694 24 24 using HeuristicLab.MainForm; 25 25 using HeuristicLab.MainForm.WindowsForms; 26 using HeuristicLab.Problems.DataAnalysis.SupportVectorMachine;27 26 28 namespace HeuristicLab. Problems.DataAnalysis.Views {29 [View("Support Vector Machine Model View")]27 namespace HeuristicLab.Algorithms.DataAnalysis.Views { 28 [View("Support vector machine model view")] 30 29 [Content(typeof(SupportVectorMachineModel), true)] 31 30 public partial class SupportVectorMachineModelView : AsynchronousContentView { … … 63 62 private void UpdateTextBox() { 64 63 using (MemoryStream s = new MemoryStream()) { 65 SupportVectorMachineModel.Export(Content, s); 66 s.Seek(0, System.IO.SeekOrigin.Begin); 64 StreamWriter writer = new StreamWriter(s); 65 writer.WriteLine("RangeTransform:"); 66 writer.Flush(); 67 using (MemoryStream memStream = new MemoryStream()) { 68 SVM.RangeTransform.Write(memStream, Content.RangeTransform); 69 memStream.Seek(0, SeekOrigin.Begin); 70 memStream.WriteTo(s); 71 } 72 writer.WriteLine("Model:"); 73 writer.Flush(); 74 using (MemoryStream memStream = new MemoryStream()) { 75 SVM.Model.Write(memStream, Content.Model); 76 memStream.Seek(0, SeekOrigin.Begin); 77 memStream.WriteTo(s); 78 } 79 s.Flush(); 80 67 81 StreamReader reader = new StreamReader(s); 68 82 textBox.Text = reader.ReadToEnd(); -
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis.Views/3.4/SupportVectorRegressionSolutionView.cs
r5692 r5694 22 22 using HeuristicLab.MainForm; 23 23 using HeuristicLab.MainForm.WindowsForms; 24 using HeuristicLab. Problems.DataAnalysis.Regression.SupportVectorRegression;24 using HeuristicLab.Algorithms.DataAnalysis; 25 25 26 26 namespace HeuristicLab.Problems.DataAnalysis.Views { 27 [View("Support Vector Regression Solution View")]28 [Content(typeof( SupportVectorRegressionSolution))]27 [View("Support vector machine solution view")] 28 [Content(typeof(ISupportVectorMachineSolution))] 29 29 public partial class SupportVectorRegressionSolutionView : DataAnalysisSolutionView { 30 30 31 public new SupportVectorRegressionSolution Content {32 get { return ( SupportVectorRegressionSolution)base.Content; }31 public new ISupportVectorMachineSolution Content { 32 get { return (ISupportVectorMachineSolution)base.Content; } 33 33 set { base.Content = value; } 34 34 } … … 42 42 base.OnContentChanged(); 43 43 if (Content != null) { 44 supportVectorViewHost.Content = Content. SupportVectors;44 supportVectorViewHost.Content = Content.Model.SupportVectors; 45 45 } else { 46 46 supportVectorViewHost.Content = null; -
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/HeuristicLab.Algorithms.DataAnalysis-3.4.csproj
r5658 r5694 112 112 <Compile Include="HeuristicLabAlgorithmsDataAnalysisPlugin.cs" /> 113 113 <Compile Include="FixedDataAnalysisAlgorithm.cs" /> 114 <Compile Include="Interfaces\ISupportVectorMachineModel.cs" /> 115 <Compile Include="Interfaces\ISupportVectorMachineSolution.cs" /> 114 116 <Compile Include="Interfaces\IDataAnalysisAlgorithm.cs" /> 115 117 <Compile Include="kMeans\KMeansClustering.cs" /> -
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorClassificationSolution.cs
r5690 r5694 35 35 [Item("SupportVectorClassificationSolution", "Represents a support vector solution for a classification problem which can be visualized in the GUI.")] 36 36 [StorableClass] 37 public sealed class SupportVectorClassificationSolution : ClassificationSolution {37 public sealed class SupportVectorClassificationSolution : ClassificationSolution, ISupportVectorMachineSolution { 38 38 39 public new SupportVectorMachineModel Model {40 get { return ( SupportVectorMachineModel)base.Model; }39 public new ISupportVectorMachineModel Model { 40 get { return (ISupportVectorMachineModel)base.Model; } 41 41 } 42 42 -
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorMachineModel.cs
r5690 r5694 38 38 [StorableClass] 39 39 [Item("SupportVectorMachineModel", "Represents a support vector machine model.")] 40 public sealed class SupportVectorMachineModel : NamedItem, I RegressionModel, IClassificationModel {40 public sealed class SupportVectorMachineModel : NamedItem, ISupportVectorMachineModel, IRegressionModel, IClassificationModel { 41 41 42 42 private SVM.Model model; … … 76 76 var sv = Model.SupportVectors[i]; 77 77 for (int j = 0; j < sv.Length; j++) { 78 data[i, sv[j].Index] = sv[j].Value;78 data[i, j] = sv[j].Value; 79 79 } 80 80 } … … 118 118 return new SupportVectorMachineModel(this, cloner); 119 119 } 120 121 120 122 121 #region IRegressionModel Members … … 196 195 } 197 196 } 198 #endregion 197 #endregion 199 198 } 200 199 } -
branches/DataAnalysis Refactoring/HeuristicLab.Algorithms.DataAnalysis/3.4/SupportVectorMachine/SupportVectorRegressionSolution.cs
r5690 r5694 35 35 [Item("SupportVectorRegressionSolution", "Represents a support vector solution for a regression problem which can be visualized in the GUI.")] 36 36 [StorableClass] 37 public sealed class SupportVectorRegressionSolution : RegressionSolution {37 public sealed class SupportVectorRegressionSolution : RegressionSolution, ISupportVectorMachineSolution { 38 38 39 public new SupportVectorMachineModel Model {40 get { return ( SupportVectorMachineModel)base.Model; }39 public new ISupportVectorMachineModel Model { 40 get { return (ISupportVectorMachineModel)base.Model; } 41 41 } 42 42 -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Views/3.4/DataAnalysisSolutionView.cs
r5692 r5694 25 25 26 26 namespace HeuristicLab.Problems.DataAnalysis.Views { 27 [View("Data Analysis Solution View")]28 [Content(typeof( DataAnalysisSolution))]27 [View("Data analysis solution view")] 28 [Content(typeof(IDataAnalysisSolution))] 29 29 public partial class DataAnalysisSolutionView : AsynchronousContentView { 30 30 public DataAnalysisSolutionView() { … … 32 32 } 33 33 34 public new DataAnalysisSolution Content {35 get { return ( DataAnalysisSolution)base.Content; }34 public new IDataAnalysisSolution Content { 35 get { return (IDataAnalysisSolution)base.Content; } 36 36 set { base.Content = value; } 37 37 } -
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj
r5678 r5694 140 140 <DependentUpon>DiscriminantFunctionClassificationSolutionView.cs</DependentUpon> 141 141 </Compile> 142 <Compile Include="DataAnalysisSolutionView.cs"> 143 <SubType>UserControl</SubType> 144 </Compile> 145 <Compile Include="DataAnalysisSolutionView.Designer.cs"> 146 <DependentUpon>DataAnalysisSolutionView.cs</DependentUpon> 147 </Compile> 142 148 <Compile Include="Regression\RegressionSolutionEstimatedValuesView.cs"> 143 149 <SubType>UserControl</SubType>
Note: See TracChangeset
for help on using the changeset viewer.