Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/15/09 14:01:47 (15 years ago)
Author:
gkronber
Message:

Moved common (not algorithm specific) model analyzer code (same operator tree in all regression/classification/time-series-prognosis engines) to HL.Modeling. #625, #705, #739.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.LinearRegression/3.2/LinearClassification.cs

    r2353 r2356  
    3838
    3939namespace HeuristicLab.LinearRegression {
    40   public class LinearClassification : LinearRegression {
     40  public class LinearClassification : LinearRegression, IClassificationAlgorithm {
    4141
    4242    public override string Name { get { return "LinearClassification"; } }
     
    4646    }
    4747
    48     protected override IOperator CreateModelAnalyser() {
    49       return DefaultClassificationAlgorithmOperators.CreatePostProcessingOperator();
     48    protected override IOperator CreateProblemInjector() {
     49      return DefaultClassificationOperators.CreateProblemInjector();
     50    }
     51
     52    protected override IOperator CreateModelAnalyzerOperator() {
     53      return DefaultClassificationOperators.CreatePostProcessingOperator();
    5054    }
    5155
    5256    protected internal virtual IAnalyzerModel CreateLRModel(IScope bestModelScope) {
    53       IAnalyzerModel model = base.CreateLRModel(bestModelScope);
    54       DefaultClassificationAlgorithmOperators.SetModelData(model, bestModelScope);
     57      var model = new AnalyzerModel();
     58      DefaultClassificationOperators.PopulateAnalyzerModel(bestModelScope, model);
    5559      return model;
    5660    }
Note: See TracChangeset for help on using the changeset viewer.