Changeset 3853
- Timestamp:
- 05/20/10 10:21:16 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/HeuristicLab.Problems.DataAnalysis.Regression-3.3.csproj
r3848 r3853 141 141 <Name>HeuristicLab.Data-3.3</Name> 142 142 </ProjectReference> 143 <ProjectReference Include="..\..\HeuristicLab.Encodings.RealVectorEncoding\3.3\HeuristicLab.Encodings.RealVectorEncoding-3.3.csproj"> 144 <Project>{BB6D334A-4BB6-4674-9883-31A6EBB32CAB}</Project> 145 <Name>HeuristicLab.Encodings.RealVectorEncoding-3.3</Name> 146 </ProjectReference> 143 147 <ProjectReference Include="..\..\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding\3.3\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.3.csproj"> 144 148 <Project>{125D3006-67F5-48CB-913E-73C0548F17FA}</Project> … … 188 192 <Project>{70DFD984-B1D9-46FE-8EB7-4DE92D71A9FC}</Project> 189 193 <Name>HeuristicLab.Problems.DataAnalysis-3.3</Name> 194 </ProjectReference> 195 <ProjectReference Include="..\..\HeuristicLab.Problems.TestFunctions\3.3\HeuristicLab.Problems.TestFunctions-3.3.csproj"> 196 <Project>{88B9B0E3-344E-4196-82A3-0F9732506FE8}</Project> 197 <Name>HeuristicLab.Problems.TestFunctions-3.3</Name> 190 198 </ProjectReference> 191 199 <ProjectReference Include="..\..\HeuristicLab.Random\3.3\HeuristicLab.Random-3.3.csproj"> -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/HeuristicLab.Problems.DataAnalysis.Views-3.3.csproj
r3832 r3853 86 86 <None Include="HeuristicLabProblemsDataAnalysisViewsPlugin.cs.frame" /> 87 87 <None Include="Properties\AssemblyInfo.frame" /> 88 <Compile Include="SupportVectorRegressionSolutionView.cs"> 89 <SubType>UserControl</SubType> 90 </Compile> 91 <Compile Include="SupportVectorRegressionSolutionView.Designer.cs"> 92 <DependentUpon>SupportVectorRegressionSolutionView.cs</DependentUpon> 93 </Compile> 94 <Compile Include="SupportVectorMachineModelView.cs"> 95 <SubType>UserControl</SubType> 96 </Compile> 97 <Compile Include="SupportVectorMachineModelView.Designer.cs"> 98 <DependentUpon>SupportVectorMachineModelView.cs</DependentUpon> 99 </Compile> 88 100 <Compile Include="EstimatedValuesView.cs"> 89 101 <SubType>UserControl</SubType> -
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/SupportVectorMachine/SupportVectorMachineModel.cs
r3842 r3853 43 43 public SVM.Model Model { 44 44 get { return model; } 45 set { model = value; } 45 set { 46 if (value != model) { 47 if (value == null) throw new ArgumentNullException(); 48 model = value; 49 OnChanged(EventArgs.Empty); 50 } 51 } 46 52 } 47 53 … … 52 58 public SVM.RangeTransform RangeTransform { 53 59 get { return rangeTransform; } 54 set { rangeTransform = value; } 60 set { 61 if (value != rangeTransform) { 62 if (value == null) throw new ArgumentNullException(); 63 rangeTransform = value; 64 OnChanged(EventArgs.Empty); 65 } 66 } 55 67 } 68 69 public SupportVectorMachineModel() 70 : base() { 71 } 72 73 #region events 74 public event EventHandler Changed; 75 private void OnChanged(EventArgs e) { 76 var handlers = Changed; 77 if (handlers != null) 78 handlers(this, e); 79 } 80 #endregion 56 81 57 82 #region persistence … … 99 124 100 125 /// <summary> 101 /// Exports the <paramref name="model"/> in string representation to outputstream <paramref name="s"/>126 /// Exports the <paramref name="model"/> in string representation to stream <paramref name="s"/> 102 127 /// </summary> 103 128 /// <param name="model">The support vector regression model to export</param> 104 /// <param name="s">The outputstream to export the model to</param>129 /// <param name="s">The stream to export the model to</param> 105 130 public static void Export(SupportVectorMachineModel model, Stream s) { 106 131 StreamWriter writer = new StreamWriter(s); 107 132 writer.WriteLine("RangeTransform:"); 108 writer.Flush(); 133 writer.Flush(); 109 134 using (MemoryStream memStream = new MemoryStream()) { 110 135 SVM.RangeTransform.Write(memStream, model.RangeTransform);
Note: See TracChangeset
for help on using the changeset viewer.