- Timestamp:
- 12/21/09 16:23:49 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Predictor.cs
r2537 r2567 41 41 private ITreeEvaluator treeEvaluator; 42 42 public ITreeEvaluator TreeEvaluator { 43 get { return (ITreeEvaluator) 43 get { return (ITreeEvaluator)this.treeEvaluator.Clone(); } 44 44 } 45 45 … … 72 72 HashSet<string> inputVariables = new HashSet<string>(); 73 73 foreach (IFunctionTree ft in FunctionTreeIterator.IteratePrefix(functionTree.FunctionTree)) { 74 if (ft is VariableFunctionTree) {75 VariableFunctionTree variable = (VariableFunctionTree)ft;76 inputVariables.Add(var iable.VariableName);74 VariableFunctionTree varFunTree = ft as VariableFunctionTree; 75 if (varFunTree != null) { 76 inputVariables.Add(varFunTree.VariableName); 77 77 } 78 78 } -
trunk/sources/HeuristicLab.Modeling/3.2/DefaultModelAnalyzerOperators.cs
r2454 r2567 25 25 using HeuristicLab.Modeling; 26 26 using HeuristicLab.Data; 27 using System.Linq; 27 28 28 29 namespace HeuristicLab.Modeling { … … 59 60 model.ExtractResult(modelScope, r); 60 61 } 62 63 model.SetMetaData("NumberOfInputVariables", model.Predictor.GetInputVariables().Count()); 61 64 62 65 return model;
Note: See TracChangeset
for help on using the changeset viewer.