"
],
"text/plain": [
" 59 16 \\\n",
"0 Static Analysis isnt Development Testing A Concept Design for C++ \n",
"1 Test Driven Development Really Works - The Hil... It Is Not Called The \"STL\", Mmkay? \n",
"2 My love affair with code reviews Interesting Standard Libraries to Study (Ltu) \n",
"3 Thoughts on Developer Testing A Brief, Incomplete, and Mostly Wrong History ... \n",
"4 The Problems with Unit Testing Frameworks Moving from Java to Scala - One year later... \n",
"\n",
" 5 2 51 \\\n",
"0 Elucidating all about Code Analysis in Visual C++ The Javascript Garden Clarifying the Roles of the .gemspec and Gemfile \n",
"1 Collection of Examples of 64-bit Errors in Rea... JavaScript Garden Clarifying the Roles of the .gemspec and Gemfile \n",
"2 Improving and Fixing C Code Javascript Garden Running Pure Django Projects on Google App Engine \n",
"3 The Art of Picking Intel Registers (2003) Understanding Python Decorators Beginning Ember.js on Rails: Part 1 \n",
"4 A Collection of Examples of 64-bit Errors in R... Understanding Python Decorators Backbone vs Ember \n",
"\n",
" 6 48 \\\n",
"0 Working with Design Patterns in JAVA ASF comment on JSR#336 (Java 7) review ballot \n",
"1 Working with interfaces in JAVA Why Open Source misses the point of Free Software \n",
"2 Dependency Injection - An Introductory Tutoria... Qt to ship standard in Ubuntu 11.10 \n",
"3 Tinyweb Does Mono JSRs for Java 7 and Java 8 Approved \n",
"4 Using MEF to expose interfaces in your Silverl... Control Points and Steering Mechanisms in Open... \n",
"\n",
" 68 \n",
"0 A Hacker\\u2019s Guide to Git \n",
"1 Git Workflows & tutorials by Atlassian \n",
"2 Cheat git \n",
"3 Develop Faster: Set Up Your Git Fork and Merge... \n",
"4 Git: Merging the right way "
]
},
"execution_count": 23,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"top_docs(code_topics.index).head(5)"
]
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"code_topics = code_topics[code_topics > 0.02]"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/html": [
"
"
],
"text/plain": [
" 57 38 65 70\n",
"0 app game time movie\n",
"1 apps player day film\n",
"2 developer video game work show\n",
"3 application gaming hour story\n",
"4 user developer week episode"
]
},
"execution_count": 31,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"top_topic_terms(top_topics.index)[0:5]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"To look at the all of the topics you are reduced to looking at a wall of words or tables:"
]
},
{
"cell_type": "code",
"execution_count": 33,
"metadata": {
"collapsed": false
},
"outputs": [
{
"data": {
"text/html": [
"
\n",
"
\n",
" \n",
"
\n",
"
\n",
"
1
\n",
"
2
\n",
"
3
\n",
"
4
\n",
"
5
\n",
"
6
\n",
"
7
\n",
"
8
\n",
"
9
\n",
"
10
\n",
"
11
\n",
"
12
\n",
"
13
\n",
"
14
\n",
"
15
\n",
"
16
\n",
"
17
\n",
"
18
\n",
"
19
\n",
"
20
\n",
"
21
\n",
"
22
\n",
"
23
\n",
"
24
\n",
"
25
\n",
"
...
\n",
"
76
\n",
"
77
\n",
"
78
\n",
"
79
\n",
"
80
\n",
"
81
\n",
"
82
\n",
"
83
\n",
"
84
\n",
"
85
\n",
"
86
\n",
"
87
\n",
"
88
\n",
"
89
\n",
"
90
\n",
"
91
\n",
"
92
\n",
"
93
\n",
"
94
\n",
"
95
\n",
"
96
\n",
"
97
\n",
"
98
\n",
"
99
\n",
"
100
\n",
"
\n",
" \n",
" \n",
"
\n",
"
0
\n",
"
problem
\n",
"
function
\n",
"
world
\n",
"
government
\n",
"
code
\n",
"
class
\n",
"
number
\n",
"
scientist
\n",
"
research
\n",
"
system
\n",
"
market
\n",
"
browser
\n",
"
country
\n",
"
file
\n",
"
wikileaks
\n",
"
language
\n",
"
time
\n",
"
startup
\n",
"
data
\n",
"
android
\n",
"
health
\n",
"
law
\n",
"
energy
\n",
"
idea
\n",
"
company
\n",
"
...
\n",
"
experience
\n",
"
google
\n",
"
car
\n",
"
design
\n",
"
business
\n",
"
video
\n",
"
seo
\n",
"
event
\n",
"
service
\n",
"
blog
\n",
"
email
\n",
"
music
\n",
"
service
\n",
"
photo
\n",
"
question
\n",
"
atau
\n",
"
home
\n",
"
february
\n",
"
shoe
\n",
"
feature
\n",
"
india
\n",
"
ask hn
\n",
"
ask hn
\n",
"
ask hn
\n",
"
ask hn
\n",
"
\n",
"
\n",
"
1
\n",
"
system
\n",
"
type
\n",
"
life
\n",
"
money
\n",
"
bit
\n",
"
method
\n",
"
point
\n",
"
science
\n",
"
study
\n",
"
process
\n",
"
company
\n",
"
javascript
\n",
"
china
\n",
"
package
\n",
"
information
\n",
"
code
\n",
"
man
\n",
"
company
\n",
"
database
\n",
"
device
\n",
"
drug
\n",
"
state
\n",
"
water
\n",
"
time
\n",
"
market
\n",
"
...
\n",
"
developer
\n",
"
search
\n",
"
vehicle
\n",
"
designer
\n",
"
company
\n",
"
content
\n",
"
brick marketing
\n",
"
conference
\n",
"
phone
\n",
"
post
\n",
"
message
\n",
"
artist
\n",
"
customer
\n",
"
image
\n",
"
answer
\n",
"
anda
\n",
"
service
\n",
"
january
\n",
"
fashion
\n",
"
laptop
\n",
"
travel
\n",
"
error
\n",
"
show hn
\n",
"
website
\n",
"
startup
\n",
"
\n",
"
\n",
"
2
\n",
"
model
\n",
"
object
\n",
"
man
\n",
"
economy
\n",
"
data
\n",
"
object
\n",
"
algorithm
\n",
"
researcher
\n",
"
brain
\n",
"
application
\n",
"
sale
\n",
"
firefox
\n",
"
united state
\n",
"
directory
\n",
"
government
\n",
"
programming
\n",
"
year ago
\n",
"
entrepreneur
\n",
"
table
\n",
"
phone
\n",
"
patient
\n",
"
court
\n",
"
power
\n",
"
goal
\n",
"
stock
\n",
"
...
\n",
"
skill
\n",
"
user
\n",
"
driver
\n",
"
website
\n",
"
money
\n",
"
youtube
\n",
"
website
\n",
"
presentation
\n",
"
call
\n",
"
site
\n",
"
mail
\n",
"
sound
\n",
"
company
\n",
"
picture
\n",
"
time
\n",
"
dalam
\n",
"
real estate
\n",
"
site
\n",
"
style
\n",
"
battery
\n",
"
hotel
\n",
"
der
\n",
"
comment
\n",
"
domain
\n",
"
idea
\n",
"
\n",
"
\n",
"
3
\n",
"
question
\n",
"
code
\n",
"
book
\n",
"
tax
\n",
"
bug
\n",
"
code
\n",
"
problem
\n",
"
cell
\n",
"
researcher
\n",
"
user
\n",
"
product
\n",
"
element
\n",
"
world
\n",
"
command
\n",
"
document
\n",
"
java
\n",
"
day
\n",
"
founder
\n",
"
query
\n",
"
google
\n",
"
treatment
\n",
"
obama
\n",
"
material
\n",
"
problem
\n",
"
share
\n",
"
...
\n",
"
company
\n",
"
chrome
\n",
"
system
\n",
"
web design
\n",
"
client
\n",
"
medium
\n",
"
company
\n",
"
talk
\n",
"
communication
\n",
"
wordpress
\n",
"
email address
\n",
"
audio
\n",
"
business
\n",
"
camera
\n",
"
topic
\n",
"
itu
\n",
"
house
\n",
"
online
\n",
"
sale
\n",
"
phone
\n",
"
match
\n",
"
request url
\n",
"
hacker news
\n",
"
site
\n",
"
advice
\n",
"
\n",
"
\n",
"
4
\n",
"
point
\n",
"
var
\n",
"
god
\n",
"
bank
\n",
"
program
\n",
"
data
\n",
"
result
\n",
"
animal
\n",
"
paper
\n",
"
data
\n",
"
revenue
\n",
"
html
\n",
"
government
\n",
"
version
\n",
"
assange
\n",
"
programmer
\n",
"
dog
\n",
"
investor
\n",
"
system
\n",
"
apple
\n",
"
doctor
\n",
"
lawyer
\n",
"
plant
\n",
"
life
\n",
"
investor
\n",
"
...
\n",
"
engineer
\n",
"
product
\n",
"
model
\n",
"
logo
\n",
"
idea
\n",
"
flash
\n",
"
marketing
\n",
"
day
\n",
"
technology
\n",
"
reader
\n",
"
service
\n",
"
band
\n",
"
solution
\n",
"
wallpaper
\n",
"
community
\n",
"
untuk
\n",
"
property
\n",
"
tip
\n",
"
quality
\n",
"
video
\n",
"
sport
\n",
"
mit
\n",
"
post
\n",
"
domain name
\n",
"
web app
\n",
"
\n",
" \n",
"
\n",
"
5 rows × 100 columns
\n",
"
"
],
"text/plain": [
" 1 2 3 4 5 6 7 8 9 10 11 12 13 \\\n",
"0 problem function world government code class number scientist research system market browser country \n",
"1 system type life money bit method point science study process company javascript china \n",
"2 model object man economy data object algorithm researcher brain application sale firefox united state \n",
"3 question code book tax bug code problem cell researcher user product element world \n",
"4 point var god bank program data result animal paper data revenue html government \n",
"\n",
" 14 15 16 17 18 19 20 21 22 23 24 25 ... \\\n",
"0 file wikileaks language time startup data android health law energy idea company ... \n",
"1 package information code man company database device drug state water time market ... \n",
"2 directory government programming year ago entrepreneur table phone patient court power goal stock ... \n",
"3 command document java day founder query google treatment obama material problem share ... \n",
"4 version assange programmer dog investor system apple doctor lawyer plant life investor ... \n",
"\n",
" 76 77 78 79 80 81 82 83 84 85 86 87 \\\n",
"0 experience google car design business video seo event service blog email music \n",
"1 developer search vehicle designer company content brick marketing conference phone post message artist \n",
"2 skill user driver website money youtube website presentation call site mail sound \n",
"3 company chrome system web design client medium company talk communication wordpress email address audio \n",
"4 engineer product model logo idea flash marketing day technology reader service band \n",
"\n",
" 88 89 90 91 92 93 94 95 96 97 98 99 100 \n",
"0 service photo question atau home february shoe feature india ask hn ask hn ask hn ask hn \n",
"1 customer image answer anda service january fashion laptop travel error show hn website startup \n",
"2 company picture time dalam real estate site style battery hotel der comment domain idea \n",
"3 business camera topic itu house online sale phone match request url hacker news site advice \n",
"4 solution wallpaper community untuk property tip quality video sport mit post domain name web app \n",
"\n",
"[5 rows x 100 columns]"
]
},
"execution_count": 33,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"all_top_terms().head(5)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.8"
},
"name": "Interpreting a model old school.ipynb"
},
"nbformat": 4,
"nbformat_minor": 0
}