Skip to content

Instantly share code, notes, and snippets.

View robinthibaut's full-sized avatar

Robin Thibaut robinthibaut

View GitHub Profile
@robinthibaut
robinthibaut / mutual_info.py
Created December 3, 2022 19:40 — forked from GaelVaroquaux/mutual_info.py
Estimating entropy and mutual information with scikit-learn: visit https://github.com/mutualinfo/mutual_info
'''
Non-parametric computation of entropy and mutual-information
Adapted by G Varoquaux for code created by R Brette, itself
from several papers (see in the code).
This code is maintained at https://github.com/mutualinfo/mutual_info
Please download the latest code there, to have improvements and
bug fixes.
@robinthibaut
robinthibaut / openfoam.ipynb
Last active May 20, 2022 10:24
openfoam.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@robinthibaut
robinthibaut / pca_gu.py
Last active May 6, 2022 14:52
PCA from the ground up
# A Gentle Introduction to Python 2022. Robin Thibaut, Ghent University
import matplotlib.pyplot as plt
import numpy as np
# 1. Generate some data
rng = np.random.RandomState(42) # seed the random number generator.
# It ensures that the same data is generated every time.
@robinthibaut
robinthibaut / git-clearHistory
Created March 1, 2021 12:52 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git