Free cookie consent management tool by TermsFeed Policy Generator

Changeset 12875 for trunk/sources


Ignore:
Timestamp:
08/17/15 19:03:22 (9 years ago)
Author:
gkronber
Message:

#2450: fixed constructors for loss functions

Location:
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/LossFunctions
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/LossFunctions/AbsoluteErrorLoss.cs

    r12873 r12875  
    3131  [StorableClass]
    3232  [Item("Absolute error loss", "")]
    33   public class AbsoluteErrorLoss : Item, ILossFunction {
     33  public sealed class AbsoluteErrorLoss : Item, ILossFunction {
    3434    public AbsoluteErrorLoss() { }
    3535
     
    8282
    8383    #region item implementation
     84    [StorableConstructor]
     85    private AbsoluteErrorLoss(bool deserializing) : base(deserializing) { }
     86
    8487    private AbsoluteErrorLoss(AbsoluteErrorLoss original, Cloner cloner) : base(original, cloner) { }
    8588
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/LossFunctions/LogisticRegressionLoss.cs

    r12873 r12875  
    3333  [StorableClass]
    3434  [Item("Logistic regression loss", "")]
    35   public class LogisticRegressionLoss : Item, ILossFunction {
     35  public sealed class LogisticRegressionLoss : Item, ILossFunction {
    3636    public LogisticRegressionLoss() { }
    3737
     
    9090
    9191    #region item implementation
     92    [StorableConstructor]
     93    private LogisticRegressionLoss(bool deserializing) : base(deserializing) { }
     94
    9295    private LogisticRegressionLoss(LogisticRegressionLoss original, Cloner cloner) : base(original, cloner) { }
    9396
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/LossFunctions/RelativeErrorLoss.cs

    r12873 r12875  
    3333  [StorableClass]
    3434  [Item("Relative error loss", "")]
    35   public class RelativeErrorLoss : Item, ILossFunction {
     35  public sealed class RelativeErrorLoss : Item, ILossFunction {
    3636    public RelativeErrorLoss() { }
    3737
     
    112112
    113113    #region item implementation
     114    [StorableConstructor]
     115    private RelativeErrorLoss(bool deserializing) : base(deserializing) { }
     116
    114117    private RelativeErrorLoss(RelativeErrorLoss original, Cloner cloner) : base(original, cloner) { }
    115118
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/LossFunctions/SquaredErrorLoss.cs

    r12873 r12875  
    3131  [StorableClass]
    3232  [Item("Squared error loss", "")]
    33   public class SquaredErrorLoss : Item, ILossFunction {
     33  public sealed class SquaredErrorLoss : Item, ILossFunction {
    3434    public SquaredErrorLoss() { }
    3535
     
    7878
    7979    #region item implementation
     80    [StorableConstructor]
     81    private SquaredErrorLoss(bool deserializing) : base(deserializing) { }
     82
    8083    private SquaredErrorLoss(SquaredErrorLoss original, Cloner cloner) : base(original, cloner) { }
    8184
Note: See TracChangeset for help on using the changeset viewer.