Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14892


Ignore:
Timestamp:
04/26/17 12:23:36 (7 years ago)
Author:
gkronber
Message:

#2699: made some adjustments after bwerth's changes (mainly formatting)

Location:
branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/GaussianProcessRegression.cs

    r14891 r14892  
    4242
    4343    public override Type ProblemType { get { return typeof(IRegressionProblem); } }
    44     public new IRegressionProblem Problem
    45     {
     44    public new IRegressionProblem Problem {
    4645      get { return (IRegressionProblem)base.Problem; }
    4746      set { base.Problem = value; }
     
    5352
    5453    #region parameter properties
    55     public IConstrainedValueParameter<IGaussianProcessRegressionModelCreator> GaussianProcessModelCreatorParameter
    56     {
     54    public IConstrainedValueParameter<IGaussianProcessRegressionModelCreator> GaussianProcessModelCreatorParameter {
    5755      get { return (IConstrainedValueParameter<IGaussianProcessRegressionModelCreator>)Parameters[ModelCreatorParameterName]; }
    5856    }
    59     public IFixedValueParameter<GaussianProcessRegressionSolutionCreator> GaussianProcessSolutionCreatorParameter
    60     {
     57    public IFixedValueParameter<GaussianProcessRegressionSolutionCreator> GaussianProcessSolutionCreatorParameter {
    6158      get { return (IFixedValueParameter<GaussianProcessRegressionSolutionCreator>)Parameters[SolutionCreatorParameterName]; }
    6259    }
    63     public IFixedValueParameter<BoolValue> CreateSolutionParameter
    64     {
     60    public IFixedValueParameter<BoolValue> CreateSolutionParameter {
    6561      get { return (IFixedValueParameter<BoolValue>)Parameters[CreateSolutionParameterName]; }
    6662    }
    6763    #endregion
    6864    #region properties
    69     public bool CreateSolution
    70     {
     65    public bool CreateSolution {
    7166      get { return CreateSolutionParameter.Value.Value; }
    7267      set { CreateSolutionParameter.Value.Value = value; }
  • branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression/KernelFunctions/CicularKernel.cs

    r14891 r14892  
    4545    protected override double Get(double norm) {
    4646      var beta = Beta.Value;
    47       if (Math.Abs(Beta.Value) < double.Epsilon) return double.NaN;
    48       if (norm >= Beta.Value) return 0;
     47      if (Math.Abs(beta) < double.Epsilon) return double.NaN;
     48      if (norm >= beta) return 0;
    4949      var d = norm / beta;
    5050      return 2 * Math.PI * (Math.Acos(-d) - d * Math.Sqrt(1 - d * d));
  • branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression/KernelFunctions/PolysplineKernel.cs

    r14891 r14892  
    3737    #endregion
    3838    #region Parameterproperties
    39     public IFixedValueParameter<DoubleValue> DegreeParameter
    40     {
     39    public IFixedValueParameter<DoubleValue> DegreeParameter {
    4140      get { return Parameters[DegreeParameterName] as IFixedValueParameter<DoubleValue>; }
    4241    }
    4342    #endregion
    4443    #region Properties
    45     public DoubleValue Degree
    46     {
     44    public DoubleValue Degree {
    4745      get { return DegreeParameter.Value; }
    4846    }
  • branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression/KernelFunctions/ThinPlatePolysplineKernel.cs

    r14891 r14892  
    3737    #endregion
    3838    #region Parameterproperties
    39     public IFixedValueParameter<DoubleValue> DegreeParameter
    40     {
     39    public IFixedValueParameter<DoubleValue> DegreeParameter {
    4140      get { return Parameters[DegreeParameterName] as IFixedValueParameter<DoubleValue>; }
    4241    }
    4342    #endregion
    4443    #region Properties
    45     public DoubleValue Degree
    46     {
     44    public DoubleValue Degree {
    4745      get { return DegreeParameter.Value; }
    4846    }
  • branches/RBFRegression/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression/KernelRidgeRegressionModel.cs

    r14891 r14892  
    3232  [Item("KernelRidgeRegressionModel", "A kernel ridge regression model")]
    3333  public sealed class KernelRidgeRegressionModel : RegressionModel {
    34     public override IEnumerable<string> VariablesUsedForPrediction
    35     {
     34    public override IEnumerable<string> VariablesUsedForPrediction {
    3635      get { return allowedInputVariables; }
    3736    }
     
    3938    [Storable]
    4039    private readonly string[] allowedInputVariables;
    41     public string[] AllowedInputVariables
    42     {
     40    public string[] AllowedInputVariables {
    4341      get { return allowedInputVariables; }
    4442    }
     
    148146        }
    149147        LooCvRMSE = Math.Sqrt(ssqLooError / n);
    150       }
    151       catch (alglib.alglibexception ae) {
     148      } catch (alglib.alglibexception ae) {
    152149        // wrap exception so that calling code doesn't have to know about alglib implementation
    153150        throw new ArgumentException("There was a problem in the calculation of the kernel ridge regression model", ae);
Note: See TracChangeset for help on using the changeset viewer.