Skip to content

Instantly share code, notes, and snippets.

View tangert's full-sized avatar
🐢
turtles all the way down

Tyler Angert tangert

🐢
turtles all the way down
View GitHub Profile
@tangert
tangert / gensim_word2vec_procrustes_align.py
Last active June 6, 2024 18:00 — forked from quadrismegistus/gensim_word2vec_procrustes_align.py
Function to align any number of word2vec models using Procrustes matrix alignment.
# Code originally ported from HistWords <https://github.com/williamleif/histwords> by William Hamilton <[email protected]>.
def align_gensim_models(models, words=None):
"""
Returns the aligned/intersected models from a list of gensim word2vec models.
Generalized from original two-way intersection as seen above.
Also updated to work with the most recent version of gensim
Requires reduce from functools
@tangert
tangert / data.json
Last active November 13, 2018 04:04
MMLA Transcript Analysis
{
"name": "Transcript data",
"children": [
{
"name": "Cluster 1",
"children": [
{"name": "tilted", "size": 0.767 },
{"name": "towards", "size": 0.199 },
{"name": "away", "size": 0.186 },
{"name": "north", "size": 0.098 },
@tangert
tangert / .block
Last active April 24, 2018 23:26
FREEEESH
license: mit
@tangert
tangert / .block
Last active April 30, 2018 02:08
Clustering Last.fm Users
license: mit
@tangert
tangert / .block
Last active February 21, 2018 03:58
Scales
license: mit
@tangert
tangert / .block
Last active February 21, 2018 03:55
SVGs and bar charts
license: mit
@tangert
tangert / .block
Last active February 21, 2018 03:33
SVGs and circles
license: mit
@tangert
tangert / .block
Last active February 21, 2018 02:33
Data Binding learning
license: mit
@tangert
tangert / .block
Created February 19, 2018 15:11
fresh block
license: mit
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.