Skip to content

Instantly share code, notes, and snippets.

Kimmy gcr

Block or report user

Report or block gcr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Congress.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gcr
gcr / rapid-image-viewer.rkt
Last active May 25, 2017
Tool for showing images
View rapid-image-viewer.rkt
#lang racket
;;
;; Displays a directory full of images in rapid succession.
;; Handy for checking annotations or finding irregularities
;; in large-scale datasets.
;;
;; Usage:
;; - racket rapid-image-viewer.rkt [imglist]
;; Will show all of the '*.jpg' files given as lines in `imglist`,
View OJ.csv
Purchase WeekofPurchase StoreID PriceCH PriceMM DiscCH DiscMM SpecialCH SpecialMM LoyalCH SalePriceMM SalePriceCH PriceDiff Store7 PctDiscMM PctDiscCH ListPriceDiff STORE
1 CH 237 1 1.75 1.99 0 0 0 0 0.5 1.99 1.75 0.24 No 0 0 0.24 1
2 CH 239 1 1.75 1.99 0 0.3 0 1 0.6 1.69 1.75 -0.06 No 0.150754 0 0.24 1
3 CH 245 1 1.86 2.09 0.17 0 0 0 0.68 2.09 1.69 0.4 No 0 0.091398 0.23 1
4 MM 227 1 1.69 1.69 0 0 0 0 0.4 1.69 1.69 0 No 0 0 0 1
5 CH 228 7 1.69 1.69 0 0 0 0 0.956535 1.69 1.69 0 Yes 0 0 0 0
6 CH 230 7 1.69 1.99 0 0 0 1 0.965228 1.99 1.69 0.3 Yes 0 0 0.3 0
7 CH 232 7 1.69 1.99 0 0.4 1 1 0.972182 1.59 1.69 -0.1 Yes 0.201005 0 0.3 0
8 CH 234 7 1.75 1.99 0 0.4 1 0 0.977746 1.59 1.75 -0.16 Yes 0.201005 0 0.24 0
9 CH 235 7 1.75 1.99 0 0.4 0 0 0.982197 1.59 1.75 -0.16 Yes 0.201005 0 0.24 0
View NIPS 2016 ML in the Law Symposium.org

ML in law symposium

Andreas’ idea: Given explainability / the ability to explain decisions, let’s maximize the performance we can get.

My three takeaways

  • Tech folks have a tendency to “fly in and fix everything.” That feels like a dangerous approach here. It’s far better to stand on the shoulders of existing legal precedent, which has studied fairness, discrimination, and bias for decades, even if that slows down progress.
  • Machine learning systems mirror and amplify bias by default. We cannot simply ignore sensitive attributes because the system averages loss over the majority. (Disparate mistreatment). Pithy corollary: this problem will only go away if we devote resources into making it go away.
  • Providing explanations for decisions is the only humane way to build automatic classification systems. Why? If I can’t test a result, I can’t contest it. If the decisions must be testable and explainable, they will be much more reliable as a result.
View org-entities-help.txt
Org-mode entities
=================
* User-defined additions (variable org-entities-user)
* Letters
** Latin
Symbol Org entity LaTeX code HTML code
-----------------------------------------------------------
À \Agrave \`{A} À
View ML in the Law symposium at NIPS 2016.md

NIPS ML in the Law symposium 2016 notes

Including notes for the second session and the first panel.

My three takeaways

  • Tech folks have a tendency to "fly in and fix everything." That feels like a dangerous approach here. It's far better to stand on the shoulders of existing legal precedent, which has studied fairness, discrimination, and bias for decades, even if that slows down progress.
  • Machine learning systems mirror and amplify bias by default. We cannot simply ignore sensitive attributes because the system averages loss over the majority. (Disparate mistreatment). Pithy corollary: this problem will only go away if we devote resources into making it go away.
  • Providing explanations for decisions is the only humane way to build automatic classification systems. Why? If I can't test a result, I can't contest it. If the decisions must be testable and explainable, they will be much more reliable as a result.

Aaron Roth: Quantitative tradeoffs between fairness and accuracy in machine learning

View Post-Election Moral Message Moving Forward NAACP Press Call.md

Rev. Dr. William J. Barber, II, President of the North Carolina NAACP November 11, 2017

This is a transcript of the "Post-Election "Moral Message Moving Forward" NC NAACP Press Call" held on November 11, 2017. https://www.youtube.com/watch?v=xYxAQv6IC5I

I apologize for any errors in transcription.

SHIRI: Welcome to the North Caroline NAACP press call. My name is Shiri and I will be your operator for today's call. Please note that this conference is being recorded. I would like to now turn this call over to Tyler Swanson. You may begin.

SWANSON: Thank you. Tonight, Reverend Dr. William J Barber II, president of the North Carolina NAACP is making an ultimate public statement to all one hundred branches of the ... of the NC NAACP, members of the Forward Together moral movement, and the state of North Carolina. Dr. Barber will take questions immediately after his statement.

@gcr
gcr / a.py
Created Sep 23, 2016
Right-aligned python
View a.py
import re
python_regex = re.compile(r"^(.*?)(\s*)$")
from IPython.core.magic import register_cell_magic, cell_magic, magics_class, Magics
@magics_class
class RightAlignMagics(Magics):
@cell_magic
def right_align(self, line, cell):
View MapReduce lecture
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"ein.tags": [
"worksheet-0"
]
},
"source": [
View bookshare_convert.py
#!/usr/bin/env python
import sys
from glob import glob
"""
Convert the XML file into a nice-looking HTML file suitable for reading in
Chrome
"""
You can’t perform that action at this time.