You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/pages/tutorials/01_loading_data.rst
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ Here are examples of both.
65
65
sex (2)
66
66
site (23)
67
67
68
-
68
+
69
69
70
70
71
71
@@ -107,7 +107,7 @@ Here are examples of both.
107
107
- 1 batch effects:
108
108
batch_effect_0 (2)
109
109
110
-
110
+
111
111
112
112
113
113
@@ -1378,13 +1378,13 @@ values - ``statistic``: The name of the computed statistics
1378
1378
Process: 75157 - 2025-11-20 13:18:58 - Computing yhat for WM-hypointensities.
1379
1379
Process: 75157 - 2025-11-20 13:18:58 - Computing yhat for Left-Lateral-Ventricle.
1380
1380
Process: 75157 - 2025-11-20 13:18:58 - Computing yhat for Brain-Stem.
1381
-
1381
+
1382
1382
1383
1383
.. parsed-literal::
1384
1384
1385
1385
/opt/anaconda3/envs/ptk/lib/python3.12/site-packages/pcntoolkit/dataio/norm_data.py:1094: FutureWarning: The previous implementation of stack is deprecated and will be removed in a future version of pandas. See the What's New notes for pandas 2.1.0 for details. Specify future_stack=True to adopt the new implementation and silence this warning.
1386
1386
subject_ids = subject_ids.stack(level="centile")
1387
-
1387
+
1388
1388
1389
1389
.. parsed-literal::
1390
1390
@@ -1407,7 +1407,7 @@ values - ``statistic``: The name of the computed statistics
1407
1407
Process: 75157 - 2025-11-20 13:18:58 - Harmonizing data for Brain-Stem.
1408
1408
Process: 75157 - 2025-11-20 13:18:59 - Saving model to:
Process: 75222 - 2025-11-20 13:13:43 - Fitting model for WM-hypointensities.
204
204
Process: 75222 - 2025-11-20 13:13:44 - Fitting model for Right-Lateral-Ventricle.
205
-
205
+
206
206
207
207
.. parsed-literal::
208
208
@@ -258,12 +258,12 @@ All results can be found in the save directory.
258
258
return f(*arrays, *other_args, **kwargs)
259
259
/opt/anaconda3/envs/ptk/lib/python3.12/site-packages/scipy/_lib/_util.py:1226: LinAlgWarning: Ill-conditioned matrix (rcond=6.36754e-17): result may not be accurate.
260
260
return f(*arrays, *other_args, **kwargs)
261
-
261
+
262
262
263
263
.. parsed-literal::
264
264
265
265
Process: 75222 - 2025-11-20 13:13:46 - Fitting model for Right-Amygdala.
266
-
266
+
267
267
268
268
.. parsed-literal::
269
269
@@ -290,7 +290,7 @@ All results can be found in the save directory.
290
290
return f(*arrays, *other_args, **kwargs)
291
291
/opt/anaconda3/envs/ptk/lib/python3.12/site-packages/scipy/_lib/_util.py:1226: LinAlgWarning: Ill-conditioned matrix (rcond=1.95743e-41): result may not be accurate.
292
292
return f(*arrays, *other_args, **kwargs)
293
-
293
+
294
294
295
295
.. parsed-literal::
296
296
@@ -341,7 +341,7 @@ All results can be found in the save directory.
341
341
Process: 75222 - 2025-11-20 13:13:48 - Computing yhat for Right-Amygdala.
342
342
Process: 75222 - 2025-11-20 13:13:48 - Saving model to:
343
343
resources/blr/save_dir.
344
-
344
+
345
345
346
346
347
347
@@ -1182,7 +1182,7 @@ Let’s start with the centiles.
1182
1182
scatter_data=train, # Scatter this data along with the centiles
1183
1183
batch_effects={"site": ["Beijing_Zang", "AnnArbor_a"], "sex": ["M"]}, # Highlight these groups
1184
1184
show_other_data=True, # scatter data not in those groups as smaller black circles
1185
-
harmonize=True, # harmonize the scatterdata, this means that we 'remove' the batch effects from the data, by simulating what the data would have looked like if all data was from the same batch.
1185
+
harmonize_data=True, # harmonize the scatterdata, this means that we 'remove' the batch effects from the data, by simulating what the data would have looked like if all data was from the same batch.
1186
1186
show_yhat=True,
1187
1187
)
1188
1188
@@ -1213,7 +1213,7 @@ Let’s start with the centiles.
1213
1213
Process: 75222 - 2025-11-20 13:13:49 - Harmonizing data for WM-hypointensities.
1214
1214
Process: 75222 - 2025-11-20 13:13:49 - Harmonizing data for CortexVol.
1215
1215
Process: 75222 - 2025-11-20 13:13:49 - Harmonizing data for Right-Amygdala.
1216
-
1216
+
1217
1217
1218
1218
1219
1219
.. image:: 02_BLR_files/02_BLR_14_1.png
@@ -1301,7 +1301,7 @@ And finally the ridge plot:
1301
1301
self._figure.tight_layout(*args, **kwargs)
1302
1302
/opt/anaconda3/envs/ptk/lib/python3.12/site-packages/pcntoolkit/util/plotter.py:817: UserWarning: Tight layout not applied. tight_layout cannot make Axes height small enough to accommodate all Axes decorations.
1303
1303
plt.tight_layout()
1304
-
1304
+
1305
1305
1306
1306
1307
1307
.. image:: 02_BLR_files/02_BLR_20_1.png
@@ -1321,7 +1321,7 @@ And finally the ridge plot:
1321
1321
self._figure.tight_layout(*args, **kwargs)
1322
1322
/opt/anaconda3/envs/ptk/lib/python3.12/site-packages/pcntoolkit/util/plotter.py:817: UserWarning: Tight layout not applied. tight_layout cannot make Axes height small enough to accommodate all Axes decorations.
1323
1323
plt.tight_layout()
1324
-
1324
+
1325
1325
1326
1326
1327
1327
.. image:: 02_BLR_files/02_BLR_20_3.png
@@ -1341,7 +1341,7 @@ And finally the ridge plot:
1341
1341
self._figure.tight_layout(*args, **kwargs)
1342
1342
/opt/anaconda3/envs/ptk/lib/python3.12/site-packages/pcntoolkit/util/plotter.py:817: UserWarning: Tight layout not applied. tight_layout cannot make Axes height small enough to accommodate all Axes decorations.
1343
1343
plt.tight_layout()
1344
-
1344
+
1345
1345
1346
1346
1347
1347
.. image:: 02_BLR_files/02_BLR_20_5.png
@@ -1361,7 +1361,7 @@ And finally the ridge plot:
1361
1361
self._figure.tight_layout(*args, **kwargs)
1362
1362
/opt/anaconda3/envs/ptk/lib/python3.12/site-packages/pcntoolkit/util/plotter.py:817: UserWarning: Tight layout not applied. tight_layout cannot make Axes height small enough to accommodate all Axes decorations.
1363
1363
plt.tight_layout()
1364
-
1364
+
1365
1365
1366
1366
1367
1367
.. image:: 02_BLR_files/02_BLR_20_7.png
@@ -1642,7 +1642,7 @@ Predicting
1642
1642
Process: 75222 - 2025-11-20 13:13:50 - Computing yhat for WM-hypointensities.
1643
1643
Process: 75222 - 2025-11-20 13:13:50 - Computing yhat for CortexVol.
1644
1644
Process: 75222 - 2025-11-20 13:13:50 - Computing yhat for Right-Amygdala.
1645
-
1645
+
1646
1646
1647
1647
1648
1648
@@ -2502,7 +2502,7 @@ Harmonize
2502
2502
Process: 75222 - 2025-11-20 13:13:51 - Harmonizing data for WM-hypointensities.
2503
2503
Process: 75222 - 2025-11-20 13:13:51 - Harmonizing data for CortexVol.
2504
2504
Process: 75222 - 2025-11-20 13:13:51 - Harmonizing data for Right-Amygdala.
2505
-
2505
+
2506
2506
2507
2507
2508
2508
.. image:: 02_BLR_files/02_BLR_27_1.png
@@ -2575,7 +2575,7 @@ site B.
2575
2575
Process: 75222 - 2025-11-20 13:13:53 - Harmonizing data for WM-hypointensities.
2576
2576
Process: 75222 - 2025-11-20 13:13:53 - Harmonizing data for CortexVol.
2577
2577
Process: 75222 - 2025-11-20 13:13:53 - Harmonizing data for Right-Amygdala.
2578
-
2578
+
2579
2579
2580
2580
2581
2581
.. image:: 02_BLR_files/02_BLR_29_1.png
@@ -2641,7 +2641,7 @@ site B.
2641
2641
Process: 75222 - 2025-11-20 13:13:53 - Harmonizing data for WM-hypointensities.
2642
2642
Process: 75222 - 2025-11-20 13:13:53 - Harmonizing data for CortexVol.
2643
2643
Process: 75222 - 2025-11-20 13:13:53 - Harmonizing data for Right-Amygdala.
0 commit comments