Skip to content

Instantly share code, notes, and snippets.

View smsharma's full-sized avatar

Siddharth Mishra-Sharma smsharma

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smsharma
smsharma / gp_bkg.ipynb
Created November 2, 2023 03:46
GP fit with background test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import time
import jax
import jax.numpy as jnp
# Global flag to set a specific platform, must be used at startup.
jax.config.update("jax_platform_name", "gpu")
# from diffrax import diffeqsolve, ODETerm, Dopri5, PIDController, SaveAt
from jax.experimental.ode import odeint
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smsharma
smsharma / plot_params.py
Last active June 22, 2023 21:22
rcparams
import matplotlib.pylab as pylab
from cycler import cycler
import seaborn as sns
# params = {'text.usetex': True,
# 'font.family': 'serif',
# 'font.serif': ['CMU Serif'],
# 'font.sans-serif': ['CMU Sans Serif'],
# 'legend.fontsize': 17,
# 'legend.fancybox': True,
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.