Conversation
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Yeah this can happen unfortunately if you don't start cleanly from the latest commit on main . ReviewNB can't handle earlier edits and subsequent merges from main into the branch too well |
There was a problem hiding this comment.
Thanks!
If you're new to `ehrapy` and `ehrdata`, we strongly recommend reading [Getting started with ehrdata](https://ehrdata.readthedocs.io/en/latest/tutorials/getting_started.html) and [Introduction to ehrapy](https://ehrapy.readthedocs.io/en/latest/tutorials/notebooks/ehrapy_introduction.html).
should be sphinx or myst refs and not links.
-
ehrapy's
CohortTracker
Proper ref here as well, please.
-
ehrapy provides
ep.pl.timeseries.
Same here.
-
One row per sentence in markdown, please. It's messy to review like this.
-
See
X = edata.layers["locf_data"]
mean_rep = np.nanmean(X, axis=2)
std_rep = np.nanstd(X, axis=2)
edata.obsm["temporal_rep"] = np.hstack([mean_rep, std_rep])this looks a bit off. Too complex and why do we need to define a X here?
- See
import logging
logging.getLogger().setLevel(logging.ERROR)I think that's an ehrapy.setting thing as well, no?
When these are addressed I might spend a few minutes to clean up some minor things.
Thank you!
|
View / edit / reply to this conversation on ReviewNB eroell commented on 2026-04-07T15:33:17Z the output of this cell can be removed. |
|
View / edit / reply to this conversation on ReviewNB eroell commented on 2026-04-07T15:33:18Z twice "such as" is not so pretty to read
Also, the "Remember we consider ..." does not make much sense, as it was not introduced earlier
|
|
View / edit / reply to this conversation on ReviewNB eroell commented on 2026-04-07T15:33:19Z Why is the entire intro to CohortTracker removed? it just appears without context now right after the variable plot. Before in the notebook there was a brief introduction and I'd keep this unless there's strong reasons against it?
Also, there was a sentence after the cohort tracker plot "We can observe that on average, patients are 64.5 years old upon ICU entry, with slightly more females ( agerardy commented on 2026-04-08T12:14:25Z i was trying to shorten the whole tutorial, might have overdone it with cutting this, true |
|
View / edit / reply to this conversation on ReviewNB eroell commented on 2026-04-07T15:33:20Z Is it really robust scale normalization? or Just scale normalization? agerardy commented on 2026-04-08T12:13:55Z it is standardscaler, so just scale normalization, you're right |
|
View / edit / reply to this conversation on ReviewNB eroell commented on 2026-04-07T15:33:21Z When measurements do exist, they tend to persist until the next reading This phrase does not make sense |
|
View / edit / reply to this conversation on ReviewNB eroell commented on 2026-04-07T15:33:22Z Great explanation helping to understand what happened :) |
|
it is standardscaler, so just scale normalization, you're right View entire conversation on ReviewNB |
|
i was trying to shorten the whole tutorial, might have overdone it with cutting this, true View entire conversation on ReviewNB |
There was a problem hiding this comment.
Thank you!
Longitudinal Data Analysis with ehrapy
Maybe we should remove the "with ehrapy"? Kind of implied.
Something is off here. Both the same header level? Please stick to how it's done in the other tutorials and if necessary, harmonize it. Consistency is key!
Why is
from pypots.classification import SAITS
in its own cell?
The Physionet 2012 challenge dataset is one of the built-in, ready-to-use datasets of ehrdata and can be loaded with one line of code:
that's just noise.
Let’s inspect the static data:
I think that's more metadata than static data - although not wrong.
And have a look at the dynamic variables:
IDK what's meant with dynamic variables here. This seems a bit off.
Scrolling from
Exploratory Data Analysis
to
Quality control metrics with ehrapy
does not expand the TOC on the right.
Let us examine the static information of the cohort in more detail.
See above.
The "Machine Learning with SAITS" TOC also doesn't expand.
This concludes our tutorial on analyzing longitudinal clinical data with ehrapy.
Just noise.
Resources
Why does this not show up in the TOC on the right?
I'd move up the whole doc up. Maybe after the MIMIC-II ones?
Because it produces a horribly long output, and we cannot remove the output of the cell which ehrapy is imported since otherwise the holoviews plot don't render. So we import pypots separately, then remove its ugly output |
|
No need to ping me again, please just merge your PRs then. Thank you! |
See theislab/ehrapy#1042 for details