Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/15/16 20:09:41 (7 years ago)
Author:
gkronber
Message:

#2697:

  • renaming of folder "Transformation" to "Converters" to distinguish between transformations for variables (from data preprocessing) and classes for transformation of trees.
  • renamed SymbolicDataAnalysisExpressionTreeSimplifier -> TreeSimplifier
  • Implemented a converter to create a linar model as a symbolic expression tree
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/Evaluators/SymbolicRegressionConstantOptimizationEvaluator.cs

    r14378 r14390  
    158158      double[] constants;
    159159
    160       TreeToAutoDiffTermTransformator.ParametricFunction func;
    161       TreeToAutoDiffTermTransformator.ParametricFunctionGradient func_grad;
    162       if (!TreeToAutoDiffTermTransformator.TryTransformToAutoDiff(tree, updateVariableWeights, out variableNames, out lags, out constants, out func, out func_grad))
     160      TreeToAutoDiffTermConverter.ParametricFunction func;
     161      TreeToAutoDiffTermConverter.ParametricFunctionGradient func_grad;
     162      if (!TreeToAutoDiffTermConverter.TryTransformToAutoDiff(tree, updateVariableWeights, out variableNames, out lags, out constants, out func, out func_grad))
    163163        throw new NotSupportedException("Could not optimize constants of symbolic expression tree due to not supported symbols used in the tree.");
    164164      if (variableNames.Length == 0) return 0.0;
     
    231231    }
    232232
    233     private static alglib.ndimensional_pfunc CreatePFunc(TreeToAutoDiffTermTransformator.ParametricFunction func) {
     233    private static alglib.ndimensional_pfunc CreatePFunc(TreeToAutoDiffTermConverter.ParametricFunction func) {
    234234      return (double[] c, double[] x, ref double fx, object o) => {
    235235        fx = func(c, x);
     
    237237    }
    238238
    239     private static alglib.ndimensional_pgrad CreatePGrad(TreeToAutoDiffTermTransformator.ParametricFunctionGradient func_grad) {
     239    private static alglib.ndimensional_pgrad CreatePGrad(TreeToAutoDiffTermConverter.ParametricFunctionGradient func_grad) {
    240240      return (double[] c, double[] x, ref double fx, double[] grad, object o) => {
    241241        var tupel = func_grad(c, x);
     
    246246
    247247    public static bool CanOptimizeConstants(ISymbolicExpressionTree tree) {
    248       return TreeToAutoDiffTermTransformator.IsCompatible(tree);
     248      return TreeToAutoDiffTermConverter.IsCompatible(tree);
    249249    }
    250250  }
Note: See TracChangeset for help on using the changeset viewer.