File size: 338 Bytes
fa2cb8a |
1 2 3 4 5 6 7 8 9 10 |
from .crew import ShapCrew
def generate_report(target_variable: str, image_path: str) -> str:
"""Generate a SHAP explanation report based on user input"""
crew = ShapCrew().crew()
result = crew.kickoff(inputs={
"target_variable": target_variable,
"image_path": image_path
})
return str(result).strip() |