-
-
Notifications
You must be signed in to change notification settings - Fork 101
Expand file tree
/
Copy pathconfig_types.py
More file actions
50 lines (37 loc) · 985 Bytes
/
config_types.py
File metadata and controls
50 lines (37 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contains semi-automatically generated non-complete model of config format.
# Please refer to documentation to define a full model
from __future__ import annotations
from pydantic.dataclasses import dataclass
from typing import Optional
@dataclass
class Telemetry:
progress: Progress
@dataclass
class Progress:
enabled: bool
logBest: int
logPopulation: int
dumpPopulation: bool
@dataclass
class Config:
termination: Termination
telemetry: Optional[Telemetry] = Telemetry(
progress=Progress(
enabled=True,
logBest=100,
logPopulation=1000,
dumpPopulation=False
)
)
environment: Optional[Environment] = None
@dataclass
class Termination:
maxTime: Optional[int] = None
maxGenerations: Optional[int] = None
@dataclass
class Logging:
enabled: bool
@dataclass
class Environment:
logging: Logging = Logging(enabled=True)
isExperimental: Optional[bool] = None