@@ -13,28 +13,28 @@ namespace SharpNeat.Domains.IPD
13
13
{
14
14
partial class IPDDomain : AbstractDomainView
15
15
{
16
- public override Size WindowSize => new Size ( _tableSize . Width + _graphSize . Width + 50 , 90 + Math . Max ( _tableSize . Height , _graphSize . Height ) ) ;
16
+ public override Size WindowSize => new Size ( _tableSize . Width + _graphSize . Width + 50 , 120 + Math . Max ( _tableSize . Height , _graphSize . Height ) ) ;
17
17
18
18
private IGenomeDecoder < NeatGenome , IBlackBox > _genomeDecoder ;
19
19
private IPDExperiment . Info _info ;
20
20
private IPDPlayer [ ] _players ;
21
21
private IPDGame [ , ] _games ;
22
-
23
- private System . Windows . Forms . Label _label ;
22
+
24
23
private Size _labelSize = new Size ( 1400 , 30 ) ;
25
- private Point _labelLocation = new Point ( 10 , 10 ) ;
24
+ private Point _label1Location = new Point ( 10 , 10 ) ;
25
+ private Point _label2Location = new Point ( 10 , 40 ) ;
26
26
27
27
private DataGridView _table ;
28
28
private Size _tableSize = new Size ( 700 , 700 ) ;
29
- private Point _tableLocation = new Point ( 10 , 40 ) ;
29
+ private Point _tableLocation = new Point ( 10 , 70 ) ;
30
30
private ToolStripMenuItem _history ;
31
31
private ToolStripMenuItem _save ;
32
32
private DataGridViewColumn _cumulative ;
33
33
private DataGridViewColumn _rankings ;
34
34
35
35
private ZedGraphControl _graphArchive ;
36
36
private Size _graphSize = new Size ( 700 , 700 ) ;
37
- private Point _graphLocation = new Point ( 720 , 40 ) ;
37
+ private Point _graphLocation = new Point ( 720 , 70 ) ;
38
38
39
39
public IPDDomain ( IGenomeDecoder < NeatGenome , IBlackBox > genomeDecoder , ref IPDExperiment . Info info )
40
40
{
@@ -95,23 +95,50 @@ public override void RefreshView(object genome)
95
95
96
96
private void CreateInfoLabel ( )
97
97
{
98
- _label = new System . Windows . Forms . Label ( ) ;
99
- _label . Size = _labelSize ;
100
- _label . Location = _labelLocation ;
101
- _label . Font = new Font ( _label . Font . FontFamily , 12 ) ;
98
+ var label1 = new System . Windows . Forms . Label ( ) ;
99
+ label1 . Size = _labelSize ;
100
+ label1 . Location = _label1Location ;
101
+ label1 . Font = new Font ( label1 . Font . FontFamily , 12 ) ;
102
102
103
- _label . Text = "Generation "
103
+ label1 . Text =
104
+ "Generation "
104
105
+ _info . CurrentGeneration
105
- + ", <"
106
- + _info . EvaluationMode
107
- + "> Evaluation Mode, <"
108
- + _info . NoveltyMetric
109
- + "> Novelty Metric with KNN-"
110
- + _info . NoveltyK
111
- + ", can look back t-"
112
- + _info . InputCount / 2
113
- + " steps in history" ;
114
- Controls . Add ( _label ) ;
106
+ + "; "
107
+ + _info . Evaluations ( )
108
+ + " evaluations; "
109
+ + _info . PopulationSize
110
+ + " genomes; "
111
+ + _info . NumberOfGames
112
+ + " iterated games per opponent" ;
113
+
114
+ var label2 = new System . Windows . Forms . Label ( ) ;
115
+ label2 . Size = _labelSize ;
116
+ label2 . Location = _label2Location ;
117
+ label2 . Font = new Font ( label2 . Font . FontFamily , 10 ) ;
118
+
119
+ if ( _info . EvaluationMode == IPDExperiment . EvaluationMode . Novelty )
120
+ {
121
+ label2 . Text =
122
+ "("
123
+ + _info . EvaluationMode
124
+ + ") Evaluation Mode, ("
125
+ + _info . NoveltyMetric
126
+ + ") Novelty Metric with KNN-"
127
+ + _info . NoveltyK
128
+ + ", memory-"
129
+ + _info . InputCount / 2 ;
130
+ }
131
+ else
132
+ {
133
+ label2 . Text =
134
+ "("
135
+ + _info . EvaluationMode
136
+ + ") Evaluation Mode, memory-"
137
+ + _info . InputCount / 2 ;
138
+ }
139
+
140
+ Controls . Add ( label1 ) ;
141
+ Controls . Add ( label2 ) ;
115
142
}
116
143
117
144
private void CreateArchiveGraph ( )
@@ -188,7 +215,7 @@ private void UpdateArchiveGraph()
188
215
ar . Line . Width = 3 ;
189
216
190
217
var t = g . AddCurve ( "Top Score" , topScore , Color . Purple , SymbolType . Square ) ;
191
- t . Line . Width = 3 ;
218
+ t . Line . Width = 2 ;
192
219
193
220
var s = g . AddCurve ( "Score" , ii , score , Color . Maroon , SymbolType . HDash ) ;
194
221
s . Line . IsVisible = false ;
0 commit comments