Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/07/16 14:50:02 (8 years ago)
Author:
gkronber
Message:

#2581: extracted policies from MCTS to allow experimentation with different policies for MCTS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/MctsSymbolicRegression/Tree.cs

    r13657 r13658  
    2020#endregion
    2121
     22using HeuristicLab.Algorithms.DataAnalysis.MctsSymbolicRegression.Policies;
     23
    2224namespace HeuristicLab.Algorithms.DataAnalysis.MctsSymbolicRegression {
    2325  // represents tree nodes for the search tree in MCTS
    2426  internal class Tree {
    2527    public int state;
    26     public int visits;
    27     public double sumQuality;
    28     public double sumSqrQuality; // for variance
    29     public double AverageQuality { get { return sumQuality / (double)visits; } }
    30     public double QualityVariance { get { return sumSqrQuality / (double)visits - AverageQuality * AverageQuality; } }
    31     public bool done;
     28    public bool Done {
     29      get { return actionStatistics.Done; }
     30      set { actionStatistics.Done = value; }
     31    }
     32    public IActionStatistics actionStatistics;
    3233    public Tree[] children;
    3334  }
Note: See TracChangeset for help on using the changeset viewer.