Task for predicting in-hospital mortality using MIMIC-IV dataset.
Uses lab results from the first 48 hours after admission as input features.
Public fields
label
the name of the label column.
Methods
Method new()
Initialize a new NextMortalityMIMIC4 instance.
Method pre_filter()
Pre-filter hook to retain only necessary columns for this task.
Usage
NextMortalityMIMIC4$pre_filter(df)
Arguments
df
A lazy query containing all events.
Returns
A filtered LazyFrame with only relevant columns.
Main processing method to generate samples.
Usage
NextMortalityMIMIC4$call(patient)
Arguments
patient
An object with method get_events(event_type, ...).
Returns
A list of samples.
Method clone()
The objects of this class are cloneable with this method.
Usage
NextMortalityMIMIC4$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.