INNER CODE UNIT · Python

get_trajectory_path

Future-House/BixBench · bixbench/generate_trajectories.py:257

    def get_trajectory_path(self, problem_id: str) -> Path:
        """Get the path to the trajectory for a given problem ID.

        Args:
            problem_id: The problem ID

        Returns:
            Path: The path to the trajectory
        """
        if self.replica_id is not None:
            return (
                self.config.local_trajectories_dir
                / f"{problem_id}_replica_{self.replica_id}.json"
            )
        return self.config.local_trajectories_dir / f"{problem_id}.json"

    def environment_factory(self, question: dict[str, Any]) -> DataAnalysisEnv:
        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…