Ignore:
Timestamp:
05/10/17 15:40:57 (4 years ago)
Author:
mkommend
Message:

#2755: Merged r14779, r14780 and r14955 into stable.

Location:
stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.Algorithms.DataAnalysis

  • stable/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesAlgorithm.cs

    r14186 r14956  
    263263          var classificationProblemData = new ClassificationProblemData(problemData.Dataset,
    264264            problemData.AllowedInputVariables, problemData.TargetVariable, problemData.Transformations);
    265           classificationModel.RecalculateModelParameters(classificationProblemData, classificationProblemData.TrainingIndices);
     265          classificationProblemData.TrainingPartition.Start = Problem.ProblemData.TrainingPartition.Start;
     266          classificationProblemData.TrainingPartition.End = Problem.ProblemData.TrainingPartition.End;
     267          classificationProblemData.TestPartition.Start = Problem.ProblemData.TestPartition.Start;
     268          classificationProblemData.TestPartition.End = Problem.ProblemData.TestPartition.End;
     269
     270          classificationModel.SetThresholdsAndClassValues(new double[] { double.NegativeInfinity, 0.0 }, new []{ 0.0, 1.0 });
     271
    266272
    267273          var classificationSolution = new DiscriminantFunctionClassificationSolution(classificationModel, classificationProblemData);
Note: See TracChangeset for help on using the changeset viewer.