Download figures/f7_marginal.py from fahadhafeezofficial/clsa-code: direct link, hf CLI and curl.
- Browser
- Download file 772 Bytes
-
https://huggingface.co/datasets/fahadhafeezofficial/clsa-code/resolve/main/figures/f7_marginal.py
- Command line
-
hf download hf://datasets/fahadhafeezofficial/clsa-code/figures/f7_marginal.py
-
curl -L -o f7_marginal.py https://huggingface.co/datasets/fahadhafeezofficial/clsa-code/resolve/main/figures/f7_marginal.py
772 Bytes
| # Copyright (c) 2026 CLSA contributors | |
| # SPDX-License-Identifier: MIT | |
| """Figure 7: marginal decision change per additional rollout.""" | |
| from __future__ import annotations | |
| import matplotlib.pyplot as plt | |
| from common import load, save, style | |
| def main() -> None: | |
| style() | |
| res = load("e3_budget")["results"] | |
| curve = res.get("marginal", []) | |
| xs = [c["rollouts_per_candidate"] for c in curve] | |
| ys = [c["decision_change_rate"] for c in curve] | |
| fig, ax = plt.subplots(figsize=(3.6, 2.8)) | |
| ax.plot(xs, ys, marker="o", ms=3.5, lw=1.4, color="#1f4e79") | |
| ax.set_xlabel("Monte-Carlo rollouts per candidate") | |
| ax.set_ylabel("decision change vs single rollout") | |
| ax.set_xticks(xs) | |
| save(fig, "fig7_marginal") | |
| if __name__ == "__main__": | |
| main() | |