Changeset 12872 for branches/crossvalidation-2434/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/LossFunctions/LogisticRegressionLoss.cs
- Timestamp:
- 08/17/15 18:33:31 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crossvalidation-2434/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/LossFunctions/LogisticRegressionLoss.cs
r12871 r12872 26 26 using System.Linq; 27 27 using HeuristicLab.Common; 28 using HeuristicLab.Core;29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;30 28 31 29 namespace HeuristicLab.Algorithms.DataAnalysis { 32 30 // 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 { 38 32 public double GetLoss(IEnumerable<double> target, IEnumerable<double> pred) { 39 33 var targetEnum = target.GetEnumerator(); … … 89 83 } 90 84 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"; 96 87 } 97 #endregion98 99 88 } 100 89 }
Note: See TracChangeset
for help on using the changeset viewer.