Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/06/17 13:07:40 (7 years ago)
Author:
gkronber
Message:

#2699: removed superfluous region names and empty AfterDeserialization hooks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression/KernelFunctions/KernelBase.cs

    r14936 r15156  
    3232  public abstract class KernelBase : ParameterizedNamedItem, IKernel {
    3333
    34     #region Parameternames
    3534    private const string DistanceParameterName = "Distance";
    36     #endregion
    37     #region Parameterproperties
     35
    3836    public ValueParameter<IDistance> DistanceParameter {
    3937      get { return Parameters[DistanceParameterName] as ValueParameter<IDistance>; }
     
    4240    [Storable]
    4341    public double? Beta { get; set; }
    44     #endregion
    45     #region Properties
     42
    4643    public IDistance Distance {
    4744      get { return DistanceParameter.Value; }
     
    4946    }
    5047
    51     #endregion
    52 
    5348    [StorableConstructor]
    5449    protected KernelBase(bool deserializing) : base(deserializing) { }
    55     [StorableHook(HookType.AfterDeserialization)]
    56     private void AfterDeserialization() { }
    5750
    5851    protected KernelBase(KernelBase original, Cloner cloner)
     
    8275    public ParameterizedCovarianceFunction GetParameterizedCovarianceFunction(double[] p, int[] columnIndices) {
    8376      if (p.Length != GetNumberOfParameters(columnIndices.Length)) throw new ArgumentException("Illegal parametrization");
    84       var myClone = (KernelBase)Clone(new Cloner());
     77      var myClone = (KernelBase)Clone();
    8578      myClone.SetParameter(p);
    8679      var cov = new ParameterizedCovarianceFunction {
Note: See TracChangeset for help on using the changeset viewer.