-
Notifications
You must be signed in to change notification settings - Fork 0
/
experiment_setting.py
32 lines (24 loc) · 1.16 KB
/
experiment_setting.py
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
from dataclasses import dataclass
from ndfa.ndfa_model_hyper_parameters import NDFAModelHyperParams, NDFAModelTrainingHyperParams
from ndfa.code_tasks.code_task_properties import CodeTaskProperties
from ndfa.nn_utils.model_wrapper.dataset_properties import DatasetProperties
from ndfa.misc.configurations_utils import conf_field, DeterministicallyHashable
__all__ = ['ExperimentSetting']
@dataclass
class ExperimentSetting(DeterministicallyHashable):
task: CodeTaskProperties = conf_field(
default_factory=CodeTaskProperties,
description="Parameters of the code-related task to tackle.",
arg_prefix='task')
model_hyper_params: NDFAModelHyperParams = conf_field(
default_factory=NDFAModelHyperParams,
description="NDFA model hyper-parameters.",
arg_prefix='hp')
train_hyper_params: NDFAModelTrainingHyperParams = conf_field(
default_factory=NDFAModelTrainingHyperParams,
description="NDFA model training hyper-parameters.",
arg_prefix='trn')
dataset: DatasetProperties = conf_field(
default_factory=DatasetProperties,
description="Dataset properties.",
arg_prefix='ds')