Skip to content

Instantly share code, notes, and snippets.

@ctralie
ctralie / GalliumOS on Edgar.markdown
Created April 19, 2024 17:09 — forked from stupidpupil/GalliumOS on Edgar.markdown
Guide to installing GalliumOS on an Acer Chromebook 14" (CB3-431) 'Edgar'
@ctralie
ctralie / SSMTorchGradientDescent.ipynb
Last active January 3, 2024 20:01
SSMTorchGradientDescent.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ctralie
ctralie / GreedyFurthestPoint.py
Last active December 12, 2023 22:20
Greedy Furthest Point Sampling
"""
Programmer: Chris Tralie
Purpose: To demonstrate a greedy furthest point sampling, which is a general technique
for getting good points that are "spread out" and cover the dataset well
"""
import numpy as np
import matplotlib.pyplot as plt
from sklearn.metrics.pairwise import pairwise_distances
def getGreedyPerm(D):
@ctralie
ctralie / testOt.py
Created November 14, 2018 01:43
2D Histogram Wasserstein Distance via POT Library
"""
Programmer: Chris Tralie
Purpose: To use the POT library (https://github.com/rflamary/POT)
to compute the Entropic regularized Wasserstein distance
between points on a 2D grid
"""
import numpy as np
import matplotlib.pyplot as plt
import ot
@ctralie
ctralie / DTW.py
Last active April 21, 2023 23:29
Dynamic Time Warping Animation
"""
Programmer: Chris Tralie
Purpose: To illustrate the dynamic time warping algorithm
to synchronize two 2D trajectories
"""
import numpy as np
import matplotlib.pyplot as plt
def getCSM(X, Y):
"""
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.
@ctralie
ctralie / mergetree.py
Created July 26, 2022 17:44
Merge trees on time series with simplification
"""
Programmer: Chris Tralie
Purpose: To provide a basic ordered merge tree class for interval and circular domains,
along with methods to construct the merge tree from a time series, to plot it and
its associated persistence diagram, and to simplify the merge trees by persistence
"""
import numpy as np
import matplotlib.pyplot as plt
@ctralie
ctralie / AutoencoderTest.ipynb
Created January 23, 2022 17:50
Experiments with autoencoders of MNIST Data in pytorch, with a visualization of projection to 2D latent space
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ctralie
ctralie / Cantor.ipynb
Created October 21, 2021 14:35
Cantor Function Approximation
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.