-
Notifications
You must be signed in to change notification settings - Fork 9
/
experiment.py
44 lines (31 loc) · 1.11 KB
/
experiment.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
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = "Karel Roots"
"""
Class for holding information about the experiment to be performed.
Includes trial type (0 or 1), experiment type (String), list of models to evaluate,
nr of epochs to train the classifiers, percentage of data to use for validation and
percentage of data to use for testing.
"""
class Experiment(object):
def __init__(self, trial_type, exp_type, models, epochs, val_split, test_split):
self.trial_type = trial_type
self.exp_type = exp_type
self.models = models
self.epochs = epochs
self.val_split = val_split
self.test_split = test_split
def get_model(self, model):
return self.models[model]
def get_models(self):
return self.models
def get_trial_type(self):
return self.trial_type
def get_exp_type(self):
return self.exp_type
def get_epochs(self):
return self.epochs
def get_val_split(self):
return self.val_split
def get_test_split(self):
return self.test_split