layout | title | author |
---|---|---|
post |
GSoC 2017 Project: MCMC with flexible numbers of parameters |
Jameson Quinn |
This file contains hidden or 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
age | height | gender | |
---|---|---|---|
48.2486907273 | 161.116010103 | female | |
43.7764871727 | 160.437072575 | female | |
43.9436564955 | 161.277734626 | female | |
42.8540627557 | 159.994006571 | female | |
46.7308152586 | 160.041904389 | female | |
40.3969226062 | 176.11423493 | female | |
48.4896235284 | 161.182731906 | female | |
43.4775861982 | 175.859100061 | male | |
45.6380781921 | 160.698862897 | female |
This file contains hidden or 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 os | |
from collections import defaultdict | |
import numpy as np | |
import scipy.stats | |
import torch | |
ts = torch.tensor | |
mt = torch.empty | |
zs = torch.zeros | |
import torch.distributions as dist | |
from torch.distributions import constraints |
This file contains hidden or 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
brew link --overwrite gettext --force | |
ls /usr/local/Homebrew/Library/Homebrew/tab.rb | |
pico /usr/local/Homebrew/Library/Homebrew/tab.rb | |
brew link --overwrite gettext --force | |
rm -r /usr/local/Cellar/gettext/ | |
rm -rf /usr/local/Cellar/gettext/ | |
brew link --overwrite gettext --force | |
brew install gettext | |
brew link --overwrite gettext --force |
This file contains hidden or 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
chema$ brew config | |
HOMEBREW_VERSION: 1.1.7-dirty | |
ORIGIN: https://github.com/Homebrew/brew.git | |
HEAD: 9cce3414fbd39d146d97911dbb3bf07fffaa1080 | |
Last commit: 9 days ago | |
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core | |
Core tap HEAD: a85897dc012ebb8a354c318ed94e2e23154977fc | |
Core tap last commit: 87 minutes ago | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_REPOSITORY: /usr/local/Homebrew |
This grouped bar chart is constructed from a CSV file storing the populations of different states by age group. The chart employs conventional margins and a number of D3 features:
- d3.csv - load and parse data
- d3.scale.ordinal - x-position encoding and color encoding
- d3.scale.linear - y-position encoding
- d3.format - SI prefix formatting (e.g., “10M” for 10,000,000)
- d3.max - compute domains
- d3.keys - compute column names
- d3.svg.axis - display axes
This is a reimplementation of the Grouped Bar Chart by Mike Bostock. Although useful, I found the original's minimal comments and inverted axes hard to follow, so I created the version you see here.
This file contains hidden or 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
user www-data; | |
worker_processes 4; | |
pid /run/nginx.pid; | |
events { | |
worker_connections 768; | |
# multi_accept on; | |
} | |
http { |
This file contains hidden or 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
Meteor.publish "muserData", -> | |
if @userId | |
slog "publishing muid", @userId | |
MyUsers.find | |
_id: @userId | |
, | |
fields: userFields | |
else |
This file contains hidden or 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
()xxx-MacBook-Pro:Cellar chema$ brew doctorWarning: /usr/local/share/python is not needed in PATH. | |
Formerly homebrew put Python scripts you installed via `pip` or `pip3` | |
(or `easy_install`) into that directory above but now it can be removed | |
from your PATH variable. | |
Python scripts will now install into /usr/local/bin. | |
You can delete anything, except 'Extras', from the /usr/local/share/python | |
(and /usr/local/share/python3) dir and install affected Python packages | |
anew with `pip install --upgrade`. | |
()xxx-MacBook-Pro:Cellar chema$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install node 2>&1 | |
==> Downloading http://nodejs.org/dist/v0.10.15/node-v0.10.15.tar.gz |
NewerOlder