← Python API
vraven.decompiler · class

Concept

Concept(id: 'str', node_id: 'str', node_name: 'str', depth: 'float', index: 'int', feature_axis: 'int', direction: 'Tensor', mean_activation: 'float', std_activation: 'float', activation_sparsity: 'float', score_variance: 'float', top_samples: 'tuple[int, ...]', preferred_class: 'int | None' = None, class_effect_size: 'float | None' = None, semantic_label: 'str | None' = None, semantic_confidence: 'float' = 0.0, grounding: 'list[GroundingEvidence]' = <factory>, metadata: 'dict[str, Any]' = <factory>) -> None

Concept(id: 'str', node_id: 'str', node_name: 'str', depth: 'float', index: 'int', feature_axis: 'int', direction: 'Tensor', mean_activation: 'float', std_activation: 'float', activation_sparsity: 'float', score_variance: 'float', top_samples: 'tuple[int, ...]', preferred_class: 'int | None' = None, class_effect_size: 'float | None' = None, semantic_label: 'str | None' = None, semantic_confidence: 'float' = 0.0, grounding: 'list[GroundingEvidence]' = <factory>, metadata: 'dict[str, Any]' = <factory>)

Usage

from vraven.decompiler import Concept

value = Concept(...)

Methods

from_dict(payload: 'Mapping[str, Any]') -> "'Concept'"

Public method.

to_dict(self, *, include_direction: 'bool' = True) -> '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.