Changeset 2223 for trunk/sources/HeuristicLab.Modeling
- Timestamp:
- 08/03/09 14:23:54 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Modeling/3.2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Modeling/3.2/HeuristicLabModelingPlugin.cs
r2222 r2223 25 25 using HeuristicLab.PluginInfrastructure; 26 26 27 namespace HeuristicLab. GP.Modeling {27 namespace HeuristicLab.Modeling { 28 28 [ClassInfo(Name = "HeuristicLab.Modeling-3.2")] 29 29 [PluginFile(Filename = "HeuristicLab.Modeling-3.2.dll", Filetype = PluginFileType.Assembly)] -
trunk/sources/HeuristicLab.Modeling/3.2/IModel.cs
r2041 r2223 30 30 Dataset Dataset { get; } 31 31 string TargetVariable { get; } 32 IEnumerable<string> InputVariables { get; } 32 33 double TrainingMeanSquaredError { get; } 33 34 double ValidationMeanSquaredError { get; } -
trunk/sources/HeuristicLab.Modeling/3.2/Model.cs
r2045 r2223 40 40 get { return targetVariable; } 41 41 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); 42 52 } 43 53 … … 122 132 public double GetVariableQualityImpact(string variableName) { 123 133 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."); 125 135 } 126 136
Note: See TracChangeset
for help on using the changeset viewer.