There are two resampling methods already implemented (see documentation) that allow different populations of jets to be resampled to match a reference population distribution.
For the task of jet pt/mass regression, it is important to reweight the pt/mass distribution to be uniform. To implement this, a new target option named "uniform" can be supported that uses the same counter/pdf methods, but constructs a flat histogram on the fly based on the specified binning. Some additional protections should be imposed to prevent sampling in empty bins and limits on the number of resamples of a given jet.
There are two resampling methods already implemented (see documentation) that allow different populations of jets to be resampled to match a reference population distribution.
For the task of jet pt/mass regression, it is important to reweight the pt/mass distribution to be uniform. To implement this, a new target option named "uniform" can be supported that uses the same counter/pdf methods, but constructs a flat histogram on the fly based on the specified binning. Some additional protections should be imposed to prevent sampling in empty bins and limits on the number of resamples of a given jet.