Changeset 14887 for branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression/KernelFunctions/PolysplineKernel.cs
- Timestamp:
- 04/24/17 18:31:44 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression/KernelFunctions/PolysplineKernel.cs
r14883 r14887 22 22 using System; 23 23 using HeuristicLab.Common; 24 using HeuristicLab.Core; 25 using HeuristicLab.Data; 26 using HeuristicLab.Parameters; 24 using HeuristicLab.Core; 27 25 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 28 26 29 namespace HeuristicLab.Algorithms.DataAnalysis {27 namespace HeuristicLab.Algorithms.DataAnalysis.KernelRidgeRegression { 30 28 [StorableClass] 31 [Item("PolysplineKernel", "A kernel function that uses the multiquadratic function")] 29 // conditionally positive definite. (need to add polynomials) see http://num.math.uni-goettingen.de/schaback/teaching/sc.pdf 30 [Item("PolysplineKernel", "A kernel function that uses the poly-spline function ||x-c||^Beta.")] 32 31 public class PolysplineKernel : KernelBase { 33 32 … … 40 39 : base(original, cloner) { } 41 40 public PolysplineKernel() { 42 Parameters.Add(new FixedValueParameter<DoubleValue>(BetaParameterName, "The Beta in the kernelfunction ||x-c||^Beta", new DoubleValue(1.5)));43 41 } 44 42 public override IDeepCloneable Clone(Cloner cloner) { … … 48 46 49 47 protected override double Get(double norm) { 50 return Math.Pow(norm, Beta );48 return Math.Pow(norm, Beta.Value); 51 49 } 52 50 53 51 protected override double GetGradient(double norm) { 54 return Math.Pow(norm, Beta ) * Math.Log(norm);52 return Math.Pow(norm, Beta.Value) * Math.Log(norm); 55 53 } 56 54 }
Note: See TracChangeset
for help on using the changeset viewer.