torch_concepts.nn.functional.linear_equation_expl¶
- linear_equation_expl(concept_weights: Tensor, bias: Tensor | None = None, concept_names: Dict[int, List[str]] | None = None) List[Dict[str, Dict[str, str]]][source]¶
Extract linear equations from decoded equations embeddings as strings. :param concept_weights: Equation embeddings with shape (batch_size,
memory_size, n_concepts, n_tasks).