You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enthusiastic about knowledge-centric machine learning and data science, dancing, and surfing 🌊.
Also, have a look at my lab profile on Github: @bckrlab
Custom `cross_val` function for Pythons scikit-learn library. As opposed to scikit-learn's implementations, it returns predictions, split information, estimators.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get %CPU and %MEM for each process on Linux (using Python)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script to configure displays via EDID rather than outputs with xrandr
Sometime output designations change in xrandr. Particular when using a docking station (e.g., a Lenovo Thunderbolt 4 Dock).
In those cases scripts that use output names to configure a display setup fail.
This script provides function to use a screens.ini file (see example) with EDIDs rather than output names.
Dockerfile with JupyterLab and custom environment based on micromamba and mamba
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reading a large CSV file via pandas and joblib. Probably degrades due to pd.concat usage. Tests and better function parameter definitions and documentation pending.
Parallelized pd.read_csv with joblib
Reading a large CSV file via pandas and joblib. Probably degrades due to pd.concat usage.
Tests and better function parameter definitions and documentation pending.
A very objective test on a 5GB CSV file (shape=()) resulted
in a Kernel died message (it was run in a Jupyter notebook and repeated twice)
when using pd.read_csv directly.
In contrast, using read_csv_joblib with the following settings returned in 3h 4m:
Concatenating the row chunks took the longest.
Remove cells after execution when converting Jupyer Notebook to markdown via nbconvert by using custom templates
There is no postprocessor to exclude cells from the final output when converting Jupyter notebooks to markdown. One solution for this is to use custom templates as outlined in this gist.
Instructions:
Put the conf.json and index.md.j2 into a folder for example ./templates/markdown2
In your Jupyter notebook add the tag remove to the cells that should be removed after executing cells
Run the following command to execute and convert the notebook:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Create joint references across main text and supplement for Science publication in LaTeX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Method to make audio quality better for bluetooth headsets on linux (Fedora 34) using mSBC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters