Ground truth
auto_circuit.prune_algos.ground_truth
Attributes
Classes
Functions
ground_truth_prune_scores
ground_truth_prune_scores(model: PatchableModel, dataloader: PromptDataLoader, official_edges: Optional[Set[Edge]]) -> PruneScores
Assigns 1
for edges that are in the ground truth circuit, 0
otherwise.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
model |
PatchableModel
|
The model on which this circuit was discovered. |
required |
dataloader |
PromptDataLoader
|
Not used. |
required |
official_edges |
Optional[Set[Edge]]
|
The edges of the circuit. |
required |
Returns:
Type | Description |
---|---|
PruneScores
|
An ordering of the edges by importance to the task. Importance is equal to the absolute value of the score assigned to the edge. |