{ "cells": [ { "cell_type": "markdown", "metadata": { "cell_marker": "\"\"\"" }, "source": [ "# Example Dataset" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Setup and Helper Functions" ] }, { "cell_type": "code", "metadata": {}, "source": [ "import matplotlib.pyplot as plt\n", "import seaborn as sns\n", "from fau_colors import cmaps\n", "\n", "from pepbench.example_data import get_example_dataset\n", "\n", "%matplotlib inline\n", "%load_ext autoreload\n", "%autoreload 2" ], "outputs": [], "execution_count": null }, { "cell_type": "code", "metadata": {}, "source": [ "plt.close(\"all\")\n", "\n", "palette = sns.color_palette(cmaps.faculties)\n", "sns.set_theme(context=\"notebook\", style=\"ticks\", font=\"sans-serif\", palette=palette)\n", "\n", "plt.rcParams[\"figure.figsize\"] = (10, 5)\n", "plt.rcParams[\"pdf.fonttype\"] = 42\n", "plt.rcParams[\"mathtext.default\"] = \"regular\"\n", "\n", "palette" ], "outputs": [], "execution_count": null }, { "cell_type": "code", "metadata": {}, "source": [ "dataset = get_example_dataset()\n", "dataset" ], "outputs": [], "execution_count": null }, { "cell_type": "code", "metadata": {}, "source": [ "subset = dataset.get_subset(participant=\"VP_001\")\n", "\n", "subset.ecg.plot()" ], "outputs": [], "execution_count": null }, { "cell_type": "code", "metadata": {}, "source": [ "subset.reference_heartbeats" ], "outputs": [], "execution_count": null }, { "cell_type": "code", "metadata": {}, "source": [], "outputs": [], "execution_count": null }, { "cell_type": "code", "metadata": {}, "source": [], "outputs": [], "execution_count": null } ], "metadata": { "jupytext": { "encoding": "# -*- coding: utf-8 -*-", "text_representation": { "extension": ".py", "format_name": "sphinx", "format_version": "1.1", "jupytext_version": "1.13.0" } }, "kernelspec": { "display_name": "pepbench", "language": "python", "name": "pepbench" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.14" }, "toc-showtags": false, "vscode": { "interpreter": { "hash": "7014e6a8beff3a47c7c0424a6c63a486addc0ee3d12468bf1ae9a85a56cca70c" } } }, "nbformat": 4, "nbformat_minor": 4 }