Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/15/16 15:49:52 (9 years ago)
Author:
mkommend
Message:

#2590: Added view for ensemble weights.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionEnsembleModel.cs

    r13704 r13705  
    155155    public IEnumerable<IEnumerable<double>> GetEstimatedValueVectors(IDataset dataset, IEnumerable<int> rows) {
    156156      var estimatedValuesEnumerators = (from model in models
    157                                         select model.GetEstimatedValues(dataset, rows).GetEnumerator())
    158                                        .ToList();
     157                                        let weight = GetModelWeight(model)
     158                                        select model.GetEstimatedValues(dataset, rows).Select(e => weight * e)
     159                                        .GetEnumerator()).ToList();
    159160
    160161      while (estimatedValuesEnumerators.All(en => en.MoveNext())) {
Note: See TracChangeset for help on using the changeset viewer.