Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2051 for trunk


Ignore:
Timestamp:
06/16/09 18:27:08 (15 years ago)
Author:
gkronber
Message:

Fixed a bug in calculation of variable impacts in GP and SVM algorithms. #644

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.GP.StructureIdentification/3.3/AlgorithmBase.cs

    r2041 r2051  
    434434      foreach (ItemList row in evaluationImpacts) {
    435435        string variableName = ((StringData)row[0]).Data;
    436         double impact = ((DoubleData)row[0]).Data;
     436        double impact = ((DoubleData)row[1]).Data;
    437437        model.SetVariableEvaluationImpact(variableName, impact);
    438438      }
    439439      foreach (ItemList row in qualityImpacts) {
    440440        string variableName = ((StringData)row[0]).Data;
    441         double impact = ((DoubleData)row[0]).Data;
     441        double impact = ((DoubleData)row[1]).Data;
    442442        model.SetVariableQualityImpact(variableName, impact);
    443443      }
  • trunk/sources/HeuristicLab.SupportVectorMachines/3.2/SupportVectorRegression.cs

    r2044 r2051  
    370370      foreach (ItemList row in evaluationImpacts) {
    371371        string variableName = ((StringData)row[0]).Data;
    372         double impact = ((DoubleData)row[0]).Data;
     372        double impact = ((DoubleData)row[1]).Data;
    373373        model.SetVariableEvaluationImpact(variableName, impact);
    374374      }
    375375      foreach (ItemList row in qualityImpacts) {
    376376        string variableName = ((StringData)row[0]).Data;
    377         double impact = ((DoubleData)row[0]).Data;
     377        double impact = ((DoubleData)row[1]).Data;
    378378        model.SetVariableQualityImpact(variableName, impact);
    379379      }
Note: See TracChangeset for help on using the changeset viewer.