Case-Explainer

API Reference

  • CaseExplainer
    • CaseExplainer
      • CaseExplainer.__init__()
      • CaseExplainer.explain_instance()
      • CaseExplainer.explain_batch()
      • CaseExplainer.get_training_info()
    • Core Methods
      • Building the Explainer
        • CaseExplainer.__init__()
      • Explaining Predictions
        • CaseExplainer.explain_instance()
        • CaseExplainer.explain_batch()
    • Example Usage
      • Basic Example
      • Batch Explanations
      • Working with Metadata
    • Configuration Options
      • Algorithm Selection
      • Feature Scaling
      • Class Weights
    • Notes
    • See Also
  • Explanation Objects
    • Explanation
      • Explanation
        • Explanation.__init__()
        • Explanation.get_predicted_class_name()
        • Explanation.get_true_class_name()
        • Explanation.is_correct()
        • Explanation.summary()
        • Explanation.to_dict()
        • Explanation.plot()
      • Key Attributes
        • Explanation.correspondence
        • Explanation.correspondence_interpretation
        • Explanation.neighbors
        • Explanation.predicted_class
        • Explanation.true_class
      • Methods
        • Explanation.is_correct()
        • Explanation.summary()
        • Explanation.to_dict()
        • Explanation.plot()
    • Neighbor
      • Neighbor
        • Neighbor.__init__()
      • Key Attributes
        • Neighbor.index
        • Neighbor.distance
        • Neighbor.label
        • Neighbor.features
        • Neighbor.metadata
    • Example Usage
      • Accessing Explanation Details
      • Inspecting Neighbors
      • Exporting Explanations
      • Generating Summaries
      • Visualizing Explanations
      • Batch Analysis
    • See Also
  • Metrics
    • Functions
      • compute_correspondence
        • compute_correspondence()
      • euclidean_distance
        • euclidean_distance()
    • Theory
      • Correspondence Metric
        • Mathematical Definition
        • Interpretation
      • Distance Weighting
    • Example Usage
      • Computing Correspondence
      • Distance Computation
      • Understanding Correspondence Behavior
      • Class Weights
    • Notes
    • See Also

Additional Information

  • Citation
    • BibTeX
    • Related Publications
    • Acknowledgments
  • License
    • MIT License
    • What This Means
Case-Explainer
  • Overview: module code

All modules for which code is available

  • case_explainer.explainer
  • case_explainer.explanation
  • case_explainer.metrics

© Copyright 2025, Paul Whitten, Francis Wolff, Chris Papachristou.

Built with Sphinx using a theme provided by Read the Docs.