Skip to content

xwhy.core.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
 9
10
11
12
13
14
15
16
17
18
class ExplanationPipeline(ABC):
    """Abstract pipeline orchestrator for explanation process.

    Full implementation in later phases.
    """

    @abstractmethod
    def run(self, instance: Any, **kwargs: Any) -> BaseXWhyResult:  # noqa: ANN401
        """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
15
16
17
18
@abstractmethod
def run(self, instance: Any, **kwargs: Any) -> BaseXWhyResult:  # noqa: ANN401
    """Run the full explanation pipeline."""
    raise NotImplementedError("Subclasses must implement run method.")