Changeset 13856
- Timestamp:
- 05/24/16 14:44:25 (9 years ago)
- Location:
- branches/HeuristicLab.RegressionSolutionGradientView
- Files:
-
- 2 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Algorithms.DataAnalysis.Views/3.4/HeuristicLab.Algorithms.DataAnalysis.Views-3.4.csproj
r13824 r13856 189 189 </ItemGroup> 190 190 <ItemGroup> 191 <Compile Include="GaussianProcessRegressionSolutionEstimatedValuesView.cs">192 <SubType>UserControl</SubType>193 </Compile>194 <Compile Include="GaussianProcessRegressionSolutionEstimatedValuesView.Designer.cs">195 <DependentUpon>GaussianProcessRegressionSolutionEstimatedValuesView.cs</DependentUpon>196 </Compile>197 191 <Compile Include="MeanProdView.cs"> 198 192 <SubType>UserControl</SubType> … … 244 238 </Compile> 245 239 <Compile Include="Plugin.cs" /> 246 <Compile Include="GaussianProcessRegressionSolutionLineChartView.cs">247 <SubType>UserControl</SubType>248 </Compile>249 <Compile Include="GaussianProcessRegressionSolutionLineChartView.Designer.cs">250 <DependentUpon>GaussianProcessRegressionSolutionLineChartView.cs</DependentUpon>251 </Compile>252 240 <Compile Include="SupportVectorMachineModelSupportVectorsView.cs"> 253 241 <SubType>UserControl</SubType> -
branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj
r13853 r13856 288 288 <Compile Include="GradientChartConfigurationDialog.Designer.cs"> 289 289 <DependentUpon>GradientChartConfigurationDialog.cs</DependentUpon> 290 </Compile> 291 <Compile Include="Regression\ConfidenceBoundRegressionSolutionEstimatedValuesView.cs"> 292 <SubType>UserControl</SubType> 293 </Compile> 294 <Compile Include="Regression\ConfidenceBoundRegressionSolutionEstimatedValuesView.Designer.cs"> 295 <DependentUpon>ConfidenceBoundRegressionSolutionEstimatedValuesView.cs</DependentUpon> 296 </Compile> 297 <Compile Include="Regression\ConfidenceBoundRegressionSolutionLineChartView.cs"> 298 <SubType>UserControl</SubType> 299 </Compile> 300 <Compile Include="Regression\ConfidenceBoundRegressionSolutionLineChartView.Designer.cs"> 301 <DependentUpon>ConfidenceBoundRegressionSolutionLineChartView.cs</DependentUpon> 290 302 </Compile> 291 303 <Compile Include="Regression\RegressionSolutionGradientView.cs"> -
branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/ConfidenceBoundRegressionSolutionEstimatedValuesView.Designer.cs
r13855 r13856 20 20 #endregion 21 21 namespace HeuristicLab.Algorithms.DataAnalysis.Views { 22 partial class GaussianProcessRegressionSolutionEstimatedValuesView {22 partial class ConfidenceBoundRegressionSolutionEstimatedValuesView { 23 23 /// <summary> 24 24 /// Required designer variable. -
branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/ConfidenceBoundRegressionSolutionEstimatedValuesView.cs
r13855 r13856 23 23 using HeuristicLab.Data; 24 24 using HeuristicLab.MainForm; 25 using HeuristicLab.Problems.DataAnalysis; 25 26 using HeuristicLab.Problems.DataAnalysis.Views; 26 27 27 28 namespace HeuristicLab.Algorithms.DataAnalysis.Views { 28 29 [View("Estimated Values")] 29 [Content(typeof(GaussianProcessRegressionSolution), false)] 30 public partial class GaussianProcessRegressionSolutionEstimatedValuesView : RegressionSolutionEstimatedValuesView { 31 private const string ESTIMATEDVARIANCE_TRAINING_SERIES_NAME = "Estimated Variance (training)"; 32 private const string ESTIMATEDVARIANCE_TEST_SERIES_NAME = "Estimated Variance (test)"; 30 [Content(typeof(IConfidenceBoundRegressionSolution), false)] 31 public partial class ConfidenceBoundRegressionSolutionEstimatedValuesView : RegressionSolutionEstimatedValuesView { 32 private const string ESTIMATEDVARIANCES_SERIES_NAME = "Estimated Variances (all)"; 33 private const string ESTIMATEDVARIANCES_TRAINING_SERIES_NAME = "Estimated Variances (training)"; 34 private const string ESTIMATEDVARIANCES_TEST_SERIES_NAME = "Estimated Variances (test)"; 33 35 34 public new GaussianProcessRegressionSolution Content {35 get { return ( GaussianProcessRegressionSolution)base.Content; }36 public new IConfidenceBoundRegressionSolution Content { 37 get { return (IConfidenceBoundRegressionSolution)base.Content; } 36 38 set { base.Content = value; } 37 39 } 38 40 39 public GaussianProcessRegressionSolutionEstimatedValuesView()41 public ConfidenceBoundRegressionSolutionEstimatedValuesView() 40 42 : base() { 41 43 InitializeComponent(); … … 46 48 var matrix = base.CreateValueMatrix(); 47 49 48 var columnNames = matrix.ColumnNames.Concat(new[] { ESTIMATEDVARIANCE _TRAINING_SERIES_NAME, ESTIMATEDVARIANCE_TEST_SERIES_NAME }).ToList();49 ((IStringConvertibleMatrix)matrix).Columns += 2;50 var columnNames = matrix.ColumnNames.Concat(new[] { ESTIMATEDVARIANCES_SERIES_NAME, ESTIMATEDVARIANCES_TRAINING_SERIES_NAME, ESTIMATEDVARIANCES_TEST_SERIES_NAME }).ToList(); 51 ((IStringConvertibleMatrix)matrix).Columns += 3; 50 52 matrix.ColumnNames = columnNames; 51 53 … … 53 55 var testRows = Content.ProblemData.TestIndices; 54 56 57 var estimated_var = Content.EstimatedVariances.GetEnumerator(); 55 58 var estimated_var_training = Content.GetEstimatedVariances(trainingRows).GetEnumerator(); 56 59 var estimated_var_test = Content.GetEstimatedVariances(testRows).GetEnumerator(); 57 60 61 foreach (var row in Enumerable.Range(0, Content.ProblemData.Dataset.Rows)) { 62 estimated_var.MoveNext(); 63 matrix[row, 7] = estimated_var.Current.ToString(); 64 } 65 58 66 foreach (var row in Content.ProblemData.TrainingIndices) { 59 67 estimated_var_training.MoveNext(); 60 matrix[row, 7] = estimated_var_training.Current.ToString();68 matrix[row, 8] = estimated_var_training.Current.ToString(); 61 69 } 62 70 63 71 foreach (var row in Content.ProblemData.TestIndices) { 64 72 estimated_var_test.MoveNext(); 65 matrix[row, 8] = estimated_var_test.Current.ToString();73 matrix[row, 9] = estimated_var_test.Current.ToString(); 66 74 } 67 75 -
branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/ConfidenceBoundRegressionSolutionLineChartView.Designer.cs
r13855 r13856 20 20 #endregion 21 21 namespace HeuristicLab.Algorithms.DataAnalysis.Views { 22 partial class GaussianProcessRegressionSolutionLineChartView {22 partial class ConfidenceBasedRegressionSolutionLineChartView { 23 23 /// <summary> 24 24 /// Required designer variable. -
branches/HeuristicLab.RegressionSolutionGradientView/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/ConfidenceBoundRegressionSolutionLineChartView.cs
r13855 r13856 26 26 using System.Windows.Forms.DataVisualization.Charting; 27 27 using HeuristicLab.MainForm; 28 using HeuristicLab.Problems.DataAnalysis; 28 29 using HeuristicLab.Problems.DataAnalysis.Views; 29 30 30 31 namespace HeuristicLab.Algorithms.DataAnalysis.Views { 31 32 [View("Line Chart (95% confidence interval)")] 32 [Content(typeof( GaussianProcessRegressionSolution))]33 public partial class GaussianProcessRegressionSolutionLineChartView : DataAnalysisSolutionEvaluationView {33 [Content(typeof(IConfidenceBoundRegressionSolution))] 34 public partial class ConfidenceBasedRegressionSolutionLineChartView : DataAnalysisSolutionEvaluationView { 34 35 private const string TARGETVARIABLE_SERIES_NAME = "Target Variable"; 35 36 private const string ESTIMATEDVALUES_TRAINING_SERIES_NAME = "Estimated Values (training)"; … … 37 38 private const string ESTIMATEDVALUES_ALL_SERIES_NAME = "Estimated Values (all samples)"; 38 39 39 public new GaussianProcessRegressionSolution Content {40 get { return ( GaussianProcessRegressionSolution)base.Content; }40 public new IConfidenceBoundRegressionSolution Content { 41 get { return (IConfidenceBoundRegressionSolution)base.Content; } 41 42 set { base.Content = value; } 42 43 } 43 44 44 public GaussianProcessRegressionSolutionLineChartView()45 public ConfidenceBasedRegressionSolutionLineChartView() 45 46 : base() { 46 47 InitializeComponent();
Note: See TracChangeset
for help on using the changeset viewer.