예제 #1
0
 def analysis(self, tasks, results):
     results = run_parallel(self._analysis, list(zip(tasks, results)))
     return pd.DataFrame(results).set_index(
         list(tasks[0]["extra"]["context_vars"].keys()))
예제 #2
0
 def optimize(self, *args, **kwargs):
     return run_parallel(run_bt, self._tasks, self, *args, **kwargs)
 def analysis(self, tasks, results):
     results = run_parallel(self._analysis, list(zip(tasks, results)))
     return pd.DataFrame(results)