Free cookie consent management tool by TermsFeed Policy Generator

Changeset 18051


Ignore:
Timestamp:
09/09/21 14:44:03 (3 years ago)
Author:
chaider
Message:

#3134 Added RunCollectionPartialDependencePlotView and changed UpdateAllSeriesDataAsync method in PartialDependencePlot to await all updates from the given enumeration

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/HeuristicLab.Problems.DataAnalysis.Symbolic.Views-3.4.csproj

    r17931 r18051  
    122122      <DependentUpon>InteractiveSymbolicExpressionTreeChart.cs</DependentUpon>
    123123    </Compile>
     124    <Compile Include="RunCollectionPartialDependencePlotView.cs">
     125      <SubType>UserControl</SubType>
     126    </Compile>
     127    <Compile Include="RunCollectionPartialDependencePlotView.Designer.cs">
     128      <DependentUpon>RunCollectionPartialDependencePlotView.cs</DependentUpon>
     129    </Compile>
    124130    <Compile Include="SymbolicDataAnalysisModelMathView.cs">
    125131      <SubType>UserControl</SubType>
     
    276282      <Name>HeuristicLab.Problems.DataAnalysis.Symbolic-3.4</Name>
    277283      <Private>False</Private>
     284    </ProjectReference>
     285    <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis.Views\3.4\HeuristicLab.Problems.DataAnalysis.Views-3.4.csproj">
     286      <Project>{3E9E8944-44FF-40BB-A622-3A4A7DD0F198}</Project>
     287      <Name>HeuristicLab.Problems.DataAnalysis.Views-3.4</Name>
    278288    </ProjectReference>
    279289    <ProjectReference Include="..\..\HeuristicLab.Problems.DataAnalysis\3.4\HeuristicLab.Problems.DataAnalysis-3.4.csproj">
  • trunk/HeuristicLab.Problems.DataAnalysis.Views/3.4/Controls/PartialDependencePlot.cs

    r17939 r18051  
    453453    }
    454454
    455     private async Task<DoubleLimit> UpdateAllSeriesDataAsync(CancellationToken cancellationToken) {
     455    private Task<DoubleLimit> UpdateAllSeriesDataAsync(CancellationToken cancellationToken) {
    456456      var updateTasks = solutions.Select(solution => UpdateSeriesDataAsync(solution, cancellationToken));
    457457
    458       double min = double.MaxValue, max = double.MinValue;
    459       foreach (var update in updateTasks) {
    460         var limit = await update;
    461         if (limit.Lower < min) min = limit.Lower;
    462         if (limit.Upper > max) max = limit.Upper;
    463       }
    464 
    465       return new DoubleLimit(min, max);
     458      return Task.Run(() => {
     459        double min = double.MaxValue, max = double.MinValue;
     460        foreach (var update in updateTasks) {
     461          var limit = update.Result;
     462          if (limit.Lower < min) min = limit.Lower;
     463          if (limit.Upper > max) max = limit.Upper;
     464        }
     465
     466        return new DoubleLimit(min, max);
     467      }, cancellationToken);
    466468    }
    467469
  • trunk/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionPartialDependencePlotView.cs

    r17938 r18051  
    237237
    238238      RecalculateAndRelayoutCharts();
     239    }
     240
     241    public async Task AddSolution(IRegressionSolution solution) {
     242      foreach (var chart in partialDependencePlots.Values) {
     243        await chart.AddSolutionAsync(solution);
     244      }
    239245    }
    240246
Note: See TracChangeset for help on using the changeset viewer.