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
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
def get_path(self): return Paths.rep_dir(self.exp_name, self.conf, self.dataset, self.iter_number, get_only=True)
def path(self): return Paths.rep_dir(*self.info, get_only=True)
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