Repository navigation
Open
Labels
Description
Warning
Note to potential contributors: this is not a good issue to work on, please don't comment "can I work on it" or you may be banned from the repo.
There is NO action that needs to be taken for this issue atm - there are probably some questions around weights that need to be addressed first.
Describe the issue linked to the documentation
As discussed in #30564 it is probably worthwhile to add a 'sample weight' section in the user guide.
Here are some notable additions, that we thought were too long to include in the glossary entry:
- Examples of uses of sample weights
- in supervised learning one of the main reasons for weights is to account for the different size/time/exposure/... of each observation. We are assuming weights are inversely proportional to the variance of the target, e.g., we use exposure as weights in Poisson regression and non-normal loss and Tweedie regression on insurance claims, with longer exposure duration being weighted higher, as these would be considered more reliable, or lower variance. (details: DOC update and improve the
sample_weightentry in the glossary #30564 (comment), DOC update and improve thesample_weightentry in the glossary #30564 (comment)) - a nice collection of papers with examples of weight use here: DOC update and improve the
sample_weightentry in the glossary #30564 (comment)
- in supervised learning one of the main reasons for weights is to account for the different size/time/exposure/... of each observation. We are assuming weights are inversely proportional to the variance of the target, e.g., we use exposure as weights in Poisson regression and non-normal loss and Tweedie regression on insurance claims, with longer exposure duration being weighted higher, as these would be considered more reliable, or lower variance. (details: DOC update and improve the
- Should we try to use similar terms as other statistical packages (e.g., stata, julia) - "analytical weights", "frequency weights"... (stata reference http://www.stata.com/manuals13/u20.pdf#u20.23Weightedestimation , see section 20.23)
- Re-weighting for transfer learning (ref: DOC update and improve the
sample_weightentry in the glossary #30564 (review)) - Third-party libraries can also use
sample_weight-compatible estimators as building blocks to reduce a specific statistical task into a weighted regression or classification task
Suggest a potential alternative/fix
No response
Activity
youbos commentedon Oct 29, 2025
freesoulinempty commentedon Nov 1, 2025
jorgepaezcodes commentedon Nov 2, 2025
lesteve commentedon Nov 4, 2025
lucyleeow commentedon Nov 4, 2025