Changeset 15428 for branches/M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression
- Timestamp:
- 10/23/17 12:37:42 (7 years ago)
- Location:
- branches/M5Regression
- Files:
-
- 1 added
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/KernelRidgeRegression/KernelRidgeRegression.cs
r15248 r15428 46 46 } 47 47 public new IRegressionProblem Problem { 48 get { return (IRegressionProblem) base.Problem; }48 get { return (IRegressionProblem) base.Problem; } 49 49 set { base.Problem = value; } 50 50 } … … 59 59 #region parameter properties 60 60 public IConstrainedValueParameter<IKernel> KernelParameter { 61 get { return (IConstrainedValueParameter<IKernel>) Parameters[KernelParameterName]; }61 get { return (IConstrainedValueParameter<IKernel>) Parameters[KernelParameterName]; } 62 62 } 63 63 64 64 public IFixedValueParameter<BoolValue> ScaleInputVariablesParameter { 65 get { return (IFixedValueParameter<BoolValue>) Parameters[ScaleInputVariablesParameterName]; }65 get { return (IFixedValueParameter<BoolValue>) Parameters[ScaleInputVariablesParameterName]; } 66 66 } 67 67 68 68 public IFixedValueParameter<DoubleValue> LogLambdaParameter { 69 get { return (IFixedValueParameter<DoubleValue>) Parameters[LambdaParameterName]; }69 get { return (IFixedValueParameter<DoubleValue>) Parameters[LambdaParameterName]; } 70 70 } 71 71 72 72 public IFixedValueParameter<DoubleValue> BetaParameter { 73 get { return (IFixedValueParameter<DoubleValue>) Parameters[BetaParameterName]; }73 get { return (IFixedValueParameter<DoubleValue>) Parameters[BetaParameterName]; } 74 74 } 75 75 #endregion … … 99 99 private KernelRidgeRegression(bool deserializing) : base(deserializing) { } 100 100 private KernelRidgeRegression(KernelRidgeRegression original, Cloner cloner) 101 : base(original, cloner) { 102 } 101 : base(original, cloner) { } 103 102 public KernelRidgeRegression() { 104 103 Problem = new RegressionProblem(); … … 132 131 .Average()); 133 132 } 134 var solution = model.CreateRegressionSolution((IRegressionProblemData) problemData.Clone());133 var solution = model.CreateRegressionSolution((IRegressionProblemData) problemData.Clone()); 135 134 solution.Model.Name = "Kernel ridge regression model"; 136 135 solution.Name = SolutionResultName;
Note: See TracChangeset
for help on using the changeset viewer.