Skip to content

Instantly share code, notes, and snippets.

@jlines
jlines / create_gif.py
Last active November 16, 2023 04:25
fit a third order polynomial to sine function and animate
# Credit for training code goes to the PyTorch documentation:
# https://pytorch.org/tutorials/beginner/pytorch_with_examples.html by Justin Johnson
import numpy as np
import math
import matplotlib.pyplot as plt
import matplotlib.animation as animation
# Create random input and output data
x = np.linspace(-math.pi, math.pi, 2000)
{
"swagger": "2.0",
"info": {
"title": "SSN API",
"description": "Deployment services provided by SSN",
"version": "1.0.0"
},
"host": "3gwntvs7mi.execute-api.us-east-1.amazonaws.com",
"schemes": [
"https"