Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorht committed Mar 20, 2024
1 parent 2c46629 commit 62064eb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 818 deletions.
157 changes: 0 additions & 157 deletions article/notebooks/article_error_propagation_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4100,163 +4100,6 @@
"The coefficient of variation of the untransformed concentrations are approximately the same as those of the pseudobatch transformed concentrations, suggesting that in cases similar to ours the pseudobatch transformation introduces negligible additional error. In the case of glucose (excluded from plot), the uncertainty in the pseudo concentration does not increase as the measurement uncertainty increase. This is because the glucose concentration is very small during the fed-batch process."
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "128996a5",
"metadata": {},
"outputs": [
{
"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>chain</th>\n",
" <th>draw</th>\n",
" <th>sample</th>\n",
" <th>species</th>\n",
" <th>pseudobatch_c</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>Biomass</td>\n",
" <td>1.428910</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>Glucose</td>\n",
" <td>-1.575290</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>Product</td>\n",
" <td>0.703932</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>Biomass</td>\n",
" <td>2.969960</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>Glucose</td>\n",
" <td>-4.090570</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>95995</th>\n",
" <td>3</td>\n",
" <td>999</td>\n",
" <td>6</td>\n",
" <td>Glucose</td>\n",
" <td>-176.772000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>95996</th>\n",
" <td>3</td>\n",
" <td>999</td>\n",
" <td>6</td>\n",
" <td>Product</td>\n",
" <td>72.205600</td>\n",
" </tr>\n",
" <tr>\n",
" <th>95997</th>\n",
" <td>3</td>\n",
" <td>999</td>\n",
" <td>7</td>\n",
" <td>Biomass</td>\n",
" <td>211.838000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>95998</th>\n",
" <td>3</td>\n",
" <td>999</td>\n",
" <td>7</td>\n",
" <td>Glucose</td>\n",
" <td>-373.243000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>95999</th>\n",
" <td>3</td>\n",
" <td>999</td>\n",
" <td>7</td>\n",
" <td>Product</td>\n",
" <td>172.543000</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>96000 rows × 5 columns</p>\n",
"</div>"
],
"text/plain": [
" chain draw sample species pseudobatch_c\n",
"0 0 0 0 Biomass 1.428910\n",
"1 0 0 0 Glucose -1.575290\n",
"2 0 0 0 Product 0.703932\n",
"3 0 0 1 Biomass 2.969960\n",
"4 0 0 1 Glucose -4.090570\n",
"... ... ... ... ... ...\n",
"95995 3 999 6 Glucose -176.772000\n",
"95996 3 999 6 Product 72.205600\n",
"95997 3 999 7 Biomass 211.838000\n",
"95998 3 999 7 Glucose -373.243000\n",
"95999 3 999 7 Product 172.543000\n",
"\n",
"[96000 rows x 5 columns]"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"(idata\n",
" .posterior['pseudobatch_c'].sel(species=[\"Biomass\", \"Glucose\", \"Product\"])\n",
" .to_dataframe()\n",
" .reset_index())"
]
},
{
"cell_type": "code",
"execution_count": 12,
Expand Down
Loading

0 comments on commit 62064eb

Please sign in to comment.