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/SquaredErrorLoss.cs

    r12871 r12872  
    2424using System.Collections.Generic;
    2525using System.Linq;
    26 using HeuristicLab.Common;
    27 using HeuristicLab.Core;
    28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2926
    3027namespace HeuristicLab.Algorithms.DataAnalysis {
    31   [StorableClass]
    32   [Item("Squared error loss", "")]
    33   public class SquaredErrorLoss : Item, ILossFunction {
    34     public SquaredErrorLoss() { }
    35 
     28  public class SquaredErrorLoss : ILossFunction {
    3629    public double GetLoss(IEnumerable<double> target, IEnumerable<double> pred) {
    3730      var targetEnum = target.GetEnumerator();
     
    7770    }
    7871
    79     #region item implementation
    80     private SquaredErrorLoss(SquaredErrorLoss original, Cloner cloner) : base(original, cloner) { }
    81 
    82     public override IDeepCloneable Clone(Cloner cloner) {
    83       return new SquaredErrorLoss(this, cloner);
     72    public override string ToString() {
     73      return "Squared error loss";
    8474    }
    85     #endregion
    8675  }
    8776}
Note: See TracChangeset for help on using the changeset viewer.