Ignore:
Timestamp:
01/05/17 15:59:47 (5 years ago)
Author:
jzenisek
Message:

#2719 added type and view for representing dictionary<string,double> as bar chart (implementation in progress)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.DatastreamAnalysis/HeuristicLab.DatastreamAnalysis/3.4/DatastreamAnalysisOptimizer.cs

    r14543 r14547  
    157157    private const string ResultsTargetsReal = "Real";
    158158
    159     private DataTable ResultsQualitiesBars {
    160       get { return ((DataTable) Results["Ensembles"].Value); }
     159    private DataBarSet ResultsQualitiesBars {
     160      get { return (DataBarSet) Results["Ensemble"].Value; }
    161161    }
    162162
     
    167167      Results.Add(new Result("Qualities", new DataTable("Qualities")));
    168168      Results.Add(new Result("Targets", new DataTable("Targets")));
    169 
    170       ResultsQualitiesBars.Rows.Add(new DataRow("Ensembles"));
     169      Results.Add(new Result("Ensemble Comparison", new DataBarSet("Ensemble Comparison")));
    171170
    172171      ResultsTargets.Rows.Add(new DataRow(ResultsTargetsReal));
     
    180179
    181180        // qualities (bars)
    182         //ResultsQualitiesBars.Rows.Add(new DataRow(ensemble.Name + " - " + ResultsQualitiesPR2));
    183         //ResultsQualitiesBars.Rows["Ensembles"].Values.
     181        ResultsQualitiesBars.Bars.Add(new StringValue(ensemble.Name), new DoubleValue(0.0));
    184182      }
    185183    }
     
    437435        var pR2 = error == OnlineCalculatorError.None ? pR * pR : 0.0;
    438436
    439         DataRow qualitiesBarsRow = ResultsQualitiesBars.Rows[ensemble.Name + " - " + ResultsQualitiesPR2];
    440 
    441437        for (int i = replayedIndex; i < Datastream.FitnessPartition.End; i++) {
    442438          ResultsTargets.Rows[ensemble.Name].Values.Add(averageEstimatedValue);
     
    444440          //ResultsQualities.Rows[ensemble.Name + " - " + ResultsQualitiesMSE].Values.Add(mse);
    445441          ResultsQualities.Rows[ensemble.Name + " - " + ResultsQualitiesPR2].Values.Add(pR2);
     442          ResultsQualitiesBars.Bars[new StringValue(ensemble.ItemName)].Value = pR2;
     443          ResultsQualitiesBars.Bars[new StringValue(ensemble.ItemName)] = new DoubleValue(pR2);
     444          //ResultsQualitiesBars.Bars[new StringValue(ensemble.ItemName)]
    446445        }
    447446      }
Note: See TracChangeset for help on using the changeset viewer.