Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/17/15 18:33:31 (9 years ago)
Author:
gkronber
Message:

#2434 reverse merge of r12871 (changes should be applied directly to trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/crossvalidation-2434/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/LossFunctions/RelativeErrorLoss.cs

    r12871 r12872  
    2626using System.Linq;
    2727using HeuristicLab.Common;
    28 using HeuristicLab.Core;
    29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    3028
    3129namespace HeuristicLab.Algorithms.DataAnalysis {
    3230  // relative error loss is a special case of weighted absolute error loss with weights = (1/target)
    33   [StorableClass]
    34   [Item("Relative error loss", "")]
    35   public class RelativeErrorLoss : Item, ILossFunction {
    36     public RelativeErrorLoss() { }
    37 
     31  public class RelativeErrorLoss : ILossFunction {
    3832    public double GetLoss(IEnumerable<double> target, IEnumerable<double> pred) {
    3933      var targetEnum = target.GetEnumerator();
     
    111105    }
    112106
    113     #region item implementation
    114     private RelativeErrorLoss(RelativeErrorLoss original, Cloner cloner) : base(original, cloner) { }
    115 
    116     public override IDeepCloneable Clone(Cloner cloner) {
    117       return new RelativeErrorLoss(this, cloner);
     107    public override string ToString() {
     108      return "Relative error loss";
    118109    }
    119     #endregion
    120110  }
    121111}
Note: See TracChangeset for help on using the changeset viewer.