Changeset 17393 for branches/2974_Constants_Optimization/HeuristicLab.Problems.DataAnalysis.Symbolic
- Timestamp:
- 01/03/20 18:59:45 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2974_Constants_Optimization/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/ConstantsOptimization/LMConstantsOptimizer.cs
r16689 r17393 47 47 /// <param name="rows">The rows for which the data should be extracted.</param> 48 48 /// <param name="applyLinearScaling">A flag to determine whether linear scaling should be applied during the optimization</param> 49 /// <param name="maxIterations">The maximum number of iterations of the Levenberg-Marquard algorithm.</param>49 /// <param name="maxIterations">The maximum number of iterations of the Levenberg-Marquardt algorithm.</param> 50 50 /// <returns></returns> 51 51 public static double OptimizeConstants(ISymbolicExpressionTree tree, … … 63 63 throw new NotSupportedException("Could not convert symbolic expression tree to an AutoDiff term due to not supported symbols used in the tree."); 64 64 65 // Variables of the symbolic expression tree correspond to parameters in the term66 // Hence if no parameters are present we can't do anything and R² stays the same.65 // Variables of the symbolic expression tree correspond to parameters in the term. 66 // Hence if no parameters are present we can't do anything and R² stays the same. 67 67 if (term.Parameters.Count == 0) return 0.0; 68 68 … … 80 80 81 81 /// <summary> 82 /// Optimizes the numeric coefficents of an AutoDiff Term using the Levenberg-Marquard algorithm.82 /// Optimizes the numeric coefficents of an AutoDiff Term using the Levenberg-Marquardt algorithm. 83 83 /// </summary> 84 84 /// <param name="term">The AutoDiff term for which the numeric coefficients should be optimized.</param> … … 86 86 /// <param name="x">The input data for the optimization.</param> 87 87 /// <param name="y">The target values for the optimization.</param> 88 /// <param name="maxIterations">The maximum number of iterations of the Levenberg-Marquard </param>89 /// <param name="constants">The op itmized constants.</param>88 /// <param name="maxIterations">The maximum number of iterations of the Levenberg-Marquardt</param> 89 /// <param name="constants">The optimized constants.</param> 90 90 /// <param name="LM_IterationCallback">An optional callback for detailed analysis that is called in each algorithm iteration.</param> 91 91 /// <returns>The R² of the term evaluated on the input data x and the target data y using the optimized constants</returns>
Note: See TracChangeset
for help on using the changeset viewer.