Contents
Plotting¶
- plotting.plotting.single_sample_plot(factual, counterfactual, data, figsize=(7, 7))¶
Create a bar plot for a single sample.
- Parameters
- factuals: pd.DataFrame
DataFrame containing the factuals.
- counterfactuals: pd.DataFrame
DataFrame containing the counterfactuals corresponding to above factuals
- data: carla.data.api.Data
Dataset object. Used for column information.
- figsize: tuple(int)
Figure size.
- plotting.plotting.summary_plot(factuals, counterfactuals, data, topn=5, figsize=(15, 7))¶
Create a swarmplot for the continuous features, and a stripplot for the categorical features.
- Parameters
- factuals: pd.DataFrame
DataFrame containing the factuals.
- counterfactuals: pd.DataFrame
DataFrame containing the counterfactuals corresponding to above factuals
- data: carla.data.api.Data
Dataset object. Used for column information.
- topn: int
Number of most important features to use.
- figsize: tuple(int)
Figure size.