From 6f779c96b2af025fff3655c409d7381bb0d334cf Mon Sep 17 00:00:00 2001 From: kigland Date: Mon, 9 Mar 2026 13:00:21 +0800 Subject: [PATCH] fix: clarify trigger_len default discrepancy between constructor and config Constructor default is 10, config.yaml recommends 15. Added explicit note so users know to pass the parameter when using the programmatic API. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 68efcf4..38214de 100644 --- a/README.md +++ b/README.md @@ -192,7 +192,7 @@ print(f"Optimized trigger: {adversarial_trigger}") | `popsize` | 64 | CMA-ES population size per generation | | `sigma` | 0.5 | Initial step-size for CMA-ES | -> **Note:** `config.yaml` provides recommended defaults. Constructor and method arguments override config values when specified explicitly. +> **Note:** The constructor defaults (e.g., `trigger_len=10`) may differ from the `config.yaml` recommended values (e.g., `trigger_length: 15`). When calling the API directly, pass parameters explicitly as shown in the example above. ## Compute Requirements