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()))
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)