Exemple #1
0
def _retro_analyze_trial(trial_spec_path):
    '''Method to retro analyze a single trial given only a path to its spec'''
    trial_spec = util.read(trial_spec_path)
    meta_spec = trial_spec['meta']
    info_prepath = meta_spec['info_prepath']
    session_metrics_list = [util.read(f'{info_prepath}_s{s}_session_metrics_eval.pkl') for s in
                            range(meta_spec['max_session'])]
    analysis.analyze_trial(trial_spec, session_metrics_list)
Exemple #2
0
 def run(self):
     if self.spec['meta'].get('distributed') == False:
         session_metrics_list = self.run_sessions()
     else:
         session_metrics_list = self.run_distributed_sessions()
     metrics = analysis.analyze_trial(self.spec, session_metrics_list)
     self.close()
     # return metrics['scalar']
     return metrics