sampling namespace
More...
|
bool | in_time_window_simple (int pred_date, int start_time, int end_time, bool reverse, TimeWindowMode mode) |
| checks for time range intersection
|
|
bool | in_time_window (int pred_date, const MedRegistryRecord *r_outcome, const vector< const MedRegistryRecord * > &r_censor, int time_from, int time_to, int censor_time_from, int censor_time_to, const TimeWindowMode mode[2], const TimeWindowMode mode_prediction[2]) |
| checks for time range intersection
|
|
bool | in_time_window (int pred_date, const MedRegistryRecord *r_outcome, const vector< const MedRegistryRecord * > &r_censor, int time_from, int time_to, int censor_time_from, int censor_time_to, const TimeWindowInteraction &mode_outcome, const TimeWindowInteraction &mode_censoring, bool filter_no_censor=true) |
| checks for time range intersection
|
|
void | get_label_for_sample (int pred_time, const vector< const MedRegistryRecord * > &pid_records, const vector< const MedRegistryRecord * > &r_censor, int time_from, int time_to, int censor_time_from, int censor_time_to, const TimeWindowInteraction &mode_outcome, const TimeWindowInteraction &mode_censoring, ConflictMode conflict_mode, vector< MedSample > &idSamples, int &no_rule_found, int &conflict_count, int &done_count, bool treat_0_class_as_other_classes, bool filter_no_censor=true, bool show_conflicts=false) |
| checks for time range intersection
|
|
◆ get_label_for_sample()
void medial::sampling::get_label_for_sample |
( |
int |
pred_time, |
|
|
const vector< const MedRegistryRecord * > & |
pid_records, |
|
|
const vector< const MedRegistryRecord * > & |
r_censor, |
|
|
int |
time_from, |
|
|
int |
time_to, |
|
|
int |
censor_time_from, |
|
|
int |
censor_time_to, |
|
|
const TimeWindowInteraction & |
mode_outcome, |
|
|
const TimeWindowInteraction & |
mode_censoring, |
|
|
ConflictMode |
conflict_mode, |
|
|
vector< MedSample > & |
idSamples, |
|
|
int & |
no_rule_found, |
|
|
int & |
conflict_count, |
|
|
int & |
done_count, |
|
|
bool |
treat_0_class_as_other_classes, |
|
|
bool |
filter_no_censor = true , |
|
|
bool |
show_conflicts = false |
|
) |
| |
checks for time range intersection
- Parameters
-
pred_time | prediction time |
pid_records | the registry records of patient which are candidated for labeling |
r_censor | all the patient registry records for censoring. if empty - no censoring |
time_from | the time window from - to check with outcome registry |
time_to | the time window to - to check with outcome registry |
censor_time_from | the time window from - to check with censoring registry |
censor_time_to | the time window to - to check with censoring registry |
mode_outcome | the intersection method test for outcome |
mode_censoring | the intersection method test for censoring |
filter_no_censor | what to do when no censoring record options are given |
- Returns
- If has intersection with time window
◆ in_time_window() [1/2]
checks for time range intersection
- Parameters
-
pred_date | prediction time |
r_outcome | the registry record for label |
r_censor | all the patient registry records for censoring. if empty - no censoring |
time_from | the time window from - to check with outcome registry |
time_to | the time window to - to check with outcome registry |
censor_time_from | the time window from - to check with censoring registry |
censor_time_to | the time window to - to check with censoring registry |
mode_outcome | the intersection method test for outcome |
mode_censoring | the intersection method test for censoring |
filter_no_censor | what to do when no censoring record options are given |
- Returns
- If has intersection with time window
◆ in_time_window() [2/2]
checks for time range intersection
- Parameters
-
pred_date | prediction time |
r_outcome | the registry record for label |
r_censor | all the patient registry records for censoring. if empty - no censoring |
time_from | the time window from - to check with outcome registry |
time_to | the time window to - to check with outcome registry |
censor_time_from | the time window from - to check with censoring registry |
censor_time_to | the time window to - to check with censoring registry |
mode | the intersection method test for outcome |
mode_prediction | the intersection method test for censoring |
- Returns
- If has intersection with time window
◆ in_time_window_simple()
bool medial::sampling::in_time_window_simple |
( |
int |
pred_date, |
|
|
int |
start_time, |
|
|
int |
end_time, |
|
|
bool |
reverse, |
|
|
TimeWindowMode |
mode |
|
) |
| |
checks for time range intersection
- Parameters
-
pred_date | prediction time |
start_time | start time of window |
end_time | end time of window |
reverse | If we are in reverse window - looking backward in time |
mode | the intersection method test |
- Returns
- If has intersection with time window