Skip to content

pipeline

Explanation pipeline abstractions.

ExplanationPipeline

Bases: ABC

Abstract pipeline orchestrator for explanation process.

Full implementation in later phases.

Source code in src/xwhy/core/pipeline.py
 8
 9
10
11
12
13
14
15
16
17
class ExplanationPipeline(ABC):
    """Abstract pipeline orchestrator for explanation process.

    Full implementation in later phases.
    """

    @abstractmethod
    def run(self, instance: object, **kwargs: object) -> BaseXWhyResult:
        """Run the full explanation pipeline."""
        raise NotImplementedError("Subclasses must implement run method.")

run(instance, **kwargs) abstractmethod

Run the full explanation pipeline.

Source code in src/xwhy/core/pipeline.py
14
15
16
17
@abstractmethod
def run(self, instance: object, **kwargs: object) -> BaseXWhyResult:
    """Run the full explanation pipeline."""
    raise NotImplementedError("Subclasses must implement run method.")