incerto.shift.plot_feature_histograms#
- incerto.shift.plot_feature_histograms(ref, test, feature_ids=None, bins=30, show=True)[source]#
Overlay 1-D histograms for a handful of features.
- Parameters:
ref (
Tensor) – Reference distribution samples of shape (n, d)test (
Tensor) – Test distribution samples of shape (m, d)feature_ids (
Optional[Iterable[int]]) – Which feature indices to plot (default: first 5)bins (
int) – Number of histogram binsshow (
bool) – Whether to call plt.show() (default: True)
- Return type:
Figure- Returns:
The matplotlib Figure object for further customization