Skip to content

Instantly share code, notes, and snippets.

View wetlife's full-sized avatar

Kyle Thomas wetlife

View GitHub Profile
@wetlife
wetlife / minimal-template.tex
Created June 18, 2019 06:09 — forked from Michael0x2a/minimal-template.tex
Minimal LaTeX template
\documentclass{article}
% General document formatting
\usepackage[margin=0.7in]{geometry}
\usepackage[parfill]{parskip}
\usepackage[utf8]{inputenc}
% Related to math
\usepackage{amsmath,amssymb,amsfonts,amsthm}
\begin{document}
@wetlife
wetlife / sklearn-data-consumption.txt
Last active October 21, 2018 16:44 — forked from anonymous/gist:b6e4c0c2aa3b90f82c49af9e640a050a
MWE: ingest data via sklearn
>>> from sklearn import preprocessing
>>> lb = preprocessing.LabelBinarizer()
>>> lb.fit_transform(['cat', 'dog', 'bird', 'cat'])
array([[0, 1, 0],
[0, 0, 1],
[1, 0, 0],
[0, 1, 0]])