Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/MctsSymbolicRegression/Tree.cs @ 13645

Last change on this file since 13645 was 13645, checked in by gkronber, 8 years ago

#2581: added an MCTS for symbolic regression models

File size: 1.3 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2015 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 * and the BEACON Center for the Study of Evolution in Action.
5 *
6 * This file is part of HeuristicLab.
7 *
8 * HeuristicLab is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * HeuristicLab is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
20 */
21#endregion
22
23namespace HeuristicLab.Algorithms.DataAnalysis.MctsSymbolicRegression {
24  // represents tree nodes for the search tree in MCTS
25  internal class Tree {
26    public int state;
27    public int visits;
28    public double sumQuality;
29    public double AverageQuality { get { return sumQuality / (double)visits; } }
30    public bool done;
31    public Tree[] children;
32  }
33}
Note: See TracBrowser for help on using the repository browser.