Fix duplication of "if"
Add comment about the imputation per sample
Fix consistency when calling ma.mean and ma.median
Add comment in a test
Fix variable name (mf -> most_frequent)
Fix variable name (Y -> X_true)