Skip to content

Commit

Permalink
Update assess_multiple_datasets.m
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhcharlton committed Aug 8, 2022
1 parent 3e1c6ba commit 547efe7
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion source/assess_multiple_datasets.m
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,20 @@ function print_results_summary(res)
end
end

curr_datasets = {'mimic_test_a', 'mimic_test_n'};
if length(intersect(all_datasets, curr_datasets)) == length(curr_datasets)
fprintf('\n Adults and Neonates:')
curr_cat = 'noQual';
fprintf('\n All beat detectors:')
for dataset_no = 1 : length(curr_datasets)
report_range_f1_score(res, curr_cat, curr_datasets(dataset_no), ['on ' curr_datasets{dataset_no} ' dataset']);
end
fprintf('\n Selected beat detectors:')
for dataset_no = 1 : length(curr_datasets)
report_range_f1_score(res, curr_cat, curr_datasets(dataset_no), ['on ' curr_datasets{dataset_no} ' dataset'], beat_detectors_to_exclude);
end
end

end

function report_f1_scores(res, all_datasets, all_curr_use_case_datasets, curr_use_case_descrip, curr_cat, thresh_f1, beat_detectors_to_exclude)
Expand Down Expand Up @@ -597,7 +611,10 @@ function report_best_and_worst_beat_detectors(res, curr_cat, curr_datasets, beat
up.paths.plots_root_folder = '/Users/petercharlton/Desktop/temp/ppg-beats_stuff/';

% Specify comparisons
up.settings.comparisons = up.comparison_datasets;
up.settings.comparisons = {};
for comparison_no = 1 : floor(length(up.comparison_datasets)/2)
up.settings.comparisons(comparison_no, 1:2) = up.comparison_datasets(comparison_no*2-1:comparison_no*2);
end

%% Display startup message
display_startup_message;
Expand Down

0 comments on commit 547efe7

Please sign in to comment.