Ignore:
Timestamp:
01/19/17 19:15:33 (5 years ago)
Author:
jzenisek
Message:

#2719 updated databar set and view

File:
1 edited

Legend:

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

    r14547 r14588  
    158158
    159159    private DataBarSet ResultsQualitiesBars {
    160       get { return (DataBarSet) Results["Ensemble"].Value; }
     160      get { return (DataBarSet) Results["Ensemble Comparison"].Value; }
    161161    }
    162162
     
    165165
    166166      Results.Add(new Result("Sliding Window Movements", new IntValue(0)));
    167       Results.Add(new Result("Qualities", new DataTable("Qualities")));
     167      Results.Add(new Result("Qualities", new DataTable("Pearson R²")));
    168168      Results.Add(new Result("Targets", new DataTable("Targets")));
    169169      Results.Add(new Result("Ensemble Comparison", new DataBarSet("Ensemble Comparison")));
     
    179179
    180180        // qualities (bars)
    181         ResultsQualitiesBars.Bars.Add(new StringValue(ensemble.Name), new DoubleValue(0.0));
     181        ResultsQualitiesBars.Bars.Add(new DataBar(ensemble.Name, 0.9));
    182182      }
    183183    }
     
    435435        var pR2 = error == OnlineCalculatorError.None ? pR * pR : 0.0;
    436436
     437        int replayAmount = Datastream.FitnessPartition.End - replayedIndex;
     438        int replayCount = estimatedValues.Length - replayAmount;
     439
    437440        for (int i = replayedIndex; i < Datastream.FitnessPartition.End; i++) {
    438           ResultsTargets.Rows[ensemble.Name].Values.Add(averageEstimatedValue);
     441          //ResultsTargets.Rows[ensemble.Name].Values.Add(averageEstimatedValue);
     442          ResultsTargets.Rows[ensemble.Name].Values.Add(estimatedValues[replayCount]);
     443          replayCount++;
    439444
    440445          //ResultsQualities.Rows[ensemble.Name + " - " + ResultsQualitiesMSE].Values.Add(mse);
    441446          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)]
     447          ResultsQualitiesBars.Bars[ensemble.Name].Value = pR2;
    445448        }
    446449      }
Note: See TracChangeset for help on using the changeset viewer.