A script that replicates all examples in my blog post using Python and Lea to do some probabilistic programming: Lea post
$ python lea_ex01.py
A script that replicates all examples in my blog post using Python and Lea to do some probabilistic programming: Lea post
$ python lea_ex01.py
A basic responsive web page, following the ideas presented in Learning Responsive Web Design by Clarissa Peterson.
This script provides an example of using cross-validation to fine-tune parameters for learning a decision tree with scikit-learn.
A blog post about this code is available here, check it out!
In a blog post I wrote about the python package lda, see here, I used the pre-processed data (included with the lda package) for the example. I have since received many questions regarding the document-term matrix, the titles, and the vocabulary-- where do they come from? This gist will use the textmining package to (hopefully) help answer these types of questions.
This script provides an example of learning a decision tree with scikit-learn. Pandas is used to read data and custom functions are employed to investigate the decision tree after it is learned. Grab the code and try it out.
A blog post about this code is available here, check it out!
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.
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
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
<!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"> |