Skip to content

Instantly share code, notes, and snippets.

View batson's full-sized avatar

Joshua Batson batson

View GitHub Profile
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.
@batson
batson / noise2self_singlecell_pca.py
Last active April 8, 2019 03:41
calibrating PCA
# X is a matrix of integer counts
import numpy as np
from sklearn.utils.extmath import randomized_svd
from matplotlib import pyplot as plt
x1 = np.random.binomial(x, 0.5)
x2 = x - x1
x1_norm = np.sqrt(x1)
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.
@batson
batson / Effect of noise on learning linear regression.ipynb
Created March 10, 2023 00:01
Effect of noise on learning linear regression.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.