Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3493


Ignore:
Timestamp:
04/22/10 20:04:27 (15 years ago)
Author:
gkronber
Message:

fixed bugs in cloning. #938 (Data types and operators for regression problems)

Location:
trunk/sources
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/SymbolicRegressionModel.cs

    r3462 r3493  
    7171    public override IDeepCloneable Clone(Cloner cloner) {
    7272      var clone = (SymbolicRegressionModel)base.Clone(cloner);
    73       clone.tree = (SymbolicExpressionTree)tree.Clone(cloner);
    74       clone.interpreter = (ISymbolicExpressionTreeInterpreter)interpreter.Clone(cloner);
     73      clone.tree = (SymbolicExpressionTree)cloner.Clone(tree);
     74      clone.interpreter = (ISymbolicExpressionTreeInterpreter)cloner.Clone(interpreter);
    7575      clone.inputVariables = new List<string>(inputVariables);
    7676      return clone;
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/SymbolicRegressionSolution.cs

    r3485 r3493  
    100100    public override IDeepCloneable Clone(Cloner cloner) {
    101101      SymbolicRegressionSolution clone = (SymbolicRegressionSolution)base.Clone(cloner);
    102       clone.model = (SymbolicRegressionModel)model.Clone(cloner);
     102      clone.model = (SymbolicRegressionModel)cloner.Clone(model);
    103103      return clone;
    104104    }
  • trunk/sources/HeuristicLab.Problems.DataAnalysis/3.3/Dataset.cs

    r3458 r3493  
    217217    public override IDeepCloneable Clone(Cloner cloner) {
    218218      Dataset clone = (Dataset)base.Clone(cloner);
    219       clone.data = (double[,])data.Clone();
     219      clone.data = data;
    220220      clone.variableNames = (string[])variableNames.Clone();
    221221      return clone;
     
    367367    }
    368368    #endregion
     369
     370
    369371  }
    370372}
Note: See TracChangeset for help on using the changeset viewer.