Skip to content

feat: Add interpret library and explanation example - #24

Draft
google-labs-jules[bot] wants to merge 4 commits into
masterfrom
fix/gitignore-issue-11-1
Draft

feat: Add interpret library and explanation example#24
google-labs-jules[bot] wants to merge 4 commits into
masterfrom
fix/gitignore-issue-11-1

Conversation

@google-labs-jules

Copy link
Copy Markdown

This PR introduces the interpret library to the project to enable model explainability.

It includes two main changes:

  1. Dependency Installation:

    • The run_analysis.sh script has been updated to pip install the interpret library and its necessary dependency, lime.
  2. Example Script:

    • A new script, data_and_python/run_explanation_interpret.py, has been added.
    • This script serves as a self-contained example of how to:
      • Load and preprocess the fNIRS data.
      • Train a RandomForest model.
      • Use interpret's LIME explainer to generate and visualize local explanations for model predictions.

This provides a foundation for further model interpretation and debugging tasks.

google-labs-jules Bot and others added 3 commits August 25, 2025 00:29
This commit integrates the `interpret` library into the project.

The `run_analysis.sh` script is updated to install `interpret` and its dependency `lime`.

A new example script, `run_explanation_interpret.py`, is added to demonstrate how to use `interpret`'s LIME explainer on a model trained with the project's data pipeline. This provides a starting point for model explainability work.
Adds a specific rule to `.gitignore` for `/conditional_lockup_contract/Cargo.lock` to ensure it is explicitly ignored.

@mikeystever mikeystever left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the cargo lock also a printout interpretation of what the graphs mean and how they are to be understood and why thats relevant and connected with the rest of the app

Adds a detailed printout to the `run_explanation_interpret.py` script to explain the LIME visualization to the user.

This addresses the main feedback from the review on PR #24.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants