Skip to content

Instantly share code, notes, and snippets.

@bwallace
Created March 7, 2014 13:11
Show Gist options
  • Save bwallace/9411191 to your computer and use it in GitHub Desktop.
Save bwallace/9411191 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"metadata": {
"name": "irony"
},
"nbformat": 2,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": [
"cd dev/computational-irony/"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"/Users/bwallace/dev/computational-irony"
]
}
],
"prompt_number": 3
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import annotation_stats"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Version 2.1.5 of praw is outdated. Version 2.1.14 was released Monday February 24, 2014."
]
},
{
"output_type": "stream",
"stream": "stderr",
"text": [
"/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/nose/util.py:14: DeprecationWarning: The compiler package is deprecated and removed in Python 3.x.",
" from compiler.consts import CO_GENERATOR"
]
}
],
"prompt_number": 4
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"annotation_stats.pretense()"
],
"language": "python",
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Optimization terminated successfully.",
" Current function value: 0.511413",
" Iterations 5",
" --- conservative ---",
" Logit Regression Results ",
"==============================================================================",
"Dep. Variable: y No. Observations: 5047",
"Model: Logit Df Residuals: 5045",
"Method: MLE Df Model: 1",
"Date: Fri, 07 Mar 2014 Pseudo R-squ.: 0.003997",
"Time: 08:03:03 Log-Likelihood: -2581.1",
"converged: True LL-Null: -2591.5",
" LLR p-value: 5.322e-06",
"==============================================================================",
" coef std err z P>|z| [95.0% Conf. Int.]",
"------------------------------------------------------------------------------",
"const -1.4273 0.041 -34.490 0.000 -1.508 -1.346",
"x1 3.1324 0.670 4.676 0.000 1.819 4.445",
"==============================================================================",
"Optimization terminated successfully."
]
},
{
"output_type": "stream",
"stream": "stdout",
"text": [
"",
" Current function value: 0.513370",
" Iterations 5",
"",
" --- liberal ---",
" Logit Regression Results ",
"==============================================================================",
"Dep. Variable: y No. Observations: 5118",
"Model: Logit Df Residuals: 5116",
"Method: MLE Df Model: 1",
"Date: Fri, 07 Mar 2014 Pseudo R-squ.: 0.01970",
"Time: 08:03:19 Log-Likelihood: -2627.4",
"converged: True LL-Null: -2680.2",
" LLR p-value: 9.127e-25",
"==============================================================================",
" coef std err z P>|z| [95.0% Conf. Int.]",
"------------------------------------------------------------------------------",
"const 4.2016 0.544 7.718 0.000 3.135 5.269",
"x1 -5.6706 0.563 -10.068 0.000 -6.775 -4.567",
"=============================================================================="
]
}
],
"prompt_number": 6
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment