Skip to content

Instantly share code, notes, and snippets.

@mwaskom
mwaskom / replacing_seaborn_distplot.ipynb
Last active June 8, 2025 08:48
A guide to replacing the deprecated `seaborn.distplot` function.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwaskom
mwaskom / seaborn_dark_background.ipynb
Created December 3, 2015 19:49
Use seaborn with a dark background, if you like that sort of thing.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwaskom
mwaskom / titanic_seaborn.ipynb
Last active March 7, 2025 00:03
Exploring the Kaggle Titanic dataset with seaborn.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwaskom
mwaskom / palettes.png
Last active July 9, 2024 20:35
Show all seaborn palettes and simulate what they look like with various color vision deficiencies. (The 10-element seaborn palettes will be part of the forthcoming 0.9 release).
palettes.png
@mwaskom
mwaskom / SDT_Tutorial.ipynb
Last active June 11, 2024 15:48
Translation of Justin Gardner's Signal Detection Theory tutorial from MATLAB into Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwaskom
mwaskom / ddm_conv.ipynb
Created October 16, 2020 14:12
Comparing CPU- and GPU-based convolution and Fokker-Planck solution for fitting the drift diffusion model
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwaskom
mwaskom / diffusion_tutorial.ipynb
Created March 23, 2016 18:02
Translation of Justin Gardner's drift diffusion tutorial from MATLAB into Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mwaskom
mwaskom / film_gls.py
Last active March 3, 2023 19:44
Python implementation of FILM GLS algorithm
"""Python implementation of FILM GLS algorithm.
Plans for development:
We will need the following functionality:
GLS fit for 4D timeseries (i, j, k, t), with smoothing in volume or on surface
GLS for for 2D array (time x vox) array, with single prewhitening matrix
We'll call the first "local" and the latter "regional" prewhitening