Task that generates an interactive Streamlit dashboard for visualizing and exploring causal effect analysis results from the CausalEffect task.
This task creates a dashboard that allows users to interactively explore the Conditional Average Treatment Effects (CATE) computed by the CausalEffect task. The dashboard provides multiple visualization modes and filtering options to help understand the causal relationships in your data.
What this task does:
- Takes the results folder from a CausalEffect task as input
- Generates an interactive Streamlit application
- Provides multiple visualization tabs for exploring causal effects
- Allows dynamic filtering and selection of results
- Displays heatmaps, bar plots, and clustermaps of causal effects
Input Requirements:
- folder: The results folder generated by a CausalEffect task, containing, for each target variable combination:
- CSV files with causal effect estimates
- PNG heatmap files
Dashboard Features: The generated dashboard includes:
Interactive Filters:
- Choose target variable combinations to display
- Filter treatments (automatically excludes treatments with zero effects)
- Select specific targets within combinations
Visualization Tabs:
- *� Heatmap: Interactive color-coded matrix showing treatment effects
- *� Barplot: Grouped bar chart comparing effects across treatments and targets
- *� Clustermap: Hierarchically clustered heatmap for pattern discovery
Data Transformations:
- Automatic log transformation of effect sizes for better visualization
- Color scaling centered around zero to highlight positive/negative effects
- Statistical filtering to focus on meaningful non-zero effects
Output:
- streamlit_app: A StreamlitResource
Usage Workflow:
- Run CausalEffect task on your data to generate causal effect estimates
- Connect the results folder to this GenerateCausalEffectDashboard task
- Launch the generated Streamlit app to interactively explore your results
- Use the dashboard to identify significant causal relationships and patterns
Input
Folder
Output
Streamlit app
Streamlit app