Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/09/11 18:58:09 (13 years ago)
Author:
gkronber
Message:

#1615 clone problem before creating a solution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkEnsembleClassification.cs

    r6580 r6649  
    198198      avgRelError = alglib.mlpeavgrelerror(mlpEnsemble, inputMatrix, nRows);
    199199      relClassError = alglib.mlperelclserror(mlpEnsemble, inputMatrix, nRows);
    200 
    201       return new NeuralNetworkEnsembleClassificationSolution(problemData, new NeuralNetworkEnsembleModel(mlpEnsemble, targetVariable, allowedInputVariables, problemData.ClassValues.ToArray()));
     200      var problemDataClone = (IClassificationProblemData)problemData.Clone();
     201      return new NeuralNetworkEnsembleClassificationSolution(problemDataClone, new NeuralNetworkEnsembleModel(mlpEnsemble, targetVariable, allowedInputVariables, problemDataClone.ClassValues.ToArray()));
    202202    }
    203203    #endregion
Note: See TracChangeset for help on using the changeset viewer.