# Trajectories The `trajectories/` folder is the default location that experiment results (invocations of `run.py`) will be written to. At a high level, the experiments folder is organized in the following manner: ``` trajectories โ”œโ”€โ”€ ๐Ÿ‘ฉโ€๐Ÿ’ป โ”‚ โ”œโ”€โ”€ ๐Ÿงช โ”‚ โ”‚ โ”œโ”€โ”€ all_preds.jsonl โ”‚ โ”‚ โ”œโ”€โ”€ args.yaml โ”‚ โ”‚ โ”œโ”€โ”€ *.html (Webpage Files) โ”‚ โ”‚ โ””โ”€โ”€ *.traj (Trajectories) โ”‚ โ””โ”€โ”€ ๐Ÿงช โ”‚ โ”œโ”€โ”€ all_preds.jsonl โ”‚ โ”œโ”€โ”€ args.yaml โ”‚ โ”œโ”€โ”€ *.html (Webpage Files) โ”‚ โ””โ”€โ”€ *.traj (Trajectories) โ”œโ”€โ”€ ๐Ÿ‘จโ€๐Ÿ’ป โ”‚ โ”œโ”€โ”€ ๐Ÿงช โ”‚ โ”‚ โ””โ”€โ”€ ... โ”‚ โ””โ”€โ”€ ๐Ÿงช โ”‚ โ””โ”€โ”€ ... ... ``` Where every experiment follows the pattern `trajectories//`. The `` is automatically inferred from your system, and the `experiment name` is inferred from the arguments of the `run.py`. ## How an Experiment Folder is Generated Each call to `run.py` produces a single `trajectories//` folder containing the following assets: * `all_preds.jsonl`: A single file containing all of the predictions generated for the experiment (1 prediction per task instance), where each line is formatted as: ``` { "instance_id": "", "model_patch": "<.patch file content string>", "model_name_or_path": "", } ``` * `args.yaml`: A summary of the configurations for the experiment run. * `.traj`: A `.json` formatted file containing the (thought, action, observation) turns generated by SWE-agent towards solving ``. * `.html`: An `.html` single webpage render of the trajectory, which can be directly opened in the browser for easier viewing of the trajectory. > โš ๏ธ Notes > * Evaluation is not completed by `run.py`, it is a separate step. > * `all_preds.jsonl` can be referenced directly into `evaluation/run_eval.sh` to run evaluation.