Esempio n. 1
0
 def __init__(self, exp_name, conf, dataset, rep_i, strategy_name):
     self.strategy_name = strategy_name
     self.filenames = os.listdir(
         os.path.join(
             Paths.rep_dir(exp_name, conf, dataset, rep_i, get_only=True),
             strategy_name))
     return
Esempio n. 2
0
 def __init__(self, exp_name, conf, dataset, rep_dir):
     self.rep_i = Paths.rep_idx_from_dir_name(rep_dir)
     self.strategies = [
         StrategyResults(exp_name, conf, dataset, self.rep_i, strategy_name)
         for strategy_name in Paths.list_only_dirs(
             Paths.rep_dir(
                 exp_name, conf, dataset, self.rep_i, get_only=True))
     ]
     self.details = (exp_name, conf, dataset, self.rep_i)
     return
Esempio n. 3
0
 def get_path(self):
     return Paths.rep_dir(self.exp_name,
                          self.conf,
                          self.dataset,
                          self.iter_number,
                          get_only=True)
Esempio n. 4
0
 def path(self):
     return Paths.rep_dir(*self.info, get_only=True)
Esempio n. 5
0
 def __init__(self, exp_name, conf, dataset, rep_i, strategy_name):
     self.strategy_name = strategy_name
     self.dir = join(
         Paths.rep_dir(exp_name, conf, dataset, rep_i, get_only=True),
         strategy_name)
     return