Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/14/10 16:15:02 (14 years ago)
Author:
mkommend
Message:

added MeanAbsolutePercentageError to DataAnalysisSolution (ticket #1020)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/DataAnalysisSolution.cs

    r3916 r3919  
    164164
    165165    #region IStringConvertibleMatrix implementation
    166     private List<string> rowNames = new List<string>() { "MeanSquaredError", "CoefficientOfDetermination" };
     166    private List<string> rowNames = new List<string>() { "MeanSquaredError", "CoefficientOfDetermination", "MeanAbsolutePercentageError" };
    167167    private List<string> columnNames = new List<string>() { "Training", "Test" };
    168     private double[,] resultValues = new double[2, 2];
     168    private double[,] resultValues = new double[3, 2];
    169169    int IStringConvertibleMatrix.Rows { get { return rowNames.Count; } set { } }
    170170    int IStringConvertibleMatrix.Columns { get { return columnNames.Count; } set { } }
     
    190190      resultValues[1, 0] = SimpleRSquaredEvaluator.Calculate(originalTrainingValues, EstimatedTrainingValues);
    191191      resultValues[1, 1] = SimpleRSquaredEvaluator.Calculate(originalTestValues, EstimatedTestValues);
     192      resultValues[2, 0] = SimpleMeanAbsolutePercentageErrorEvaluator.Calculate(originalTrainingValues, EstimatedTrainingValues);
     193      resultValues[2, 1] = SimpleMeanAbsolutePercentageErrorEvaluator.Calculate(originalTestValues, EstimatedTestValues);
     194
    192195      this.OnReset();
    193196    }
Note: See TracChangeset for help on using the changeset viewer.