Last change
on this file since 2906 was
2290,
checked in by gkronber, 15 years ago
|
- introduced a variablename to index mapping for SVM models (to make sure we can use the model for prediction in the model analyzer)
- added support to enable and disable algorithms in the dispatcher and removed DispatcherBase
- fixed bugs when calculating variable impacts and reading the final model of GP algorithms
#722 (IModel should provide a Predict() method to get predicted values for an input vector)
|
File size:
1.1 KB
|
Rev | Line | |
---|
[2088] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.ComponentModel;
|
---|
| 4 | using System.Drawing;
|
---|
| 5 | using System.Data;
|
---|
| 6 | using System.Linq;
|
---|
| 7 | using System.Text;
|
---|
| 8 | using System.Windows.Forms;
|
---|
| 9 | using HeuristicLab.Core;
|
---|
| 10 |
|
---|
| 11 | namespace HeuristicLab.CEDMA.Server {
|
---|
| 12 | public partial class ExecuterView : ViewBase {
|
---|
| 13 | private ExecuterBase executer;
|
---|
[2094] | 14 | public ExecuterView(ExecuterBase executer)
|
---|
| 15 | : base() {
|
---|
[2088] | 16 | this.executer = executer;
|
---|
| 17 | InitializeComponent();
|
---|
[2094] | 18 | maxActiveJobs.Value = executer.MaxActiveJobs;
|
---|
| 19 | executer.Changed += (sender, args) => UpdateControls();
|
---|
[2088] | 20 | }
|
---|
| 21 |
|
---|
[2094] | 22 | protected override void UpdateControls() {
|
---|
| 23 | if (InvokeRequired) Invoke((Action)UpdateControls);
|
---|
| 24 | else {
|
---|
| 25 | base.UpdateControls();
|
---|
[2290] | 26 | finishedTextBox.Text = executer.StoredJobs+" ("+executer.CalculatedJobs+")";
|
---|
[2094] | 27 | maxActiveJobs.Value = executer.MaxActiveJobs;
|
---|
| 28 | jobsList.DataSource = executer.GetJobs();
|
---|
| 29 | jobsList.Refresh();
|
---|
| 30 | }
|
---|
[2088] | 31 | }
|
---|
| 32 |
|
---|
[2094] | 33 | private void maxActiveJobs_ValueChanged(object sender, EventArgs e) {
|
---|
[2088] | 34 | executer.MaxActiveJobs = Convert.ToInt32(maxActiveJobs.Value);
|
---|
| 35 | }
|
---|
| 36 | }
|
---|
| 37 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.