Skip to content

Instantly share code, notes, and snippets.

View hatzel's full-sized avatar

Hans Ole Hatzel hatzel

  • Universität Hamburg
  • 15:29 (UTC +02:00)
  • X @HansHatzel
View GitHub Profile
@hatzel
hatzel / scheduler_visualize.py
Created October 25, 2019 09:56
Quickly Visualize PyTorch Learning Schedulers
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!
@hatzel
hatzel / keybase.md
Created October 16, 2017 10:58
keybase.md

Keybase proof

I hereby claim:

  • I am hatzel on github.
  • I am hansole (https://keybase.io/hansole) on keybase.
  • I have a public key ASCZPS-MKmwW2ddrPMvwzpbiNlaSKQMtZP79RqrfR4jNfAo

To claim this, I am signing this object:

@hatzel
hatzel / types.js
Created December 4, 2016 14:55
When executing this in the examples directory of node-dbus you can observe incorrect datatypes being sent.
var DBus = require('../');
var dbus = new DBus();
function Type(signature, name) {
return { type: signature, name: name };
}
var service = dbus.registerService('session', 'test.lol');
var obj = service.createObject('/test/lol');