Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/03/09 14:23:54 (15 years ago)
Author:
mkommend
Message:

reintegrated branch new heuristic.modeling database backend (ticket #712)

Location:
trunk/sources/HeuristicLab.Modeling/3.2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Modeling/3.2/HeuristicLabModelingPlugin.cs

    r2222 r2223  
    2525using HeuristicLab.PluginInfrastructure;
    2626
    27 namespace HeuristicLab.GP.Modeling {
     27namespace HeuristicLab.Modeling {
    2828  [ClassInfo(Name = "HeuristicLab.Modeling-3.2")]
    2929  [PluginFile(Filename = "HeuristicLab.Modeling-3.2.dll", Filetype = PluginFileType.Assembly)]
  • trunk/sources/HeuristicLab.Modeling/3.2/IModel.cs

    r2041 r2223  
    3030    Dataset Dataset { get; }
    3131    string TargetVariable { get; }
     32    IEnumerable<string> InputVariables { get; }
    3233    double TrainingMeanSquaredError { get; }
    3334    double ValidationMeanSquaredError { get; }
  • trunk/sources/HeuristicLab.Modeling/3.2/Model.cs

    r2045 r2223  
    4040      get { return targetVariable; }
    4141      set { targetVariable = value; }
     42    }
     43
     44    private List<string> inputVariables = new List<string>();
     45    public IEnumerable<string> InputVariables {
     46      get { return inputVariables; }
     47    }
     48
     49    public void AddInputVariables(string variableName) {
     50      if (!inputVariables.Contains(variableName))
     51        inputVariables.Add(variableName);
    4252    }
    4353
     
    122132    public double GetVariableQualityImpact(string variableName) {
    123133      if (variableQualityImpacts.ContainsKey(variableName)) return variableQualityImpacts[variableName];
    124       else throw new ArgumentException("Impact of variable "+variableName+" is not available.");
     134      else throw new ArgumentException("Impact of variable " + variableName + " is not available.");
    125135    }
    126136
Note: See TracChangeset for help on using the changeset viewer.