This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Distributions | |
using Plots | |
gr(label="", dpi=200, size=(400,300), lw=2) | |
α, β = 1, 5 | |
prior = Beta(α, β) | |
max_n = 25 | |
n = 0:max_n | |
posterior = Beta.(α .+ n, β) # Assuming θ = 1, we always get heads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -*- mode: c++ -*- | |
// Copyright 2016 Keyboardio, inc. <jesse@keyboard.io> | |
// See "LICENSE" for license details | |
#ifndef BUILD_INFORMATION | |
#define BUILD_INFORMATION "locally built" | |
#endif | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -*- mode: c++ -*- | |
// Copyright 2016 Keyboardio, inc. <jesse@keyboard.io> | |
// See "LICENSE" for license details | |
#ifndef BUILD_INFORMATION | |
#define BUILD_INFORMATION "locally built" | |
#endif | |
/** | |
* These #include directives pull in the Kaleidoscope firmware core, |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BOARD_HARDWARE_PATH="/Users/fred/Documents/Arduino/hardware" /Users/fred/Documents/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope/bin//kaleidoscope-builder build-all | |
Building ./Model01-Firmware 0.0.0-gv1.22-75-g03be into /var/folders/n0/lkhl85vn0951js8ct7ld_1br0000gn/T//kaleidoscope-fred/sketch/12886325562-Model01-Firmware.ino/output | |
In file included from /Users/fred/Documents/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope/src/kaleidoscope/key_defs.h:22:0, | |
from /Users/fred/Documents/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope/src/kaleidoscope_internal/sketch_exploration/keymap_exploration.h:19, | |
from /Users/fred/Documents/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope/src/kaleidoscope_internal/sketch_exploration/sketch_exploration.h:19, | |
from /Users/fred/Documents/Arduino/hardware/keyboardio/avr/libraries/Kaleidoscope/src/kaleidoscope_internal/event_dispatch.h:41, | |
from /Users/fred/Documents/Arduino/hardware/ke |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HIT Configuration] | |
title = Block stacking experiment (~15 minutes) | |
description = Solve block stacking puzzles in this Psychology experiment | |
amt_keywords = Psychology | |
lifetime = 24 | |
us_only = true | |
approve_requirement = 95 | |
contact_email_on_error = cocosci.turk@gmail.com | |
ad_group = Default psiTurk | |
organization_name = Princeton University |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pymc3 as pm | |
import theano | |
class StochasticMatrix(pm.Continuous): | |
"""A stochastic matrix has rows that sum to 1.""" | |
def __init__(self, theta, *args, **kwargs): | |
shape = (theta.shape[-1], theta.shape[-1]) | |
kwargs.setdefault('shape', shape) | |
super(StochasticMatrix, self).__init__(*args, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Hidden Markov Models | |
Abstract base class for HMMs and an implementation of an HMM | |
with discrete states and gaussian emissions. | |
""" | |
import tensorflow as tf | |
import edward as ed | |
from edward.models import Bernoulli, Categorical, Normal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@font-face { | |
font-family: 'Cinzel'; | |
font-style: normal; | |
font-weight: 400; | |
src: local('Cinzel-Regular'), url(//themes.googleusercontent.com/static/fonts/cinzel/v1/mLL0ZqnXRx3m16FnBy9gcg.woff) format('woff'); | |
} | |
@font-face { | |
font-family: 'Droid Sans'; | |
font-style: normal; | |
font-weight: 400; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
""" | |
Approves and bonuses (if applicable) all workers in the database for the | |
current psiturk project. | |
""" | |
from __future__ import print_function | |
from psiturk.amt_services_wrapper import MTurkServicesWrapper, Participant, init_db, db_session | |
wrapper = MTurkServicesWrapper() |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder