Skip to content

Instantly share code, notes, and snippets.

View DanielWeitzenfeld's full-sized avatar

Dan DanielWeitzenfeld

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DanielWeitzenfeld
DanielWeitzenfeld / ordinal_pymc3_DBDA23.2.2.py
Created December 5, 2016 14:31
functional implementation of ordinal predicted variable
import seaborn as sns
import pymc3 as pm
import numpy as np
from scipy.stats import norm
import pandas as pd
import theano.tensor as T
from theano.compile.ops import as_op
# Generate True data
@DanielWeitzenfeld
DanielWeitzenfeld / ordinal_pymc3.py
Created December 3, 2016 22:39
Ordinal model in pymc3
import pymc3 as pm
import numpy as np
import theano.tensor as T
from theano.compile.ops import as_op
from scipy.stats import norm
# trying to implement a model similar to the one in Doing Bayesian Data Analysis 23.4
# ordinal predicted variable, metric predictor
# generate fake likert-scale data, as generated by 50 different raters
@DanielWeitzenfeld
DanielWeitzenfeld / looker_annotation_coverage.py
Created July 24, 2015 16:05
Script to calculate annotation coverage on a LookML repo
import os
import sys
import yaml
import pandas as pd
# Generates CSVs with aggregate stats about your LookML:
# % of dimensions and measures that have descriptions
# % of dashboard elements with a note