- Timestamp:
- 10/16/12 09:44:07 (12 years ago)
- Location:
- branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views
- Files:
-
- 12 edited
- 16 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
-
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationEnsembleSolutionAccuracyToCoveredSamples.cs
r8510 r8811 28 28 using HeuristicLab.Data; 29 29 using HeuristicLab.MainForm; 30 using HeuristicLab.Problems.DataAnalysis.Interfaces;31 30 32 31 namespace HeuristicLab.Problems.DataAnalysis.Views { -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationEnsembleSolutionConfidenceAccuracyDependence.cs
r8297 r8811 27 27 using HeuristicLab.Data; 28 28 using HeuristicLab.MainForm; 29 using HeuristicLab.Problems.DataAnalysis.Interfaces;30 29 31 30 namespace HeuristicLab.Problems.DataAnalysis.Views { -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationEnsembleSolutionEstimatedClassValuesView.Designer.cs
r8508 r8811 46 46 this.SamplesComboBox = new System.Windows.Forms.ComboBox(); 47 47 this.CorrectClassifiedConfidenceLabel = new System.Windows.Forms.Label(); 48 this.CorrectClassifiedConfidence = new System.Windows.Forms.Label();49 48 this.WrongClassifiedConfidenceLabel = new System.Windows.Forms.Label(); 50 this.WrongClassifiedConfidence = new System.Windows.Forms.Label(); 49 this.CorrectClassifiedConfidence = new System.Windows.Forms.TextBox(); 50 this.WrongClassifiedConfidence = new System.Windows.Forms.TextBox(); 51 51 this.SuspendLayout(); 52 52 // … … 68 68 this.SamplesComboBox.Location = new System.Drawing.Point(4, 4); 69 69 this.SamplesComboBox.Name = "SamplesComboBox"; 70 this.SamplesComboBox.Size = new System.Drawing.Size( 309, 21);70 this.SamplesComboBox.Size = new System.Drawing.Size(230, 21); 71 71 this.SamplesComboBox.TabIndex = 2; 72 72 this.SamplesComboBox.SelectedIndexChanged += new System.EventHandler(this.SamplesComboBox_SelectedIndexChanged); … … 76 76 this.CorrectClassifiedConfidenceLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 77 77 this.CorrectClassifiedConfidenceLabel.AutoSize = true; 78 this.CorrectClassifiedConfidenceLabel.Location = new System.Drawing.Point( 319, 7);78 this.CorrectClassifiedConfidenceLabel.Location = new System.Drawing.Point(240, 7); 79 79 this.CorrectClassifiedConfidenceLabel.Name = "CorrectClassifiedConfidenceLabel"; 80 80 this.CorrectClassifiedConfidenceLabel.Size = new System.Drawing.Size(103, 13); … … 82 82 this.CorrectClassifiedConfidenceLabel.Text = "Conf. Correct Class.:"; 83 83 // 84 // CorrectClassifiedConfidence85 //86 this.CorrectClassifiedConfidence.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));87 this.CorrectClassifiedConfidence.AutoSize = true;88 this.CorrectClassifiedConfidence.Location = new System.Drawing.Point(428, 7);89 this.CorrectClassifiedConfidence.Name = "CorrectClassifiedConfidence";90 this.CorrectClassifiedConfidence.Size = new System.Drawing.Size(22, 13);91 this.CorrectClassifiedConfidence.TabIndex = 4;92 this.CorrectClassifiedConfidence.Text = "0.0";93 //94 84 // WrongClassifiedConfidenceLabel 95 85 // 96 86 this.WrongClassifiedConfidenceLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 97 87 this.WrongClassifiedConfidenceLabel.AutoSize = true; 98 this.WrongClassifiedConfidenceLabel.Location = new System.Drawing.Point(4 81, 7);88 this.WrongClassifiedConfidenceLabel.Location = new System.Drawing.Point(455, 7); 99 89 this.WrongClassifiedConfidenceLabel.Name = "WrongClassifiedConfidenceLabel"; 100 90 this.WrongClassifiedConfidenceLabel.Size = new System.Drawing.Size(101, 13); … … 102 92 this.WrongClassifiedConfidenceLabel.Text = "Conf. Wrong Class.:"; 103 93 // 94 // CorrectClassifiedConfidence 95 // 96 this.CorrectClassifiedConfidence.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 97 this.CorrectClassifiedConfidence.Location = new System.Drawing.Point(349, 5); 98 this.CorrectClassifiedConfidence.Name = "CorrectClassifiedConfidence"; 99 this.CorrectClassifiedConfidence.ReadOnly = true; 100 this.CorrectClassifiedConfidence.Size = new System.Drawing.Size(100, 20); 101 this.CorrectClassifiedConfidence.TabIndex = 7; 102 this.CorrectClassifiedConfidence.Text = "0.0"; 103 // 104 104 // WrongClassifiedConfidence 105 105 // 106 106 this.WrongClassifiedConfidence.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 107 this.WrongClassifiedConfidence.AutoSize = true; 108 this.WrongClassifiedConfidence.Location = new System.Drawing.Point(588, 7); 107 this.WrongClassifiedConfidence.Location = new System.Drawing.Point(562, 4); 109 108 this.WrongClassifiedConfidence.Name = "WrongClassifiedConfidence"; 110 this.WrongClassifiedConfidence.Size = new System.Drawing.Size(22, 13); 111 this.WrongClassifiedConfidence.TabIndex = 6; 109 this.WrongClassifiedConfidence.ReadOnly = true; 110 this.WrongClassifiedConfidence.Size = new System.Drawing.Size(94, 20); 111 this.WrongClassifiedConfidence.TabIndex = 8; 112 112 this.WrongClassifiedConfidence.Text = "0.0"; 113 113 // 114 114 // ClassificationEnsembleSolutionEstimatedClassValuesView 115 115 // 116 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);117 116 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 118 117 this.Controls.Add(this.WrongClassifiedConfidence); 118 this.Controls.Add(this.CorrectClassifiedConfidence); 119 119 this.Controls.Add(this.WrongClassifiedConfidenceLabel); 120 this.Controls.Add(this.CorrectClassifiedConfidence);121 120 this.Controls.Add(this.CorrectClassifiedConfidenceLabel); 122 121 this.Controls.Add(this.SamplesComboBox); … … 126 125 this.Controls.SetChildIndex(this.SamplesComboBox, 0); 127 126 this.Controls.SetChildIndex(this.CorrectClassifiedConfidenceLabel, 0); 127 this.Controls.SetChildIndex(this.WrongClassifiedConfidenceLabel, 0); 128 128 this.Controls.SetChildIndex(this.CorrectClassifiedConfidence, 0); 129 this.Controls.SetChildIndex(this.WrongClassifiedConfidenceLabel, 0);130 129 this.Controls.SetChildIndex(this.WrongClassifiedConfidence, 0); 131 130 this.ResumeLayout(false); … … 138 137 private System.Windows.Forms.ComboBox SamplesComboBox; 139 138 private System.Windows.Forms.Label CorrectClassifiedConfidenceLabel; 140 private System.Windows.Forms.Label CorrectClassifiedConfidence;141 139 private System.Windows.Forms.Label WrongClassifiedConfidenceLabel; 142 private System.Windows.Forms.Label WrongClassifiedConfidence; 140 private System.Windows.Forms.TextBox CorrectClassifiedConfidence; 141 private System.Windows.Forms.TextBox WrongClassifiedConfidence; 143 142 144 143 } -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationEnsembleSolutionEstimatedClassValuesView.cs
r8508 r8811 19 19 */ 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; … … 28 29 using HeuristicLab.MainForm; 29 30 using HeuristicLab.MainForm.WindowsForms; 30 using HeuristicLab.Problems.DataAnalysis.Interfaces;31 31 32 32 namespace HeuristicLab.Problems.DataAnalysis.Views { … … 96 96 97 97 IEnumerable<IClassificationSolution> solutions = Content.ClassificationSolutions.CheckedItems; 98 int classValuesCount = Content.ProblemData.Class Values.Count;98 int classValuesCount = Content.ProblemData.Classes; 99 99 int solutionsCount = solutions.Count(); 100 100 string[,] values = new string[indizes.Length, 5 + classValuesCount + solutionsCount]; … … 143 143 var groups = 144 144 estimatedValuesVector[i].GroupBy(x => x).Select(g => new { Key = g.Key, Count = g.Count() }).ToList(); 145 for (int classIndex = 0; classIndex < Content.ProblemData.ClassValues.Count; classIndex++) { 146 var group = groups.Where(g => g.Key == Content.ProblemData.ClassValues[classIndex]).SingleOrDefault(); 145 146 for (int classIndex = 0; classIndex < Content.ProblemData.Classes; classIndex++) { 147 var group = groups.Where(g => g.Key == Content.ProblemData.ClassValues.ElementAt(classIndex)).SingleOrDefault(); 147 148 if (group == null) values[i, 5 + classIndex] = 0.ToString(); 148 149 else values[i, 5 + classIndex] = group.Count.ToString(); -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationRocCurvesView.cs
r8508 r8811 114 114 maxThreshold += thresholdIncrement; 115 115 116 List<double> classValues = Content. ProblemData.ClassValues.OrderBy(x => x).ToList();116 List<double> classValues = Content.Model.ClassValues.ToList(); 117 117 118 118 foreach (double classValue in classValues) { -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationSolutionThresholdView.cs
r8508 r8811 238 238 double[] thresholds = Content.Model.Thresholds.ToArray(); 239 239 thresholds[classIndex] = e.NewLocationY; 240 Array.Sort(thresholds); 240 241 Content.Model.SetThresholdsAndClassValues(thresholds, Content.Model.ClassValues); 241 242 } -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj
r8508 r8811 185 185 <DependentUpon>ClassificationEnsembleSolutionModelView.cs</DependentUpon> 186 186 </Compile> 187 <Compile Include="Classification\ClassificationFeatureCorrelationView.cs"> 188 <SubType>UserControl</SubType> 189 </Compile> 190 <Compile Include="Classification\ClassificationFeatureCorrelationView.Designer.cs"> 191 <DependentUpon>ClassificationFeatureCorrelationView.cs</DependentUpon> 192 </Compile> 193 <Compile Include="Classification\ClassificationTimeframeFeatureCorrelationView.cs"> 194 <SubType>UserControl</SubType> 195 </Compile> 196 <Compile Include="Classification\ClassificationTimeframeFeatureCorrelationView.Designer.cs"> 197 <DependentUpon>ClassificationTimeframeFeatureCorrelationView.cs</DependentUpon> 198 </Compile> 199 <Compile Include="Classification\DiscriminantFunctionClassificationModelView.cs"> 200 <SubType>UserControl</SubType> 201 </Compile> 202 <Compile Include="Classification\DiscriminantFunctionClassificationModelView.Designer.cs"> 203 <DependentUpon>DiscriminantFunctionClassificationModelView.cs</DependentUpon> 204 </Compile> 187 205 <Compile Include="Clustering\ClusteringSolutionVisualizationView.cs"> 188 206 <SubType>UserControl</SubType> … … 191 209 <DependentUpon>ClusteringSolutionVisualizationView.cs</DependentUpon> 192 210 </Compile> 211 <Compile Include="FeatureCorrelation\AbstractFeatureCorrelationView.cs"> 212 <SubType>UserControl</SubType> 213 </Compile> 214 <Compile Include="FeatureCorrelation\AbstractFeatureCorrelationView.Designer.cs"> 215 <DependentUpon>AbstractFeatureCorrelationView.cs</DependentUpon> 216 </Compile> 193 217 <Compile Include="Classification\ClassificationEnsembleSolutionConfidenceAccuracyDependence.cs"> 194 218 <SubType>UserControl</SubType> … … 209 233 <DependentUpon>DataAnalysisSolutionEvaluationView.cs</DependentUpon> 210 234 </Compile> 235 <Compile Include="FeatureCorrelation\FeatureCorrelationCalculator.cs" /> 236 <Compile Include="FeatureCorrelation\FeatureCorrelationEnums.cs" /> 237 <Compile Include="FeatureCorrelation\VariableVisibilityDialog.cs"> 238 <SubType>Form</SubType> 239 </Compile> 240 <Compile Include="FeatureCorrelation\VariableVisibilityDialog.Designer.cs"> 241 <DependentUpon>VariableVisibilityDialog.cs</DependentUpon> 242 </Compile> 243 <Compile Include="FeatureCorrelation\FeatureCorrelationView.cs"> 244 <SubType>UserControl</SubType> 245 </Compile> 246 <Compile Include="FeatureCorrelation\FeatureCorrelationView.Designer.cs"> 247 <DependentUpon>FeatureCorrelationView.cs</DependentUpon> 248 </Compile> 249 <Compile Include="FeatureCorrelation\FeatureCorrelationCache.cs" /> 250 <Compile Include="FeatureCorrelation\FeatureCorrelationTimeframeCache.cs" /> 211 251 <Compile Include="Plugin.cs" /> 252 <Compile Include="ProblemDataView.cs"> 253 <SubType>UserControl</SubType> 254 </Compile> 255 <Compile Include="ProblemDataView.Designer.cs"> 256 <DependentUpon>ProblemDataView.cs</DependentUpon> 257 </Compile> 258 <Compile Include="Regression\RegressionFeatureCorrelationView.cs"> 259 <SubType>UserControl</SubType> 260 </Compile> 261 <Compile Include="Regression\RegressionFeatureCorrelationView.Designer.cs"> 262 <DependentUpon>RegressionFeatureCorrelationView.cs</DependentUpon> 263 </Compile> 264 <Compile Include="Regression\RegressionTimeframeFeatureCorrelationView.cs"> 265 <SubType>UserControl</SubType> 266 </Compile> 267 <Compile Include="Regression\RegressionTimeframeFeatureCorrelationView.Designer.cs"> 268 <DependentUpon>RegressionTimeframeFeatureCorrelationView.cs</DependentUpon> 269 </Compile> 212 270 <Compile Include="Regression\RegressionEnsembleSolutionModelView.cs"> 213 271 <SubType>UserControl</SubType> … … 337 395 <Compile Include="Solution Views\RegressionSolutionView.Designer.cs"> 338 396 <DependentUpon>RegressionSolutionView.cs</DependentUpon> 397 </Compile> 398 <Compile Include="FeatureCorrelation\TimeframeFeatureCorrelationView.cs"> 399 <SubType>UserControl</SubType> 400 </Compile> 401 <Compile Include="FeatureCorrelation\TimeframeFeatureCorrelationView.Designer.cs"> 402 <DependentUpon>TimeframeFeatureCorrelationView.cs</DependentUpon> 403 </Compile> 404 <Compile Include="Solution Views\TimeSeriesPrognosisSolutionView.cs"> 405 <SubType>UserControl</SubType> 406 </Compile> 407 <Compile Include="Solution Views\TimeSeriesPrognosisSolutionView.Designer.cs"> 408 <DependentUpon>TimeSeriesPrognosisSolutionView.cs</DependentUpon> 409 </Compile> 410 <Compile Include="TimeSeriesPrognosis\TimeSeriesPrognosisResultsView.cs"> 411 <SubType>UserControl</SubType> 412 </Compile> 413 <Compile Include="TimeSeriesPrognosis\TimeSeriesPrognosisResultsView.Designer.cs"> 414 <DependentUpon>TimeSeriesPrognosisResultsView.cs</DependentUpon> 415 </Compile> 416 <Compile Include="TimeSeriesPrognosis\TimeSeriesPrognosisSolutionErrorCharacteristicsCurveView.cs"> 417 <SubType>UserControl</SubType> 418 </Compile> 419 <Compile Include="TimeSeriesPrognosis\TimeSeriesPrognosisSolutionErrorCharacteristicsCurveView.Designer.cs"> 420 <DependentUpon>TimeSeriesPrognosisSolutionErrorCharacteristicsCurveView.cs</DependentUpon> 339 421 </Compile> 340 422 <None Include="HeuristicLab.snk" /> … … 368 450 </ItemGroup> 369 451 <ItemGroup> 370 <Folder Include="obj\" /> 452 <EmbeddedResource Include="FeatureCorrelation\AbstractFeatureCorrelationView.resx"> 453 <DependentUpon>AbstractFeatureCorrelationView.cs</DependentUpon> 454 </EmbeddedResource> 371 455 </ItemGroup> 372 456 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> … … 379 463 --> 380 464 <PropertyGroup> 381 <PreBuildEvent >set Path=%25Path%25;$(ProjectDir);$(SolutionDir)465 <PreBuildEvent Condition=" '$(OS)' == 'Windows_NT' ">set Path=%25Path%25;$(ProjectDir);$(SolutionDir) 382 466 set ProjectDir=$(ProjectDir) 383 467 set SolutionDir=$(SolutionDir) … … 386 470 call PreBuildEvent.cmd 387 471 </PreBuildEvent> 472 <PreBuildEvent Condition=" '$(OS)' != 'Windows_NT' "> 473 export ProjectDir=$(ProjectDir) 474 export SolutionDir=$(SolutionDir) 475 476 $SolutionDir/PreBuildEvent.sh 477 </PreBuildEvent> 388 478 </PropertyGroup> 389 479 </Project> -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Plugin.cs.frame
r8508 r8811 47 47 } 48 48 } 49 -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/ClassificationEnsembleSolutionView.cs
r8297 r8811 26 26 using HeuristicLab.MainForm; 27 27 using HeuristicLab.PluginInfrastructure; 28 using HeuristicLab.Problems.DataAnalysis.Interfaces;29 28 30 29 namespace HeuristicLab.Problems.DataAnalysis.Views { -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/DataAnalysisSolutionView.cs
r8508 r8811 147 147 } 148 148 149 protected override void RebuildImageList() { 150 itemsListView.SmallImageList.Images.Clear(); 151 foreach (ListViewItem listViewItem in itemsListView.Items) { 152 IResult result = listViewItem.Tag as IResult; 153 Type viewType = listViewItem.Tag as Type; 154 if (result != null) itemsListView.SmallImageList.Images.Add(result.ItemImage); 155 else if (viewType != null && typeof(IDataAnalysisSolutionEvaluationView).IsAssignableFrom(viewType)) 156 itemsListView.SmallImageList.Images.Add(((IDataAnalysisSolutionEvaluationView)Activator.CreateInstance(viewType)).ViewImage); 157 else itemsListView.SmallImageList.Images.Add(HeuristicLab.Common.Resources.VSImageLibrary.Nothing); 158 159 listViewItem.ImageIndex = itemsListView.SmallImageList.Images.Count - 1; 160 } 161 } 162 149 163 #region drag and drop 150 164 protected override void itemsListView_DragEnter(object sender, DragEventArgs e) { -
branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Solution Views/NamedDataAnalysisSolutionView.cs
r7259 r8811 53 53 contentType = Content.GetType(); 54 54 panel.Controls.Clear(); 55 var viewType = MainFormManager.GetViewTypes(Content.GetType(), true). Where(t => typeof(DataAnalysisSolutionView).IsAssignableFrom(t)).FirstOrDefault();55 var viewType = MainFormManager.GetViewTypes(Content.GetType(), true).FirstOrDefault(t => typeof(DataAnalysisSolutionView).IsAssignableFrom(t)); 56 56 if (viewType != null) { 57 view = (DataAnalysisSolutionView)Activator.CreateInstance(viewType); 57 view = (DataAnalysisSolutionView)MainFormManager.CreateView(viewType); 58 view.Locked = Locked; 59 view.ReadOnly = ReadOnly; 58 60 view.Dock = DockStyle.Fill; 59 61 view.Content = Content;
Note: See TracChangeset
for help on using the changeset viewer.