Skip to content

Commit 25ed88a

Browse files
committed
Add fuzz type to config
1 parent fa2eb6f commit 25ed88a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

delphi/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ def scorer_postprocess(result, score_dir):
256256
n_examples_shown=run_cfg.num_examples_per_scorer_prompt,
257257
verbose=run_cfg.verbose,
258258
log_prob=run_cfg.log_probs,
259+
fuzz_type=run_cfg.fuzz_type,
259260
)
260261
elif scorer_name == "detection":
261262
scorer = DetectionScorer(

delphi/config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ class RunConfig(Serializable):
160160
)
161161
"""Scorer methods to score latent explanations. Options are 'fuzz', 'detection', and
162162
'simulation'."""
163+
fuzz_type: Literal["default", "active"] = "default"
164+
"""Type of fuzzing to use for the fuzz scorer. Default uses non-activating
165+
examples and highlights n_incorrect tokens. Active uses activating examples
166+
and highlights non-activating tokens."""
163167

164168
name: str = ""
165169
"""The name of the run. Results are saved in a directory with this name."""

0 commit comments

Comments
 (0)