We discuss the normalization bias in our bias notebook.
It can be of interest in some cases to normalize a variable not on the entire sample, but within specific subgroups:
For this, we should allow a variable batch_key to be passed with ehrapy's normalization functions, allowing for very concise control over per-batch normalization.
Towards bias mitigation, can be considerd part of #647
Description of feature
We discuss the normalization bias in our bias notebook.
It can be of interest in some cases to normalize a variable not on the entire sample, but within specific subgroups:
For this, we should allow a variable
batch_key
to be passed with ehrapy's normalization functions, allowing for very concise control over per-batch normalization.Towards bias mitigation, can be considerd part of #647