Changeset 1814 for trunk/sources/HeuristicLab.SupportVectorMachines
- Timestamp:
- 05/14/09 17:09:56 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.SupportVectorMachines
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.SupportVectorMachines/3.2/HeuristicLab.SupportVectorMachines-3.2.csproj
r1810 r1814 68 68 <Compile Include="Properties\AssemblyInfo.cs" /> 69 69 <Compile Include="SimpleMSEEvaluator.cs" /> 70 <Compile Include="SimpleR2Evaluator.cs" /> 70 71 <Compile Include="SupportVectorCreator.cs" /> 71 72 <Compile Include="SupportVectorEvaluator.cs" /> -
trunk/sources/HeuristicLab.SupportVectorMachines/3.2/SimpleMSEEvaluator.cs
r1810 r1814 18 18 public override IOperation Apply(IScope scope) { 19 19 ItemList values = GetVariableValue<ItemList>("Values", scope, true); 20 double target;21 double estimated;22 double error;23 20 double sse = 0; 24 double cnt = 0; 21 double cnt = 0; 25 22 foreach (ItemList row in values) { 26 estimated = ((DoubleData)row[0]).Data;27 target = ((DoubleData)row[1]).Data;23 double estimated = ((DoubleData)row[0]).Data; 24 double target = ((DoubleData)row[1]).Data; 28 25 if (!double.IsNaN(estimated) && !double.IsInfinity(estimated) && 29 26 !double.IsNaN(target) && !double.IsInfinity(target)) { 30 error = estimated - target;27 double error = estimated - target; 31 28 sse += error * error; 32 29 cnt++;
Note: See TracChangeset
for help on using the changeset viewer.