Skip to content

Commit

Permalink
🐛 add dependencies specific to notebook
Browse files Browse the repository at this point in the history
- pandas 2.0 requires numeric values for mean aggregation
  • Loading branch information
Henry Webel committed Oct 30, 2023
1 parent cf32a42 commit fbc8164
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 11 additions & 1 deletion tutorial/log_reg.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
"> Predict Alzheimer disease based on proteomics measurements."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "cd90b1b6",
"metadata": {},
"outputs": [],
"source": [
"!pip install njab heatmapz openpyxl "
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -672,7 +682,7 @@
" return_train_score=True,\n",
" # fit_params=dict(sample_weight=weights)\n",
")\n",
"cv_feat = cv_feat.groupby('n_features').agg(['mean', 'std'])\n",
"cv_feat = cv_feat.drop('test_case', axis=1).groupby('n_features').agg(['mean', 'std'])\n",
"cv_feat"
]
},
Expand Down
5 changes: 4 additions & 1 deletion tutorial/log_reg.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
#
# > Predict Alzheimer disease based on proteomics measurements.

# %%
# !pip install njab heatmapz openpyxl

# %%
import itertools
import logging
Expand Down Expand Up @@ -366,7 +369,7 @@
return_train_score=True,
# fit_params=dict(sample_weight=weights)
)
cv_feat = cv_feat.groupby('n_features').agg(['mean', 'std'])
cv_feat = cv_feat.drop('test_case', axis=1).groupby('n_features').agg(['mean', 'std'])
cv_feat

# %% [markdown]
Expand Down

0 comments on commit fbc8164

Please sign in to comment.