Skip to content

Instantly share code, notes, and snippets.

Avatar

yagnesh revar yrevar

View GitHub Profile
View Bloom Filter.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yrevar
yrevar / unittest_example.py
Created July 15, 2020 18:44
python unittest example
View unittest_example.py
# python3 -m unittest_example
# python3 -m unittest -v unittest_example
# python3 -m unittest -v unittest_example.Numbers.test_odd
import unittest
class Numbers(unittest.TestCase):
def test_20(self):
x = 13
@yrevar
yrevar / mlp_2d_fn_approx.ipynb
Created April 17, 2020 04:44
MLP 2d function approximation
View mlp_2d_fn_approx.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yrevar
yrevar / Matplotlib Gif Maker.ipynb
Created March 4, 2020 06:22
Matplotlib plots to gif maker
View Matplotlib Gif Maker.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View NavigationGridView.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View matplotlib_connectionpatch_problem_workaround.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View matplotlib_connectionpatch_problem.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Binomial Distribution.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View Differentiable Value Iteration (PyTorch).ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View JupyterBoilerPlate.py
import os
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import matplotlib as mpl
# plot title
mpl.rcParams['axes.titlesize'] = 18