- Timestamp:
- 04/10/17 15:48:20 (8 years ago)
- Location:
- branches/TSNE/HeuristicLab.Algorithms.DataAnalysis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/TSNE/HeuristicLab.Algorithms.DataAnalysis
- Property svn:mergeinfo changed
-
branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/GaussianProcessBase.cs
r14185 r14836 21 21 #endregion 22 22 23 using System.Linq; 23 24 using HeuristicLab.Algorithms.GradientDescent; 24 25 using HeuristicLab.Common; … … 119 120 120 121 // necessary for BFGS 121 Parameters.Add(new ValueParameter<BoolValue>("Maximization", new BoolValue(false)));122 Parameters["Maximization "].Hidden = true;122 Parameters.Add(new FixedValueParameter<BoolValue>("Maximization (BFGS)", new BoolValue(false))); 123 Parameters["Maximization (BFGS)"].Hidden = true; 123 124 124 125 var randomCreator = new HeuristicLab.Random.RandomCreator(); … … 164 165 modelCreator.Successor = updateResults; 165 166 167 updateResults.MaximizationParameter.ActualName = "Maximization (BFGS)"; 166 168 updateResults.StateParameter.ActualName = bfgsInitializer.StateParameter.Name; 167 169 updateResults.QualityParameter.ActualName = NegativeLogLikelihoodParameterName; … … 197 199 // BackwardsCompatibility3.4 198 200 #region Backwards compatible code, remove with 3.5 199 if (!Parameters.ContainsKey("Maximization")) { 200 Parameters.Add(new ValueParameter<BoolValue>("Maximization", new BoolValue(false))); 201 Parameters["Maximization"].Hidden = true; 201 if (Parameters.ContainsKey("Maximization")) { 202 Parameters.Remove("Maximization"); 203 } 204 205 if (!Parameters.ContainsKey("Maximization (BFGS)")) { 206 Parameters.Add(new FixedValueParameter<BoolValue>("Maximization (BFGS)", new BoolValue(false))); 207 Parameters["Maximization (BFGS)"].Hidden = true; 208 OperatorGraph.Operators.OfType<LbfgsUpdateResults>().First().MaximizationParameter.ActualName = "Maximization BFGS"; 202 209 } 203 210 -
branches/TSNE/HeuristicLab.Algorithms.DataAnalysis/3.4/GaussianProcess/GaussianProcessClassificationModelCreator.cs
r14185 r14836 67 67 HyperparameterGradientsParameter.ActualValue = new RealVector(model.HyperparameterGradients); 68 68 return base.Apply(); 69 } catch (ArgumentException) { } catch (alglib.alglibexception) { } 69 } catch (ArgumentException) { 70 } catch (alglib.alglibexception) { 71 } 70 72 NegativeLogLikelihoodParameter.ActualValue = new DoubleValue(1E300); 71 73 HyperparameterGradientsParameter.ActualValue = new RealVector(Hyperparameter.Count());
Note: See TracChangeset
for help on using the changeset viewer.