Changeset 17209 for branches/2994-AutoDiffForIntervals/HeuristicLab.Algorithms.DataAnalysis.DecisionTrees/3.4/Pruning/ComplexityPruning.cs
- Timestamp:
- 08/13/19 09:40:12 (5 years ago)
- Location:
- branches/2994-AutoDiffForIntervals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2994-AutoDiffForIntervals
- Property svn:mergeinfo changed
/trunk merged: 17132,17137,17139,17150,17154,17179-17180,17182-17185,17191,17198
- Property svn:mergeinfo changed
-
branches/2994-AutoDiffForIntervals/HeuristicLab.Algorithms.DataAnalysis.DecisionTrees/3.4/Pruning/ComplexityPruning.cs
r17080 r17209 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-2017Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 204 204 public class PruningState : Item { 205 205 [Storable] 206 public IDictionary<RegressionNodeModel, int> modelComplexities = new Dictionary<RegressionNodeModel, int>(); 207 [Storable] 208 public IDictionary<RegressionNodeModel, int> nodeComplexities = new Dictionary<RegressionNodeModel, int>(); 209 [Storable] 210 public IDictionary<RegressionNodeModel, int> pruningSizes = new Dictionary<RegressionNodeModel, int>(); 211 [Storable] 212 public IDictionary<RegressionNodeModel, double> modelErrors = new Dictionary<RegressionNodeModel, double>(); 213 214 [Storable] 215 public Queue<RegressionNodeModel> nodeQueue = new Queue<RegressionNodeModel>(); 216 [Storable] 217 public Queue<IReadOnlyList<int>> trainingRowsQueue = new Queue<IReadOnlyList<int>>(); 218 [Storable] 219 public Queue<IReadOnlyList<int>> pruningRowsQueue = new Queue<IReadOnlyList<int>>(); 206 public IDictionary<RegressionNodeModel, int> modelComplexities; 207 [Storable] 208 public IDictionary<RegressionNodeModel, int> nodeComplexities; 209 [Storable] 210 public IDictionary<RegressionNodeModel, int> pruningSizes; 211 [Storable] 212 public IDictionary<RegressionNodeModel, double> modelErrors; 213 214 [Storable] 215 private RegressionNodeModel[] storableNodeQueue { get { return nodeQueue.ToArray(); } set { nodeQueue = new Queue<RegressionNodeModel>(value); } } 216 public Queue<RegressionNodeModel> nodeQueue; 217 [Storable] 218 private IReadOnlyList<int>[] storabletrainingRowsQueue { get { return trainingRowsQueue.ToArray(); } set { trainingRowsQueue = new Queue<IReadOnlyList<int>>(value); } } 219 public Queue<IReadOnlyList<int>> trainingRowsQueue; 220 [Storable] 221 private IReadOnlyList<int>[] storablepruningRowsQueue { get { return pruningRowsQueue.ToArray(); } set { pruningRowsQueue = new Queue<IReadOnlyList<int>>(value); } } 222 public Queue<IReadOnlyList<int>> pruningRowsQueue; 220 223 221 224 //State.Code values denote the current action (for pausing) … … 242 245 Code = original.Code; 243 246 } 244 public PruningState() { } 247 public PruningState() { 248 modelComplexities = new Dictionary<RegressionNodeModel, int>(); 249 nodeComplexities = new Dictionary<RegressionNodeModel, int>(); 250 pruningSizes = new Dictionary<RegressionNodeModel, int>(); 251 modelErrors = new Dictionary<RegressionNodeModel, double>(); 252 nodeQueue = new Queue<RegressionNodeModel>(); 253 trainingRowsQueue = new Queue<IReadOnlyList<int>>(); 254 pruningRowsQueue = new Queue<IReadOnlyList<int>>(); 255 } 245 256 public override IDeepCloneable Clone(Cloner cloner) { 246 257 return new PruningState(this, cloner);
Note: See TracChangeset
for help on using the changeset viewer.