Changeset 2381
- Timestamp:
- 09/23/09 13:58:07 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/Predictor.cs
r2328 r2381 59 59 } 60 60 61 public override IEnumerable<string> GetInputVariables() { 62 HashSet<string> inputVariables = new HashSet<string>(); 63 foreach (IFunctionTree ft in FunctionTreeIterator.IteratePrefix(functionTree.FunctionTree)) { 64 if (ft is VariableFunctionTree) { 65 VariableFunctionTree variable = (VariableFunctionTree) ft; 66 inputVariables.Add(variable.VariableName); 67 } 68 } 69 return inputVariables; 70 } 71 61 72 public override IView CreateView() { 62 73 return new PredictorView(this); -
trunk/sources/HeuristicLab.Modeling/3.2/IPredictor.cs
r2328 r2381 31 31 double LowerPredictionLimit { get; set; } 32 32 double[] Predict(Dataset dataset, int start, int end); 33 IEnumerable<string> GetInputVariables(); 33 34 } 34 35 } -
trunk/sources/HeuristicLab.Modeling/3.2/PredictorBase.cs
r2328 r2381 32 32 public double LowerPredictionLimit { get; set; } 33 33 public abstract double[] Predict(Dataset dataset, int start, int end); 34 public abstract IEnumerable<string> GetInputVariables(); 34 35 35 36 public PredictorBase() : this(double.MinValue, double.MaxValue) { } // for persistence -
trunk/sources/HeuristicLab.SupportVectorMachines/3.2/Predictor.cs
r2373 r2381 88 88 } 89 89 90 public override IEnumerable<string> GetInputVariables() { 91 return variableNames.Keys; 92 } 93 90 94 public override IView CreateView() { 91 95 return new PredictorView(this);
Note: See TracChangeset
for help on using the changeset viewer.