← Python API
vraven.decompiler · class

InterventionSpec

InterventionSpec(node_id: 'str', kind: 'InterventionKind', label: 'str | None' = None, feature_axis: 'int' = -1, direction: 'Tensor | None' = None, baseline: 'Tensor | float | None' = None, strength: 'float' = 1.0, coefficient: 'float | Tensor | None' = None, clamp_min: 'float | None' = None, clamp_max: 'float | None' = None, metadata: 'dict[str, Any]' = <factory>) -> None

InterventionSpec(node_id: 'str', kind: 'InterventionKind', label: 'str | None' = None, feature_axis: 'int' = -1, direction: 'Tensor | None' = None, baseline: 'Tensor | float | None' = None, strength: 'float' = 1.0, coefficient: 'float | Tensor | None' = None, clamp_min: 'float | None' = None, clamp_max: 'float | None' = None, metadata: 'dict[str, Any]' = <factory>)

Usage

from vraven.decompiler import InterventionSpec

value = InterventionSpec(...)

Methods

identifier(self) -> 'str'

Public method.

Source of truthThis page is generated from the checked-out public symbol, signature, and docstring. Pin the package version for reproducible work.