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 re | |
import json | |
import requests | |
from pprint import pformat | |
from time import sleep | |
from gpiozero import Energenie | |
lamp = Energenie(1) | |
QUERY_URL='https://www.govtrack.us/api/v2/role?current=true&role_type=president' |
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 torch | |
from torch.optim.lr_scheduler import CosineAnnealingLR | |
from torch.optim import SGD | |
import matplotlib.pyplot as plt | |
STEPS = 100 | |
optimizer = SGD([torch.tensor(1)], lr=1) | |
# Use a scheduler of your choice below. | |
# Great for debugging your own schedulers! |