Description Usage Arguments Value
View source: R/useful_functions.R
Re-weighting to preserve the sum of weights in each binary class
1 |
weights |
Input weights (unnormalized). |
labels |
Binary labels of the data points corresponding to the input weights (labels should be 0/1). |
N_s |
Desired sum of weights corresponding to data points with labels equal to 1. |
N_b |
Desired sum of weights corresponding to data points with labels equal to 1. |
Normalized weights
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.