Changeset 14635 for branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.MachineLearning
- Timestamp:
- 02/01/17 18:25:28 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OptimizationNetworks/HeuristicLab.Networks.IntegratedOptimization.MachineLearning/FeatureSelectionNetwork.cs
r14625 r14635 60 60 61 61 var featureSelectionAlgorithm = CreateFeatureSelectionAlgorithm(); 62 //TO O configure FeatureSelectionProblem62 //TODO configure FeatureSelectionProblem 63 63 64 64 FeatureSelectionAlgorithmNode = new OrchestratedAlgorithmNode("Feature Selection"); … … 69 69 70 70 var regressionAlgorithm = CreateRegressionAlgorithm(); 71 //TODO set empty regres ion problem71 //TODO set empty regression problem 72 72 73 73 RegressionAlgorithmNode = new OrchestratedAlgorithmNode("Regression"); 74 74 RegressionAlgorithmNode.Algorithm = regressionAlgorithm; 75 RegressionAlgorithmNode.OrchestrationPort.ConnectedPort = Orchestrator.RegressionOrchestrationPort;75 Orchestrator.RegressionOrchestrationPort.ConnectedPort = RegressionAlgorithmNode.OrchestrationPort; 76 76 RegressionAlgorithmNode.OrchestrationPort.CloneParametersFromPort(Orchestrator.RegressionOrchestrationPort); 77 77 Nodes.Add(RegressionAlgorithmNode); … … 103 103 public void Prepare(bool clearRuns) { 104 104 var msg = FeatureSelectionAlgorithmNode.OrchestrationPort.PrepareMessage(); 105 msg.Values.Add(new MessageValue<EnumValue<OrchestrationMessage>>("OrchestrationMessage"));106 105 if (clearRuns) 107 106 msg["OrchestrationMessage"] = new EnumValue<OrchestrationMessage>(OrchestrationMessage.Prepare | OrchestrationMessage.ClearRuns); … … 116 115 117 116 var msg = FeatureSelectionAlgorithmNode.OrchestrationPort.PrepareMessage(); 118 msg.Values.Add(new MessageValue<EnumValue<OrchestrationMessage>>("OrchestrationMessage"));119 117 msg["OrchestrationMessage"] = new EnumValue<OrchestrationMessage>(OrchestrationMessage.Start); 120 118 FeatureSelectionAlgorithmNode.OrchestrationPort.ReceiveMessage(msg, new CancellationToken()); … … 122 120 public void Pause() { 123 121 var msg = FeatureSelectionAlgorithmNode.OrchestrationPort.PrepareMessage(); 124 msg.Values.Add(new MessageValue<EnumValue<OrchestrationMessage>>("OrchestrationMessage"));125 122 msg["OrchestrationMessage"] = new EnumValue<OrchestrationMessage>(OrchestrationMessage.Pause); 126 123 FeatureSelectionAlgorithmNode.OrchestrationPort.ReceiveMessage(msg, new CancellationToken()); … … 128 125 public void Stop() { 129 126 var msg = FeatureSelectionAlgorithmNode.OrchestrationPort.PrepareMessage(); 130 msg.Values.Add(new MessageValue<EnumValue<OrchestrationMessage>>("OrchestrationMessage"));131 127 msg["OrchestrationMessage"] = new EnumValue<OrchestrationMessage>(OrchestrationMessage.Stop); 132 128 FeatureSelectionAlgorithmNode.OrchestrationPort.ReceiveMessage(msg, new CancellationToken()); ;
Note: See TracChangeset
for help on using the changeset viewer.