Skip to content

Instantly share code, notes, and snippets.

@rjweiss
rjweiss / analysis.Rmd
Last active September 2, 2015 05:00
USE study
---
title: "USE Survey Analysis"
author: "Rebecca Weiss"
date: "Tuesday, September 01, 2015"
output: html_document
---
```{r, echo=FALSE, warning=FALSE, results='hide', message=FALSE}
require("plyr")
@rjweiss
rjweiss / etcML
Created November 22, 2013 08:26
etcML blogpost demo code
library(ggplot2)
library(stringr)
library(scales)
library(plyr)
library(car)
predictions = read.csv('job831_predictions.tsv', sep="\t") # the job file from etcml as is
metadata = read.csv('etcml_iarchive_0106_full.tsv', header=F, stringsAsFactors=F) # my metadata from the archive
# this is rather sloppy but i'm lazy
@rjweiss
rjweiss / textanalysis
Created November 21, 2013 06:53
textanalysis
{
"metadata": {
"name": "textanalysis.ipynb"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@rjweiss
rjweiss / tfidf
Created November 21, 2013 06:50
tfidf
{
"metadata": {
"name": "tfidf.ipynb"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@rjweiss
rjweiss / regex
Created November 21, 2013 06:44
Regex
{
"metadata": {
"name": "regex_lecture.ipynb"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@rjweiss
rjweiss / cleaning_text
Last active December 28, 2015 23:09
cleaning text
{
"metadata": {
"name": "cleaningtext.ipynb"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@rjweiss
rjweiss / file_formats
Last active December 28, 2015 23:09
File formats
{
"metadata": {
"name": "fileformats_solutions.ipynb"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@rjweiss
rjweiss / encoding
Last active December 28, 2015 23:09
encoding
{
"metadata": {
"name": "encoding_lecture.ipynb"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "Python_sentiment.ipynb"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@rjweiss
rjweiss / Python_classification
Last active August 25, 2016 23:06
Python notebook from MozFest 2013
{
"metadata": {
"name": "Python_classification.ipynb"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{