Task for predicting in-hospital mortality using MIMIC-III dataset.
This task aims to predict whether the patient will decease in the next
hospital visit based on clinical information from the current visit.
Public fields
label
the name of the label column.
Methods
Method new()
Initialize a new NextMortalityMIMIC3 instance.
Method pre_filter()
Pre-filter hook to retain only necessary columns for this task.
Usage
NextMortalityMIMIC3$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
NextMortalityMIMIC3$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
NextMortalityMIMIC3$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.