Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/19/16 19:56:11 (8 years ago)
Author:
bburlacu
Message:

#2604: Revert changes to DataAnalysisSolution and IDataAnalysisSolution and implement the desired properties in model classes that implement IDataAnalysisModel, IRegressionModel and IClassificationModel.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/GradientBoostedTreesModel.cs

    r13157 r13921  
    5858    #endregion
    5959
     60    public string TargetVariable {
     61      get { return models.First().TargetVariable; }
     62    }
     63
     64    public IEnumerable<string> VariablesUsedForPrediction {
     65      get { return models.SelectMany(x => x.VariablesUsedForPrediction).Distinct().OrderBy(x => x); }
     66    }
     67
    6068    private readonly IList<IRegressionModel> models;
    6169    public IEnumerable<IRegressionModel> Models { get { return models; } }
     
    108116      return new RegressionSolution(this, (IRegressionProblemData)problemData.Clone());
    109117    }
     118
    110119  }
    111120}
Note: See TracChangeset for help on using the changeset viewer.