Current status
The plot_feat method provides 1D distributions for features in the form of histograms and KDEs, and also computes the mean and standard deviations of the distributions and their uncertainties.
Problems
- Whilst the method accepts a weight argument, in order to plot weighted KDEs the data is sampled with replacement according to probabilities given by the (normalised weights).
- This is a bit of a hack. The next release of Seaborn should include the ability to plot weighted KDEs (PR), so the resampling will no longer be necessary
- This resampling method also means that all the data must have non-negative weights, which is not always the case in HEP.
Solution
Once latest version of Seaborn is released update plot_feat to use weighted KDEs. This will require:
- Depreciate some arguments related to data resampling
- Changes to the moments computation code to handle weighted data (they're currently computed on the resampled data, and so do not perform weighted computations)
- Update of
plot_kdes_from_bs to use lineplot, since tsplot was removed in Seaborn V10
Current status
The
plot_featmethod provides 1D distributions for features in the form of histograms and KDEs, and also computes the mean and standard deviations of the distributions and their uncertainties.Problems
Solution
Once latest version of Seaborn is released update
plot_featto use weighted KDEs. This will require:plot_kdes_from_bsto uselineplot, sincetsplotwas removed in Seaborn V10