Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/16/09 13:13:52 (15 years ago)
Author:
gkronber
Message:

Fixed problems with classification algorithms. #746 (CEDMA server is not compatible with new data-modeling algorithms)

Location:
trunk/sources/HeuristicLab.LinearRegression/3.2
Files:
3 edited

Legend:

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

    r2356 r2363  
    5454    }
    5555
    56     protected internal virtual IAnalyzerModel CreateLRModel(IScope bestModelScope) {
     56    protected override IAnalyzerModel CreateLRModel(IScope bestModelScope) {
    5757      var model = new AnalyzerModel();
    5858      DefaultClassificationOperators.PopulateAnalyzerModel(bestModelScope, model);
  • trunk/sources/HeuristicLab.LinearRegression/3.2/LinearRegression.cs

    r2360 r2363  
    6060      get {
    6161        IOperator main = GetMainOperator();
    62         return main.SubOperators[2];
     62        CombinedOperator probInjector = (CombinedOperator)main.SubOperators[2];
     63        return probInjector.OperatorGraph.InitialOperator.SubOperators[0];
    6364      }
    6465      set {
    6566        IOperator main = GetMainOperator();
    66         main.RemoveSubOperator(2);
    67         main.AddSubOperator(value, 2);
     67        CombinedOperator probInjector = (CombinedOperator)main.SubOperators[2];
     68        probInjector.OperatorGraph.InitialOperator.RemoveSubOperator(0);
     69        probInjector.OperatorGraph.InitialOperator.AddSubOperator(value, 0);
    6870      }
    6971    }
  • trunk/sources/HeuristicLab.LinearRegression/3.2/LinearTimeSeriesPrognosis.cs

    r2360 r2363  
    7373    }
    7474
    75     protected internal virtual IAnalyzerModel CreateLRModel(IScope bestModelScope) {
     75    protected override IAnalyzerModel CreateLRModel(IScope bestModelScope) {
    7676      var model = new AnalyzerModel();
    7777      DefaultTimeSeriesOperators.PopulateAnalyzerModel(bestModelScope, model);
Note: See TracChangeset for help on using the changeset viewer.