Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 0.1 T1D Semi-Supervised Change Point Detection Benchmark\n",
"\n",
"We've published our benchmarking dataset as a package on PiPy! This is how you would import it and start working with it."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Downloading data files... May take a while...\n",
"Extracting data files...\n",
"Data files successfully downloaded and extracted!\n"
]
},
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Unnamed: 0</th>\n",
" <th>date</th>\n",
" <th>bgl_real</th>\n",
" <th>bgl</th>\n",
" <th>msg_type</th>\n",
" <th>food_glycemic_index</th>\n",
" <th>affects_iob</th>\n",
" <th>affects_fob</th>\n",
" <th>dose_units</th>\n",
" <th>food_g</th>\n",
" <th>msg_type_log</th>\n",
" <th>msg_type_log_shifted</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>0</td>\n",
" <td>2024-02-01 04:00:00</td>\n",
" <td>152.41</td>\n",
" <td>142.392993</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1</td>\n",
" <td>2024-02-01 04:01:00</td>\n",
" <td>152.41</td>\n",
" <td>143.740542</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>2</td>\n",
" <td>2024-02-01 04:02:00</td>\n",
" <td>152.41</td>\n",
" <td>144.429113</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>3</td>\n",
" <td>2024-02-01 04:03:00</td>\n",
" <td>152.41</td>\n",
" <td>145.122809</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>4</td>\n",
" <td>2024-02-01 04:04:00</td>\n",
" <td>152.41</td>\n",
" <td>145.818075</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Unnamed: 0 date bgl_real bgl msg_type \\\n",
"0 0 2024-02-01 04:00:00 152.41 142.392993 NaN \n",
"1 1 2024-02-01 04:01:00 152.41 143.740542 NaN \n",
"2 2 2024-02-01 04:02:00 152.41 144.429113 NaN \n",
"3 3 2024-02-01 04:03:00 152.41 145.122809 NaN \n",
"4 4 2024-02-01 04:04:00 152.41 145.818075 NaN \n",
"\n",
" food_glycemic_index affects_iob affects_fob dose_units food_g \\\n",
"0 NaN NaN NaN NaN NaN \n",
"1 NaN NaN NaN NaN NaN \n",
"2 NaN NaN NaN NaN NaN \n",
"3 NaN NaN NaN NaN NaN \n",
"4 NaN NaN NaN NaN NaN \n",
"\n",
" msg_type_log msg_type_log_shifted \n",
"0 NaN NaN \n",
"1 NaN NaN \n",
"2 NaN NaN \n",
"3 NaN NaN \n",
"4 NaN NaN "
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from t1d_cpd_benchmark.datasets import load_obfuscated_data\n",
"\n",
"data = load_obfuscated_data(index=1)\n",
"data.head()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "3.9.4",
"language": "python",
"name": "python3"
},
"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.9.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Loading