Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/27/12 16:11:34 (13 years ago)
Author:
sforsten
Message:

#1776:

  • 2 more strategies have been implemented
  • major changes in the inheritance have been made to make it possible to add strategies which don't use a voting strategy with weights
  • ClassificationEnsembleSolutionEstimatedClassValuesView doesn't currently show the confidence (has been removed for test purpose)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ClassificationEnsembleVoting/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/ClassificationEnsembleSolutionEstimatedClassValuesView.cs

    r7464 r7531  
    102102      List<List<double?>> estimatedValuesVector = GetEstimatedValues(SamplesComboBox.SelectedItem.ToString(), indizes,
    103103                                                            Content.ClassificationSolutions);
    104       List<double> weights = Content.Weights.ToList();
    105       double weightSum = weights.Sum();
     104      //List<double> weights = Content.Weights.ToList();
     105      //double weightSum = weights.Sum();
    106106
    107107      for (int i = 0; i < indizes.Length; i++) {
     
    114114          values[i, 3] = (target[i].IsAlmost(estimatedClassValues[i])).ToString();
    115115
    116           IEnumerable<int> indices = FindAllIndices(estimatedValuesVector[i], estimatedClassValues[i]);
    117           double confidence = 0.0;
    118           foreach (var index in indices) {
    119             confidence += weights[index];
    120           }
    121           values[i, 4] = (confidence / weightSum).ToString();
     116          //currently disabled for test purpose
     117
     118          //IEnumerable<int> indices = FindAllIndices(estimatedValuesVector[i], estimatedClassValues[i]);
     119          //double confidence = 0.0;
     120          //foreach (var index in indices) {
     121          //  confidence += weights[index];
     122          //}
     123          //values[i, 4] = (confidence / weightSum).ToString();
    122124          //var estimationCount = groups.Where(g => g.Key != null).Select(g => g.Count).Sum();
    123125          //values[i, 4] =
    124126          //  (((double)groups.Where(g => g.Key == estimatedClassValues[i]).Single().Count) / estimationCount).ToString();
     127          values[i, 4] = "1.0";
    125128
    126129          var groups =
Note: See TracChangeset for help on using the changeset viewer.