These directions have been adapted from https://gist.github.com/stupidpupil/1e88638e5240476ec1f77d4b27747c88?permalink_comment_id=2198481
For more info on some of these steps, visit https://mrchromebox.tech
- Connect the power
- Open the lid
import torch | |
import numpy as np | |
import matplotlib.pyplot as plt | |
offsets = [torch.zeros(3), torch.tensor([1, 0, 0]), torch.tensor([1, 0, 0]), torch.tensor([1, 0, 0])] | |
Rs = [torch.eye(3)[:, 0:2] for _ in range(len(offsets))] | |
for i in range(len(Rs)-1): | |
Rs[i] = Rs[i].requires_grad_() | |
def get_positions(offsets, Rs): |
These directions have been adapted from https://gist.github.com/stupidpupil/1e88638e5240476ec1f77d4b27747c88?permalink_comment_id=2198481
For more info on some of these steps, visit https://mrchromebox.tech
""" | |
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 |