Changeset 12689 for branches/HiveStatistics/sources/HeuristicLab.DataPreprocessing.Views/3.4/PreprocessingDataTableView.cs
- Timestamp:
- 07/08/15 15:32:12 (9 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
-
branches/HiveStatistics/sources/HeuristicLab.DataPreprocessing.Views
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/stable/HeuristicLab.DataPreprocessing.Views merged eligible /trunk/sources/HeuristicLab.DataPreprocessing.Views merged eligible /branches/1721-RandomForestPersistence/HeuristicLab.DataPreprocessing.Views 10321-10322 /branches/Algorithms.GradientDescent/HeuristicLab.DataPreprocessing.Views 5516-5520 /branches/Benchmarking/sources/HeuristicLab.DataPreprocessing.Views 6917-7005 /branches/CloningRefactoring/HeuristicLab.DataPreprocessing.Views 4656-4721 /branches/CodeEditor/HeuristicLab.DataPreprocessing.Views 11700-11806 /branches/DataAnalysis Refactoring/HeuristicLab.DataPreprocessing.Views 5471-5808 /branches/DataAnalysis SolutionEnsembles/HeuristicLab.DataPreprocessing.Views 5815-6180 /branches/DataAnalysis/HeuristicLab.DataPreprocessing.Views 4458-4459,4462,4464 /branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views 10085-11101 /branches/DataPreprocessingImprovements/HeuristicLab.DataPreprocessing.Views 12054-12675 /branches/GP.Grammar.Editor/HeuristicLab.DataPreprocessing.Views 6284-6795 /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.DataPreprocessing.Views 5060 /branches/HLScript/HeuristicLab.DataPreprocessing.Views 10331-10358 /branches/HeuristicLab.DatasetRefactor/sources/HeuristicLab.DataPreprocessing.Views 11570-12508 /branches/HeuristicLab.Problems.DataAnalysis.Trading/HeuristicLab.DataPreprocessing.Views 6123-9799 /branches/LogResidualEvaluator/HeuristicLab.DataPreprocessing.Views 10202-10483 /branches/NET40/sources/HeuristicLab.DataPreprocessing.Views 5138-5162 /branches/NSGA-II Changes/HeuristicLab.DataPreprocessing.Views 12033-12122 /branches/ParallelEngine/HeuristicLab.DataPreprocessing.Views 5175-5192 /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.DataPreprocessing.Views 7568-7810 /branches/QAPAlgorithms/HeuristicLab.DataPreprocessing.Views 6350-6627 /branches/Restructure trunk solution/HeuristicLab.DataPreprocessing.Views 6828 /branches/RuntimeOptimizer/HeuristicLab.DataPreprocessing.Views 8943-9078 /branches/ScatterSearch (trunk integration)/HeuristicLab.DataPreprocessing.Views 7787-8333 /branches/SlaveShutdown/HeuristicLab.DataPreprocessing.Views 8944-8956 /branches/SpectralKernelForGaussianProcesses/HeuristicLab.DataPreprocessing.Views 10204-10479 /branches/SuccessProgressAnalysis/HeuristicLab.DataPreprocessing.Views 5370-5682 /branches/Trunk/HeuristicLab.DataPreprocessing.Views 6829-6865 /branches/UnloadJobs/HeuristicLab.DataPreprocessing.Views 9168-9215 /branches/VNS/HeuristicLab.DataPreprocessing.Views 5594-5752 /branches/histogram/HeuristicLab.DataPreprocessing.Views 5959-6341
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
branches/HiveStatistics/sources/HeuristicLab.DataPreprocessing.Views/3.4/PreprocessingDataTableView.cs
r12012 r12689 47 47 48 48 public IEnumerable<double> Classification { get; set; } 49 public bool IsDetailedChartViewEnabled { get; set; } 49 50 50 51 public PreprocessingDataTableView() { … … 145 146 RegisterDataRowEvents(row); 146 147 var series = new Series(row.Name); 147 if (row.VisualProperties.DisplayName.Trim() != String.Empty) series.LegendText = row.VisualProperties.DisplayName; 148 if (row.VisualProperties.DisplayName.Trim() != String.Empty) 149 series.LegendText = row.VisualProperties.DisplayName; 148 150 else series.LegendText = row.Name; 151 149 152 ConfigureSeries(series, row); 150 153 FillSeriesWithRowValues(series, row); 151 154 155 if (IsDetailedChartViewEnabled) { 156 series.LegendText += " Values: " + row.Values.Count; 157 } 152 158 if (Classification == null) 153 159 chart.Series.Add(series); … … 661 667 662 668 chart.Titles.Add(row.Name); 663 669 int featureOverallValueCount = 0; 670 if (IsDetailedChartViewEnabled) 671 featureOverallValueCount = row.Values.Count(x => !IsInvalidValue(x)); 664 672 foreach (KeyValuePair<double, List<double>> entry in valuesPerClass) { 665 673 var s = new Series(row.Name + entry.Key); … … 669 677 670 678 s.LegendText = entry.Key.ToString(); 671 679 if (IsDetailedChartViewEnabled) { 680 int featureValueCount = entry.Value.Count(x => !IsInvalidValue(x)); 681 s.LegendText += " Values: "; 682 s.LegendText += (featureOverallValueCount > 0) ? 683 string.Format("{0} ({1:F2}%)", featureValueCount, (featureValueCount / (double)featureOverallValueCount) * 100) 684 : "0"; 685 } 672 686 chart.Series.Add(s); 673 687 } … … 752 766 ? "Y" 753 767 : Content.VisualProperties.YAxisTitle; 754 series.Points.Add(new DataPoint(d - intervalCenter, sum) { 755 ToolTip = 756 xAxisTitle + ": [" + (d - intervalWidth) + "-" + d + ")" + Environment.NewLine + 757 yAxisTitle + ": " + sum 758 }); 768 DataPoint newDataPoint = new DataPoint(d - intervalCenter, sum); 769 newDataPoint.ToolTip = 770 xAxisTitle + ": [" + (d - intervalWidth) + "-" + d + ")" + Environment.NewLine + 771 yAxisTitle + ": " + sum; 772 int overallValueCount = row.Values.Count(); 773 if (overallValueCount > 0) 774 newDataPoint.ToolTip += string.Format(" ({0:F2}%)", (sum / overallValueCount) * 100); 775 series.Points.Add(newDataPoint); 759 776 } 760 777 }
Note: See TracChangeset
for help on using the changeset viewer.