Changeset 2034 for trunk/sources/HeuristicLab.Modeling
- Timestamp:
- 06/09/09 14:34:56 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Modeling/3.2
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Modeling/3.2/HeuristicLab.Modeling-3.2.csproj
r1906 r2034 83 83 <ItemGroup> 84 84 <Compile Include="ClassificationProblemInjector.cs" /> 85 <Compile Include="VariableImpactCalculator.cs" /> 85 86 <Compile Include="Model.cs" /> 86 87 <Compile Include="IModel.cs" /> -
trunk/sources/HeuristicLab.Modeling/3.2/IModel.cs
r1922 r2034 45 45 double ValidationVarianceAccountedFor { get; } 46 46 double TestVarianceAccountedFor { get; } 47 double GetVariableImpact(string variableName); 47 48 48 49 IItem Data { get; } -
trunk/sources/HeuristicLab.Modeling/3.2/Model.cs
r1922 r2034 120 120 } 121 121 122 public double GetVariableImpact(string variableName) { 123 if (variableImpacts.ContainsKey(variableName)) return variableImpacts[variableName]; 124 else return 0.0; 125 } 126 122 127 private IItem data; 123 128 public IItem Data { … … 127 132 128 133 #endregion 134 135 private Dictionary<string, double> variableImpacts = new Dictionary<string, double>(); 136 public void SetVariableImpact(string variableName, double impact) { 137 variableImpacts[variableName] = impact; 138 } 139 140 public void SetVariableImpact(int variableIndex, double impact) { 141 variableImpacts[dataset.GetVariableName(variableIndex)] = impact; 142 } 129 143 } 130 144 }
Note: See TracChangeset
for help on using the changeset viewer.