Skip to content

Instantly share code, notes, and snippets.

@nickswalker
nickswalker / multiseed_test_results.txt
Created May 11, 2020 22:41
Results from commit 3fe80db
seq_acc
mean std count
exp model test_name
results_all albert-base-v2transformer_seq2seq para 0.897 0.026 15
bert-base-uncasedtransformer_seq2seq para 0.931 0.008 15
bert-large-uncasedtransformer_seq2seq para 0.912 0.022 15
distilbert-base-uncasedtransformer_seq2seq para 0.921 0.024 15
distilgpt2transformer_seq2seq para 0.888 0.022 15
dis
import random
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats
import irl.linear_irl as linear_irl
import irl.mdp.gridworld as gridworld
from irl import maxent

Keybase proof

I hereby claim:

  • I am nickswalker on github.
  • I am nickswalker (https://keybase.io/nickswalker) on keybase.
  • I have a public key whose fingerprint is A742 8BE7 338A 3847 64BA 9E3F 101B F5D6 8B9A C63C

To claim this, I am signing this object:

@nickswalker
nickswalker / gist:097b2b3d7a7ce4ca1797d8f8fc4fcd15
Created June 20, 2017 21:07
catkin tools binary symlink collision md5 crash
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/catkin_tools/execution/stages.py", line 174, in function_proxy
return function(logger, event_queue, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/catkin_tools/jobs/catkin.py", line 291, in link_devel_products
source_hash = md5(open(os.path.realpath(source_file)).read().encode('utf-8')).hexdigest()
UnicodeDecodeError: 'ascii' codec can't decode byte 0x97 in position 41: ordinal not in range(128)
Stage `symlink` failed with arguments:
package: {'package_format': 2, 'exports': [], 'buildtool_export_depends': [], 'exec_depends': [<catkin_pkg.package.Dependency object at 0x7f4314a199b0>, <catkin_pkg.package.Dependency object at 0x7f4314a19a10>, <catkin_pkg.package.Dependency object at 0x7f4314a19a70>, <catkin_pkg.package.Dependency object at 0x7f4314a19ad0>, <catkin_pkg.package.Dependency object at 0x7f4314a19b30>, <catkin_pkg.package.Dependency object at 0x7f4314a19b90>, <catkin_pkg.package.Dependency object at 0x7f
@nickswalker
nickswalker / lesson.md
Created June 7, 2017 23:53
Welcome to the Web!

How are webpages made?

Goal: understand the basic elements that webpages are built from.

Intro to tags

HTML is a language for expressing documents. The webpages that we see are just HTML documents.

Do this: Make a new file and call it mywebpage.html. Try typing some text into this document (like Hello World!), then right click and open it with Chrome.

@nickswalker
nickswalker / toggleState
Last active August 29, 2015 13:59
How to make a toggle switch from a push-button using software. Call a function in the main loop that changes the toggle variables state only when it picks up changes in the pin state. Differentiates between button press and button release.
const int buttonPin = 5;
const int ledPin = 13;
void setup() {
Serial.begin(9600);
pinMode(buttonPin, INPUT);
pinMode(ledPin, OUTPUT);
digitalWrite(ledPin, LOW);
}
@nickswalker
nickswalker / byteStream.ino
Last active August 29, 2015 13:58 — forked from volca/serial.ino
Get Bytes from BLE Serial Connection (BlueShield)
#define MESSAGE_SIZE 18 //Message is capped at 18 bytes due to the BLE profile. If we try to get any more we simply get the same values on loop
byte message[MESSAGE_SIZE];
void setup() {
Serial.begin(9600);
}
void loop() {
while (Serial.available() > 0) {
Serial.setTimeout(100);