Changeset 15885 for branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification
- Timestamp:
- 04/06/18 11:35:10 (7 years ago)
- 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 314 314 315 315 public ClassificationProblemData(IClassificationProblemData classificationProblemData) 316 : this(classificationProblemData.Dataset, classificationProblemData.AllowedInputVariables, classificationProblemData.TargetVariable ) {316 : this(classificationProblemData.Dataset, classificationProblemData.AllowedInputVariables, classificationProblemData.TargetVariable, classificationProblemData.Transformations) { 317 317 TrainingPartition.Start = classificationProblemData.TrainingPartition.Start; 318 318 TrainingPartition.End = classificationProblemData.TrainingPartition.End; -
branches/2906_Transformations/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationTransformationModel.cs
r15884 r15885 38 38 public ClassificationTransformationModel(IClassificationModel originalModel, IEnumerable<IDataAnalysisTransformation> transformations) 39 39 : base(originalModel, transformations) { 40 if ( DataAnalysisTransformation.GetTransitiveVariables(new[] { originalModel.TargetVariable }, transformations).Any())40 if (transformations.Any(t => t.TransformedVariable == originalModel.TargetVariable)) 41 41 throw new NotSupportedException("Classification with a transformed target variable is not allowed"); 42 42 }
Note: See TracChangeset
for help on using the changeset viewer.