app.deepbeat_data_visualization module
File: app/deepbeat_data_visualization.py Project: 22HLT01 QUMPHY Contact: nando.hegemann@ptb.de Gitlab: https://gitlab.com/qumphy Description: Create images of samples from DeepBeat dataset.
- app.deepbeat_data_visualization.main()[source]
Render one PNG grid per DeepBeat split into
../img/deepbeat/.- Return type:
None
- app.deepbeat_data_visualization.normalize_signals(signals)[source]
Normalize signal data to [0, 1].
- Return type:
ndarray- Parameters:
signals (np.ndarray) – Signal array.
- Returns:
Normalized signal array.
- app.deepbeat_data_visualization.plot_signal_grid(labels, signals, subject_ids, tag, save_path, dpi=300)[source]
Save a 6x4 grid of randomly sampled PPG signals colored by AF label.
- Return type:
None- Parameters:
labels (np.ndarray) – Binary AF labels (0/1) for each sample.
signals (np.ndarray) – PPG time series.
subject_ids (np.ndarray) – Subject IDs.
tag (str) – Filename stem and figure title suffix.
save_path (str) – Directory the
<tag>.pngimage is written to.dpi (int, optional) – Resolution of image, by default 300.