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/LogisticRegressionLoss.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  // Greedy Function Approximation: A Gradient Boosting Machine (page 9)
    33   [StorableClass]
    34   [Item("Logistic regression loss", "")]
    35   public class LogisticRegressionLoss : Item, ILossFunction {
    36     public LogisticRegressionLoss() { }
    37 
     31  public class LogisticRegressionLoss : ILossFunction {
    3832    public double GetLoss(IEnumerable<double> target, IEnumerable<double> pred) {
    3933      var targetEnum = target.GetEnumerator();
     
    8983    }
    9084
    91     #region item implementation
    92     private LogisticRegressionLoss(LogisticRegressionLoss original, Cloner cloner) : base(original, cloner) { }
    93 
    94     public override IDeepCloneable Clone(Cloner cloner) {
    95       return new LogisticRegressionLoss(this, cloner);
     85    public override string ToString() {
     86      return "Logistic regression loss";
    9687    }
    97     #endregion
    98 
    9988  }
    10089}
Note: See TracChangeset for help on using the changeset viewer.