Skip to content

Instantly share code, notes, and snippets.

View cstrelioff's full-sized avatar

Chris Strelioff cstrelioff

View GitHub Profile
@cstrelioff
cstrelioff / README.md
Last active June 4, 2018 16:31
decision trees: scikit-learn + pandas

decision trees: scikit-learn + pandas

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!

@cstrelioff
cstrelioff / README.md
Last active August 13, 2018 17:09
textmine + lda in python

process corpus for lda

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.

decision trees: cross-validation

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!

Requirements

@cstrelioff
cstrelioff / README.md
Created April 2, 2015 18:35
a basic responsive page
@cstrelioff
cstrelioff / README.md
Last active February 2, 2024 12:12
python + lea: probabilisitc programming

A script that replicates all examples in my blog post using Python and Lea to do some probabilistic programming: Lea post

Run all the examples

    $ python lea_ex01.py