This file contains 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
import cv2 | |
import imageio | |
import jax | |
import os | |
import urllib | |
import numpy as np | |
import jax.numpy as jnp | |
def resize_and_center_crop(image): |
This file contains 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
import numpy as np | |
import matplotlib.pyplot as plt | |
import bisect | |
from scipy import stats | |
rng = np.random.default_rng() | |
desired_variance = 1 | |
desired_mean = 0 | |
uni_rand = rng.uniform(low=-desired_variance*3, high=desired_variance*3, size=1000) | |
_ = plt.hist(uni_rand, bins='auto') |
This file contains 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
import math | |
import random | |
import matplotlib.pyplot as plt | |
uni_rand_1 = [] | |
uni_rand_2 = [] | |
gauss_samples_1 = [] | |
gauss_samples_2 = [] | |
for i in range(1000): | |
random_1 = random.random() |