Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2321


Ignore:
Timestamp:
09/01/09 11:13:50 (15 years ago)
Author:
gkronber
Message:

Fixed #730 (Variable impacts of models can't be displayed in CEDMA console).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Core/3.3/Console.cs

    r2295 r2321  
    9191          row.Set(modelResult.Result.Name, modelResult.Value);
    9292        }
     93        Dictionary<HeuristicLab.Modeling.Database.IVariable, MatrixRow> inputVariableResultsEntries =
     94          new Dictionary<HeuristicLab.Modeling.Database.IVariable, MatrixRow>();
     95        foreach (IInputVariableResult inputVariableResult in db.GetInputVariableResults(model)) {
     96          if (!inputVariableResultsEntries.ContainsKey(inputVariableResult.Variable)) {
     97            inputVariableResultsEntries[inputVariableResult.Variable] = new MatrixRow();
     98            inputVariableResultsEntries[inputVariableResult.Variable].Set("InputVariableName", inputVariableResult.Variable.Name);
     99          }
     100          inputVariableResultsEntries[inputVariableResult.Variable].Set(inputVariableResult.Result.Name, inputVariableResult.Value);
     101        }
     102        row.Set("VariableImpacts", inputVariableResultsEntries.Values);
     103
    93104        row.Set("PersistedData", db.GetModelData(model));
    94105        row.Set("TargetVariable", model.TargetVariable.Name);
    95106        row.Set("Algorithm", model.Algorithm.Name);
    96        
     107
    97108        matrix.AddRow(row);
    98109      }
     
    100111    }
    101112
    102     private VisualMatrix CreateVisualMatrix() {     
     113    private VisualMatrix CreateVisualMatrix() {
    103114      DatabaseService db = new DatabaseService(sqlServerCompactConnectionString + database);
    104115      db.Connect();
Note: See TracChangeset for help on using the changeset viewer.