Skip to content

Commit

Permalink
fixed examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabi committed Aug 8, 2024
1 parent 87cf1ea commit ecc24ca
Show file tree
Hide file tree
Showing 3 changed files with 2,799 additions and 2,970 deletions.
387 changes: 137 additions & 250 deletions examples/basic_functionality.ipynb

Large diffs are not rendered by default.

105 changes: 16 additions & 89 deletions examples/custom_fit_functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>-1.303769</td>\n",
" <td>1.502504</td>\n",
" <td>-1.052551</td>\n",
" <td>1.510974</td>\n",
" <td>custom</td>\n",
" <td>0</td>\n",
" </tr>\n",
Expand All @@ -119,7 +119,7 @@
],
"text/plain": [
" a b fit_type ch_name\n",
"0 -1.303769 1.502504 custom 0"
"0 -1.052551 1.510974 custom 0"
]
},
"execution_count": 3,
Expand Down Expand Up @@ -175,8 +175,8 @@
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>-1.308971</td>\n",
" <td>1.498613</td>\n",
" <td>-1.067699</td>\n",
" <td>1.500347</td>\n",
" <td>custom</td>\n",
" <td>0</td>\n",
" </tr>\n",
Expand All @@ -186,7 +186,7 @@
],
"text/plain": [
" a b fit_type ch_name\n",
"0 -1.308971 1.498613 custom 0"
"0 -1.067699 1.500347 custom 0"
]
},
"execution_count": 5,
Expand Down Expand Up @@ -235,19 +235,19 @@
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>0.006549</td>\n",
" <td>0.980624</td>\n",
" <td>-1290.629341</td>\n",
" <td>-1299.406464</td>\n",
" <td>0.006699</td>\n",
" <td>0.980793</td>\n",
" <td>-2965.641163</td>\n",
" <td>-2974.418286</td>\n",
" <td>custom</td>\n",
" <td>0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>0.000266</td>\n",
" <td>0.999197</td>\n",
" <td>-3197.348170</td>\n",
" <td>-3206.125292</td>\n",
" <td>0.000291</td>\n",
" <td>0.999139</td>\n",
" <td>-4832.361294</td>\n",
" <td>-4841.138417</td>\n",
" <td>custom</td>\n",
" <td>0</td>\n",
" </tr>\n",
Expand All @@ -257,81 +257,8 @@
],
"text/plain": [
" mse r_squared BIC AIC fit_type ch_name\n",
"0 0.006549 0.980624 -1290.629341 -1299.406464 custom 0\n",
"0 0.000266 0.999197 -3197.348170 -3206.125292 custom 0"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"pd.concat([slope_fit.gof,\n",
" slope_fit_2.gof])"
]
},
{
"cell_type": "code",
"execution_count": 6,
"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>mse</th>\n",
" <th>r_squared</th>\n",
" <th>BIC</th>\n",
" <th>AIC</th>\n",
" <th>fit_type</th>\n",
" <th>ch_name</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>0.007478</td>\n",
" <td>0.978371</td>\n",
" <td>-2900.221645</td>\n",
" <td>-2908.998768</td>\n",
" <td>custom</td>\n",
" <td>0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>0.000337</td>\n",
" <td>0.998999</td>\n",
" <td>-4744.265350</td>\n",
" <td>-4753.042473</td>\n",
" <td>custom</td>\n",
" <td>0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" mse r_squared BIC AIC fit_type ch_name\n",
"0 0.007478 0.978371 -2900.221645 -2908.998768 custom 0\n",
"0 0.000337 0.998999 -4744.265350 -4753.042473 custom 0"
"0 0.006699 0.980793 -2965.641163 -2974.418286 custom 0\n",
"0 0.000291 0.999139 -4832.361294 -4841.138417 custom 0"
]
},
"execution_count": 6,
Expand Down
Loading

0 comments on commit ecc24ca

Please sign in to comment.