Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/22/15 10:25:02 (9 years ago)
Author:
gkronber
Message:

#2439: fixed problem in GaussianProcess algorithm after changes in BFGS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.GradientDescent/3.3/LbfgsUpdateResults.cs

    r12794 r12797  
    6262    private DoubleValue Quality { get { return QualityParameter.ActualValue; } }
    6363    private LbfgsState State { get { return StateParameter.ActualValue; } }
    64     private BoolValue Maximization { get { return MaximizationParameter.ActualValue; } }
     64
     65    private BoolValue Maximization {
     66      get {
     67        // BackwardsCompatibility3.3
     68        #region Backwards compatible code, remove with 3.4
     69        // the parameter is new, previously we assumed minimization problems
     70        if (MaximizationParameter.ActualValue == null) return new BoolValue(false);
     71        #endregion
     72        return MaximizationParameter.ActualValue;
     73      }
     74    }
     75
    6576    #endregion
    6677
Note: See TracChangeset for help on using the changeset viewer.