Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/22/09 13:47:46 (15 years ago)
Author:
gkronber
Message:

Added "Set for all" button to simplify CEDMA algorithm configuration. #754

File:
1 edited

Legend:

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

    r2377 r2378  
    125125          }
    126126        }
     127      }
     128    }
     129
     130   
     131    private void setAlgorithmDefault_Click(object sender, EventArgs e) {
     132      foreach (string targetVar in dispatcher.TargetVariables) {
     133        ProblemSpecification spec = dispatcher.GetProblemSpecification(targetVar);
     134        spec.LearningTask = selectedSpec.LearningTask;
     135        spec.MinTimeOffset = selectedSpec.MinTimeOffset;
     136        spec.MaxTimeOffset = selectedSpec.MaxTimeOffset;
     137        spec.AutoRegressive = selectedSpec.AutoRegressive;
     138        var allowedAlgos = dispatcher.GetAllowedAlgorithms(selectedSpec.TargetVariable);
     139        foreach(var algo in allowedAlgos)
     140          dispatcher.EnableAlgorithm(spec.TargetVariable, algo);
    127141      }
    128142    }
     
    226240      return y0 > x1;
    227241    }
     242
    228243  }
    229244}
Note: See TracChangeset for help on using the changeset viewer.