Changeset 12872 for branches/crossvalidation-2434/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/LossFunctions/SquaredErrorLoss.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/SquaredErrorLoss.cs
r12871 r12872 24 24 using System.Collections.Generic; 25 25 using System.Linq; 26 using HeuristicLab.Common;27 using HeuristicLab.Core;28 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;29 26 30 27 namespace 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 { 36 29 public double GetLoss(IEnumerable<double> target, IEnumerable<double> pred) { 37 30 var targetEnum = target.GetEnumerator(); … … 77 70 } 78 71 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"; 84 74 } 85 #endregion86 75 } 87 76 }
Note: See TracChangeset
for help on using the changeset viewer.