Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2366


Ignore:
Timestamp:
09/16/09 17:15:44 (15 years ago)
Author:
gkronber
Message:

Fixed incompatibility between CEDMA server and time-series algorithms. #746 (CEDMA server is not compatible with new data-modeling algorithms)

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Server/3.3/SimpleDispatcher.cs

    r2363 r2366  
    187187
    188188      if (problem.LearningTask == LearningTask.TimeSeries) {
    189         algo.ProblemInjector.GetVariable("Autoregressive").GetValue<BoolData>().Data = problem.AutoRegressive;
    190         algo.ProblemInjector.GetVariable("MinTimeOffset").GetValue<IntData>().Data = problem.MinTimeOffset;
    191         algo.ProblemInjector.GetVariable("MaxTimeOffset").GetValue<IntData>().Data = problem.MaxTimeOffset;
     189        ITimeSeriesAlgorithm timeSeriesAlgo = (ITimeSeriesAlgorithm)algo;
     190        timeSeriesAlgo.MinTimeOffset = problem.MinTimeOffset;
     191        timeSeriesAlgo.MaxTimeOffset = problem.MaxTimeOffset;
    192192        if (problem.AutoRegressive) {
    193193          allowedFeatures.Add(new IntData(targetVariable));
  • trunk/sources/HeuristicLab.Modeling/3.2/ITimeSeriesAlgorithm.cs

    r1857 r2366  
    2727namespace HeuristicLab.Modeling {
    2828  public interface ITimeSeriesAlgorithm : IAlgorithm {
     29    int MinTimeOffset { get; set; }
     30    int MaxTimeOffset { get; set; }
    2931  }
    3032}
Note: See TracChangeset for help on using the changeset viewer.