Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit 6ecef08

Browse files
committed
Meian impute the tract profiles.
1 parent f9dcccb commit 6ecef08

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

examples/plot_als_comparison.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
from statsmodels.stats.anova import anova_lm
2929
from statsmodels.stats.multitest import multipletests
3030

31+
from sklearn.impute import SimpleImputer
32+
3133
#############################################################################
3234
# Fetch data from Sarica et al.
3335
# -----------------------------
@@ -53,6 +55,7 @@
5355
group_names = afqdata.group_names
5456
subjects = afqdata.subjects
5557

58+
X = SimpleImputer(strategy="median").fit_transform(X)
5659

5760
# Filtering the data
5861
# ----------------

0 commit comments

Comments
 (0)