Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/03/09 15:00:23 (15 years ago)
Author:
gkronber
Message:

this is the remaining part of changeset r2327.
Applied changes in modeling plugins that are necessary for the new model analyzer (#722)

  • predictor has properties for the lower and upper limit of the predicted value
  • added views for predictors that show the limits (also added a new view for GeneticProgrammingModel that shows the size and height of the model)
  • Reintroduced TreeEvaluatorInjectors that read a PunishmentFactor and calculate the lower and upper limits for estimated values (limits are set in the tree evaluators)
  • Added operators to create Predictors. Changed modeling algorithms to use the predictors for the calculation of final model qualities and variable impacts (to be compatible with the new model analyzer the predictors use a very large PunishmentFactor)
  • replaced all private implementations of double.IsAlmost and use HL.Commons instead (see #733 r2324)
  • Implemented operator SolutionExtractor and moved BestSolutionStorer from HL.Logging to HL.Modeling (fixes #734)
File:
1 edited

Legend:

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

    r2319 r2328  
    9797      problemInjector.AddVariable(new HeuristicLab.Core.Variable("MaxNumberOfTrainingSamples", new IntData(5000)));
    9898
     99      HL2TreeEvaluatorInjector treeEvaluatorInjector = new HL2TreeEvaluatorInjector();
     100
    99101      IOperator shuffler = new DatasetShuffler();
    100102      shuffler.GetVariableInfo("ShuffleStart").ActualName = "TrainingSamplesStart";
     
    108110      seq.AddSubOperator(problemInjector);
    109111      seq.AddSubOperator(globalInjector);
     112      seq.AddSubOperator(treeEvaluatorInjector);
    110113      seq.AddSubOperator(shuffler);
    111114      seq.AddSubOperator(lrOperator);
     
    120123    private IOperator CreateGlobalInjector() {
    121124      VariableInjector injector = new VariableInjector();
    122       injector.AddVariable(new HeuristicLab.Core.Variable("PunishmentFactor", new DoubleData(10)));
     125      injector.AddVariable(new HeuristicLab.Core.Variable("PunishmentFactor", new DoubleData(1000)));
    123126      injector.AddVariable(new HeuristicLab.Core.Variable("TotalEvaluatedNodes", new DoubleData(0)));
    124       injector.AddVariable(new HeuristicLab.Core.Variable("TreeEvaluator", new HL2TreeEvaluator()));
    125127      injector.AddVariable(new HeuristicLab.Core.Variable("UseEstimatedTargetValue", new BoolData(false)));
    126128
     
    272274    }
    273275
    274 
    275276    protected internal virtual IAnalyzerModel CreateLRModel(IScope bestModelScope) {
    276277      IAnalyzerModel model = new AnalyzerModel();
Note: See TracChangeset for help on using the changeset viewer.