Skip to content

Instantly share code, notes, and snippets.

View Pzoom522's full-sized avatar
❤️
in love with 🥚

Xutan Peng Pzoom522

❤️
in love with 🥚
View GitHub Profile
const musicNotify = () => {
const m = '/storage/emulated/0/Download/WeiXin/平凡之路.mp3'
media.playMusic(m);
sleep(media.getMusicDuration());
}
const to_mall_cart = () => {
shopping_cart_btn=id('img_shopping_cart').findOne()
@yoavg
yoavg / stochastic-critique.md
Last active November 9, 2023 04:32
A criticism of Stochastic Parrots

A criticism of "On the Dangers of Stochastic Parrots: Can Languae Models be Too Big"

Yoav Goldberg, Jan 23, 2021.

The FAccT paper "On the Dangers of Stochastic Parrots: Can Languae Models be Too Big" by Bender, Gebru, McMillan-Major and Shmitchell has been the center of a controversary recently. The final version is now out, and, owing a lot to this controversary, would undoubtly become very widely read. I read an earlier draft of the paper, and I think that the new and updated final version is much improved in many ways: kudos for the authors for this upgrade. I also agree with and endorse most of the content. This is important stuff, you should read it.

However, I do find some aspects of the paper (and the resulting discourse around it and around technology) to be problematic. These weren't clear to me when initially reading the first draft several months ago, but they became very clear to me now. These points are for the most part

@hfiller
hfiller / script.py
Last active November 19, 2020 20:32
Basic program to get 2d Projection
import numpy as np
import matplotlib.pyplot as plt
import json
with open("/path/to/state.txt") as f:
bookmarks = json.load(f)
bookmark = bookmarks[0] # We'll look at the first bookmark
eye = np.array(bookmark["cameraDef"]["position"])
@kawine
kawine / cspmi.py
Last active October 4, 2019 07:53
import numpy as np
from scipy.stats import pearsonr, ttest_ind
from scipy.spatial.distance import cosine
ANALOGY_VOCAB = set([]) # specify your vocabulary
class pair2joint(object):
"""Load co-occurrence counts and calculate PMI and csPMI."""
def __init__(self, fn='counts.txt'):
"""
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.