vraven.decompiler · class
ContrastiveExplanation
ContrastiveExplanation(target: 'int', alternative: 'int | None', target_label: 'str', alternative_label: 'str', programme_margin: 'float', supporting: 'list[ContrastiveEvidence]', opposing: 'list[ContrastiveEvidence]', decisive_depth: 'float | None', cumulative_by_depth: 'list[tuple[float, float]]', plain_english: 'str', limitations: 'tuple[str, ...]', metadata: 'dict[str, Any]' = <factory>) -> NoneContrastiveExplanation(target: 'int', alternative: 'int | None', target_label: 'str', alternative_label: 'str', programme_margin: 'float', supporting: 'list[ContrastiveEvidence]', opposing: 'list[ContrastiveEvidence]', decisive_depth: 'float | None', cumulative_by_depth: 'list[tuple[float, float]]', plain_english: 'str', limitations: 'tuple[str, ...]', metadata: 'dict[str, Any]' = <factory>)
Usage
from vraven.decompiler import ContrastiveExplanation
value = ContrastiveExplanation(...)
Methods
to_dict(self) -> 'dict[str, Any]'
Public method.
Source of truthThis page is generated from the checked-out public symbol, signature, and docstring. Pin the package version for reproducible work.