A script that replicates all examples in my blog post on inferring probabilities-- see my bayes post for more information.
$ python ex001_bayes.py
A script that replicates all examples in my blog post on inferring probabilities-- see my bayes post for more information.
$ python ex001_bayes.py
A script that replicates all examples in my blog post using Python to get data from the Socrata API: Socrata post
$ python ex004_socrata_api.py
A basic responsive web page, following the ideas presented in Learning Responsive Web Design by Clarissa Peterson, with additional JavaScript to output the current window size as well as the size of various HTML elements in the page.
A script that replicates all examples in my blog post on revisiting the Bayesian medical tests example-- using Python and Lea to do some probabilistic programming: Medical test/Lea post
$ python lea_ex02.py
This is an example of using external javascript files and using the jquery ready() method to execute code when the DOM is loaded (ie, ready). To get this to work:
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>responsive svg bar chart</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- styles: should have reset.css first --> | |
<link rel="stylesheet" href= "reset.css"> | |
<link rel="stylesheet" href= "main.css"> |
A script that replicates all examples in my blog post on using the lda
Python package for Latent Dirichlet Allocation-- see
my lda post for more information.
$ python ex002_lda.py
A script that replicates all examples in my blog post on inferring probabilities using a Beta prior-- see bayes post for more information.
$ python ex003_bayes.py
This gist shows one way to write the topic distribution for each document to a csv file-- this can be loaded into Excel, or similar program, for viewing. The topic distribution considered here is created by the Python package lda. See my blog post on lda for more information.