Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/06/18 11:35:10 (7 years ago)
Author:
pfleck
Message:

#2906 Updated project references + small refactoring

Location:
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblemData.cs

    r15846 r15885  
    314314
    315315    public ClassificationProblemData(IClassificationProblemData classificationProblemData)
    316       : this(classificationProblemData.Dataset, classificationProblemData.AllowedInputVariables, classificationProblemData.TargetVariable) {
     316      : this(classificationProblemData.Dataset, classificationProblemData.AllowedInputVariables, classificationProblemData.TargetVariable, classificationProblemData.Transformations) {
    317317      TrainingPartition.Start = classificationProblemData.TrainingPartition.Start;
    318318      TrainingPartition.End = classificationProblemData.TrainingPartition.End;
  • branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationTransformationModel.cs

    r15884 r15885  
    3838    public ClassificationTransformationModel(IClassificationModel originalModel, IEnumerable<IDataAnalysisTransformation> transformations)
    3939      : base(originalModel, transformations) {
    40       if (DataAnalysisTransformation.GetTransitiveVariables(new[] { originalModel.TargetVariable }, transformations).Any())
     40      if (transformations.Any(t => t.TransformedVariable == originalModel.TargetVariable))
    4141        throw new NotSupportedException("Classification with a transformed target variable is not allowed");
    4242    }
Note: See TracChangeset for help on using the changeset viewer.