Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/01/17 18:25:28 (8 years ago)
Author:
jkarder
Message:

#2205: worked on optimization networks

  • created default parameters for orchestration and evaluation ports
  • adapted FeatureSelectionNetwork
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.MachineLearning/FeatureSelectionNetwork.cs

    r14625 r14635  
    6060
    6161      var featureSelectionAlgorithm = CreateFeatureSelectionAlgorithm();
    62       //TOO configure FeatureSelectionProblem
     62      //TODO configure FeatureSelectionProblem
    6363
    6464      FeatureSelectionAlgorithmNode = new OrchestratedAlgorithmNode("Feature Selection");
     
    6969
    7070      var regressionAlgorithm = CreateRegressionAlgorithm();
    71       //TODO set empty regresion problem
     71      //TODO set empty regression problem
    7272
    7373      RegressionAlgorithmNode = new OrchestratedAlgorithmNode("Regression");
    7474      RegressionAlgorithmNode.Algorithm = regressionAlgorithm;
    75       RegressionAlgorithmNode.OrchestrationPort.ConnectedPort = Orchestrator.RegressionOrchestrationPort;
     75      Orchestrator.RegressionOrchestrationPort.ConnectedPort = RegressionAlgorithmNode.OrchestrationPort;
    7676      RegressionAlgorithmNode.OrchestrationPort.CloneParametersFromPort(Orchestrator.RegressionOrchestrationPort);
    7777      Nodes.Add(RegressionAlgorithmNode);
     
    103103    public void Prepare(bool clearRuns) {
    104104      var msg = FeatureSelectionAlgorithmNode.OrchestrationPort.PrepareMessage();
    105       msg.Values.Add(new MessageValue<EnumValue<OrchestrationMessage>>("OrchestrationMessage"));
    106105      if (clearRuns)
    107106        msg["OrchestrationMessage"] = new EnumValue<OrchestrationMessage>(OrchestrationMessage.Prepare | OrchestrationMessage.ClearRuns);
     
    116115
    117116      var msg = FeatureSelectionAlgorithmNode.OrchestrationPort.PrepareMessage();
    118       msg.Values.Add(new MessageValue<EnumValue<OrchestrationMessage>>("OrchestrationMessage"));
    119117      msg["OrchestrationMessage"] = new EnumValue<OrchestrationMessage>(OrchestrationMessage.Start);
    120118      FeatureSelectionAlgorithmNode.OrchestrationPort.ReceiveMessage(msg, new CancellationToken());
     
    122120    public void Pause() {
    123121      var msg = FeatureSelectionAlgorithmNode.OrchestrationPort.PrepareMessage();
    124       msg.Values.Add(new MessageValue<EnumValue<OrchestrationMessage>>("OrchestrationMessage"));
    125122      msg["OrchestrationMessage"] = new EnumValue<OrchestrationMessage>(OrchestrationMessage.Pause);
    126123      FeatureSelectionAlgorithmNode.OrchestrationPort.ReceiveMessage(msg, new CancellationToken());
     
    128125    public void Stop() {
    129126      var msg = FeatureSelectionAlgorithmNode.OrchestrationPort.PrepareMessage();
    130       msg.Values.Add(new MessageValue<EnumValue<OrchestrationMessage>>("OrchestrationMessage"));
    131127      msg["OrchestrationMessage"] = new EnumValue<OrchestrationMessage>(OrchestrationMessage.Stop);
    132128      FeatureSelectionAlgorithmNode.OrchestrationPort.ReceiveMessage(msg, new CancellationToken()); ;
Note: See TracChangeset for help on using the changeset viewer.