Changeset 9387 for branches/HeuristicLab.Problems.GaussianProcessTuning/HeuristicLab.Problems.GaussianProcessTuning
- Timestamp:
- 04/22/13 07:10:13 (12 years ago)
- Location:
- branches/HeuristicLab.Problems.GaussianProcessTuning/HeuristicLab.Problems.GaussianProcessTuning
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Problems.GaussianProcessTuning/HeuristicLab.Problems.GaussianProcessTuning/Grammar.cs
r9212 r9387 58 58 var covRQard = new CovRQArd(Dimension); 59 59 var covRQiso = new CovRQIso(); 60 var covNN = new CovNn(); 60 61 var covMatern1 = new CovMatern(1); 61 62 covMatern1.Name = "CovMatern1"; … … 100 101 covMatern3, 101 102 covMatern5, 103 covNN, 102 104 covPeriodic, 103 105 covPeriodic1, … … 160 162 covMatern3, 161 163 covMatern5, 164 covNN, 162 165 covPeriodic, 163 166 covPeriodic1, … … 168 171 } 169 172 } 170 171 173 } 172 174 -
branches/HeuristicLab.Problems.GaussianProcessTuning/HeuristicLab.Problems.GaussianProcessTuning/Interpreter.cs
r9212 r9387 109 109 } else if (node.Symbol is CovRQArd) { 110 110 return new CovarianceRationalQuadraticArd(); 111 } else if (node.Symbol is CovNn) { 112 return new CovarianceNeuralNetwork(); 111 113 } else if (node.Symbol is CovPeriodic) { 112 114 return new CovariancePeriodic(); -
branches/HeuristicLab.Problems.GaussianProcessTuning/HeuristicLab.Problems.GaussianProcessTuning/Symbols.cs
r9212 r9387 502 502 } 503 503 } 504 [StorableClass] 505 public sealed class CovNn : Symbol { 506 public override int MinimumArity { 507 get { return 0; } 508 } 509 public override int MaximumArity { 510 get { return 0; } 511 } 512 513 [StorableConstructor] 514 private CovNn(bool deserializing) : base(deserializing) { } 515 private CovNn(CovNn original, Cloner cloner) 516 : base(original, cloner) { 517 } 518 519 public CovNn() 520 : base("CovNn", "neural network covariance function") { 521 } 522 [StorableHook(HookType.AfterDeserialization)] 523 private void AfterDeserialization() { 524 } 525 526 public override ISymbolicExpressionTreeNode CreateTreeNode() { 527 return new CovNnTreeNode(this); 528 } 529 public override IDeepCloneable Clone(Cloner cloner) { 530 return new CovNn(this, cloner); 531 } 532 } 504 533 505 534 [StorableClass] -
branches/HeuristicLab.Problems.GaussianProcessTuning/HeuristicLab.Problems.GaussianProcessTuning/TreeNodes.cs
r9212 r9387 228 228 } 229 229 [StorableClass] 230 public sealed class CovNnTreeNode : SymbolicExpressionTreeTerminalNode { 231 public new CovNn Symbol { get { return (CovNn)base.Symbol; } } 232 233 [StorableConstructor] 234 private CovNnTreeNode(bool deserializing) : base(deserializing) { } 235 private CovNnTreeNode(CovNnTreeNode original, Cloner cloner) 236 : base(original, cloner) { 237 } 238 239 public CovNnTreeNode(CovNn symbol) 240 : base(symbol) { 241 } 242 243 [StorableHook(HookType.AfterDeserialization)] 244 private void AfterDeserialization() { 245 } 246 public override IDeepCloneable Clone(Cloner cloner) { 247 return new CovNnTreeNode(this, cloner); 248 } 249 } 250 [StorableClass] 230 251 public sealed class CovMaternTreeNode : SymbolicExpressionTreeTerminalNode { 231 252 public new CovMatern Symbol { get { return (CovMatern)base.Symbol; } }
Note: See TracChangeset
for help on using the changeset viewer.