Update imbalanced classsification notebook#22
Conversation
|
Running gave me the following warnings and errors: Updating the format to v7 changes the whole lock file structure. I can open a separate PR for updating that. The |
|
Thanks @AnneBeyer. Feel free to compact everything in the same PR if it makes it easier. As you wish. |
|
We might want to update the pyodide kernel used by jupyter-lite. If I have time, I'll check if we could use https://notebook.link to give it a try. |
If I understand the |
|
@AnneBeyer the CI fails with: the pixi version needs to be updated. |
|
@AnneBeyer I just sent you an invitation to join this repo and grant you more permissions so that we won't have to manually approve the workflow run each time on your PR. |
|
We are using an old kernel: https://github.com/probabl-ai/calibration-cost-sensitive-learning/blob/main/jupyterlite/jupyter-lite.json#L6 This is the new version: https://pyodide.org/en/stable/project/changelog.html I'll try to update all this part and I'll do a PR on your PR if I make it work quickly. |
|
I just realise that we don't have any polars in those notebooks so we should be able to easily upgrade pyodide (just confused the notebook with the time-series forecasting). |
- Bump jupyterlite and jupyterlite-pyodide-kernel to 0.8.x, the series that targets pyodide 314.x (Python 3.14). - Point the JupyterLite pyodide kernel to pyodide v314.0.2. - Load the credit-card parquet without forcing fastparquet: pyodide 314 no longer ships fastparquet, so let pandas auto-select the engine (pyarrow in the browser, fastparquet in the local/CI env).
- pixi 0.41.1 could not read the version-7 lock file; bump the CI pixi to v0.72.0 (matches the pixi used to generate the lock). - Update actions to their Node 24 releases to fix the Node 20 deprecation: actions/checkout@v5, prefix-dev/setup-pixi@v0.10.0, peaceiris/actions-gh-pages@v4.1.0.
Update JupyterLite to the latest pyodide (314)
…m/AnneBeyer/calibration-cost-sensitive-learning into update_imbalanced_classsification
|
So the current test failure is related to |
|
There are still some notebooks I haven't looked at, but I went through the two most relevant for this year, and all CI failures are fixed now. |
While working through the notebook, I updated it as follows:
penalty=NonewithC=np.inf(and added a comment for explicitness)_CurveScorerwithmetric_at_thresholdsxlabelandhlinewhere I found it helpfuln_binsinconsistency with the solutions