In [338]:
# -*- coding: utf-8 -*-
#author: DCook
#data August 2017
import BeautifulSoup as bs 
import requests 
import os
import re
import pandas 
import numpy 
import graphlab

#daniel.cook@student.hu-berlin.de 
#graphlab.product_key.get_product_key()
In [339]:
###################################################################################################
# Set your path. You write text files here and you save the SFrame.

workDir=os.path.normpath('/Users/cookdj0128/ml/')   

# Do not be a square. Failure to follow the rules may result in data loss. 
###################################################################################################
In [757]:
for x in range(25):
    d = graphlab.SFrame.read_json(workDir+os.sep+'standford_philos.json')
    d["top_word"] = None
    http = requests.get("https://plato.stanford.edu/cgi-bin/encyclopedia/random")
    soup = bs.BeautifulSoup(http.content)
    #Get the p tags and string them.
    thisEntry=[]
    for tag in soup.findAll("p"):
        thisEntry.append(tag.text)
    try:
        text = [i.strip().replace("\n"," ") for i in thisEntry]
    except:
        text = [i.encode('utf-8').strip().replace("\n"," ") for i in thisEntry]
    strText=[]
    for i in text:
        try:
            i = str(i).replace("<em>"," ").replace("</em>", " ")
            strText.append(i)
        except:
            i = str(i.encode("utf-8")).replace("<em>"," ").replace("</em>", " ")
            strText.append(i)     
    #get the title and string it 
    try:
        title = str(soup.title.text.replace('(Stanford Encyclopedia of Philosophy)', '')).rstrip()
        strText =    str(strText)[2:]
        x = re.sub(r'[^a-zA-Z]', " ", strText[0:])
    except:
        str(soup.title.text.encode('utf-8')).replace('(Stanford Encyclopedia of Philosophy)', '').rstrip()
        strText =    str(strText)[2:]
        x = re.sub(r'[^a-zA-Z]', " ", strText[0:])
    #get the authors and string them 
    authors=[]
    for i in soup.findAll('meta'):
        try: 
            metaContent = str(i['content'])
        except:
            metaContent = str(i['content'].encode("utf-8"))
        if metaContent not in authors:
            if 'initial-scale' not in metaContent:
                if 'html' not in metaContent:
                    if 'noarchive' not in metaContent:
                        if title not in metaContent:
                            if '20' not in  metaContent:
                                if '19' not in   metaContent:
                                    authors.append( metaContent)

    #save our txt file                             
    with open(workDir+os.sep+title.replace(" ", "")+".txt",'w') as f:
        f.write(strText)
    text=[]
    
    #read our text file back in 
    with open(workDir+os.sep+title.replace(" ", "")+".txt",'rU') as f:
        for line in f:
            text.append(line)
            
    #send our text to the pd.df and gl.SFrame for analysis 
    text = text[0]
    text = graphlab.SArray([text])
    df = pandas.DataFrame([['','','']], columns=['entry', 'authors', 'text'])
    text = graphlab.text_analytics.trim_rare_words(text)
    df['text'] = text
    df["entry"] = title 
    df["authors"] = str(authors).replace("[","").replace("]","").lower()
    df=graphlab.SFrame(df)
    df=graphlab.SFrame(df)
    df['text'] = graphlab.text_analytics.trim_rare_words(df['text']) 
    df['word_count']=graphlab.text_analytics.count_words(df['text'])
    df_table = df[['word_count']].stack('word_count', new_column_name=['word', 'count'])
    df["top_word"] = None
    print"WORD COUNTS", "FOR ", title.upper(), " COMPLETE. SAVING DF."

    d = d.append(df)
    #Save without the TFIDF or TOP words COMPUTER!!!!!
    d.save('/Users/cookdj0128/ml/standford_philos.json', "json")

print "----------------------------------------------------"
print "CORPUS"
print d.head()

print "COMPUTING TF-IDF"
tfidf = graphlab.text_analytics.tf_idf(d['word_count'])
d['tfidf'] = tfidf
d_table = d[['tfidf']].stack('tfidf', new_column_name=['word', 'count'])

print "CORPUS WORD COUNTS SORTED BY TF-IDF"
d_table.sort('count', ascending=False).print_rows(10)
print "----------------------------------------------------"


print "MODELING"
knn_model = graphlab.nearest_neighbors.create(d,features=['tfidf'],label='entry',distance='cosine')
cosine_dissimilarity = {}
topwords = []
for entries in d['entry']:
    print entries
    this_entry = d[d['entry']==entries]
    this_entry_tfidf = this_entry[['tfidf']].stack('tfidf',new_column_name=['word','tfidf']).sort('tfidf',ascending=False)
    iterate=iter(range(100))
    cosine = graphlab.distances.cosine(d['tfidf'][0],this_entry['tfidf'][0])
    while len(topwords)<len(d["top_word"]):
        n=iterate.next()
        if "&" not in this_entry_tfidf["word"][n]:
            if "\\" not in this_entry_tfidf["word"][n]:
                if "/" not in this_entry_tfidf["word"][n]:
                    if "." not in this_entry_tfidf["word"][n]:
                        if "," not in this_entry_tfidf["word"][n]:
                            if ";" not in this_entry_tfidf["word"][n]:
                                if this_entry_tfidf["word"][n] not in [this_entry["entry"][0].lower()]:
                                    if this_entry_tfidf["word"][n] not in this_entry["authors"]:
                                        if len(this_entry_tfidf["word"][n])>3:
                                            if "-" not in this_entry_tfidf["word"][n]:
                                                topword = this_entry_tfidf["word"][n]
                                                topwords.append(topword)
    d["top_word"] = topwords
    print "Cosine between entry and corpus: ", cosine
    cosine_similarity[entries] = cosine
    
    #Retrieving nearest entry neighbors for this_entry:
    nearestNeighbors = knn_model.query(this_entry);
    print "Nearest Nieghbors for ", entries
    print nearestNeighbors.head()

print "FINISHING UP"
print d.head()
print cosine_dissimilarity
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.138657 secs.
WORD COUNTS FOR  THE PROBLEM OF THE MANY  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.086305 secs.
WORD COUNTS FOR  PHILOSOPHY OF PSYCHIATRY  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.081197 secs.
WORD COUNTS FOR  HERMANN COHEN  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.082667 secs.
WORD COUNTS FOR  SAINT BONAVENTURE  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.086725 secs.
WORD COUNTS FOR  JOSIAH ROYCE  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.082987 secs.
WORD COUNTS FOR  DESCARTES' LIFE AND WORKS  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.088694 secs.
WORD COUNTS FOR  THOMAS HOBBES  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.091415 secs.
WORD COUNTS FOR  IDENTITY POLITICS  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.08866 secs.
WORD COUNTS FOR  THEORY AND OBSERVATION IN SCIENCE  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.085243 secs.
WORD COUNTS FOR  PUFENDORF'S MORAL AND POLITICAL PHILOSOPHY  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.095834 secs.
WORD COUNTS FOR  SCIENCE AND PSEUDO-SCIENCE  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.091498 secs.
WORD COUNTS FOR  PROVABILITY LOGIC  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.097717 secs.
WORD COUNTS FOR  CAUSATION IN ARABIC AND ISLAMIC THOUGHT  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.086001 secs.
WORD COUNTS FOR  PHILIP THE CHANCELLOR  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.118735 secs.
WORD COUNTS FOR  THE PHILOSOPHY OF COMPUTER SCIENCE  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.107628 secs.
WORD COUNTS FOR  JAPANESE CONFUCIAN PHILOSOPHY  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.101856 secs.
WORD COUNTS FOR  WITTGENSTEIN'S AESTHETICS  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.097452 secs.
WORD COUNTS FOR  SNARK  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.092682 secs.
WORD COUNTS FOR  MARTIN BUBER  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.098361 secs.
WORD COUNTS FOR  COERCION  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.095177 secs.
WORD COUNTS FOR  COERCION  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.112966 secs.
WORD COUNTS FOR  LOGIC AND PROBABILITY  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.113958 secs.
WORD COUNTS FOR  MARTIN BUBER  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.103896 secs.
WORD COUNTS FOR  QUANTUM THEORY: VON NEUMANN VS. DIRAC  COMPLETE. SAVING DF.
Finished parsing file /Users/cookdj0128/ml/standford_philos.json
Parsing completed. Parsed 1 lines in 0.107418 secs.
WORD COUNTS FOR  FRIEDRICH HEINRICH JACOBI  COMPLETE. SAVING DF.
----------------------------------------------------
CORPUS
+-------------------------------+--------------------------------+
|            authors            |             entry              |
+-------------------------------+--------------------------------+
|        'tuckness, alex'       |  Locke's Political Philosophy  |
| 'tognazzini, neal', 'coate... |             Blame              |
|        'stroud, sarah'        |        Weakness of Will        |
|     'ghirardi, giancarlo'     |       Collapse Theories        |
|        'mason, elinor'        |        Value Pluralism         |
| 'lebar, mark', 'slote, mic... |      Justice as a Virtue       |
|         'proops, ian'         | Wittgenstein's Logical Atomism |
|          'kemp, gary'         |    Collingwood's Aesthetics    |
|       'beaney, michael'       |            Analysis            |
|        'kelly, thomas'        |            Evidence            |
+-------------------------------+--------------------------------+
+-------------------------------+-------------------------------+----------+
|              text             |           word_count          | top_word |
+-------------------------------+-------------------------------+----------+
| john locke is among the mo... | {'government,': 5, 'limite... |   None   |
| to blame someone is to res... | {'all': 11, '&hellip;': 3,... |   None   |
| there is nothing puzzling ... | {'considered,': 4, 'all': ... |   None   |
| quantum mechanics, with it... | {'represent': 3, 'all': 28... |   None   |
| the generally refers to th... | {'all': 22, 'concept': 5, ... |   None   |
| the notion of justice as a... | {'represent': 2, 'all': 9,... |   None   |
| it has logical atomism was... | {'thetractatusdoes': 2, 'a... |   None   |
| collingwood was a general ... | {'represent': 2, 'all': 18... |   None   |
| analysis has always been a... | {'all': 15, 'concept': 7, ... |   None   |
| the concept of evidence is... | {'limited': 6, 'all': 8, '... |   None   |
+-------------------------------+-------------------------------+----------+
[10 rows x 5 columns]

COMPUTING TF-IDF
CORPUS WORD COUNTS SORTED BY TF-IDF
+----------------+---------------+
|      word      |     count     |
+----------------+---------------+
|  pythagorean   | 871.204503632 |
|      mill      | 728.135829422 |
|   pythagoras   |  664.47853193 |
|     jacobi     | 625.160275603 |
|  pythagoreans  |  621.22844997 |
|      (djn      | 522.932809152 |
|    coercion    | 515.644828618 |
|   pufendorf    | 515.069157887 |
| quantification | 499.341855356 |
|     blame      | 450.480921705 |
+----------------+---------------+
[50016 rows x 2 columns]

----------------------------------------------------
MODELING
Starting brute force nearest neighbors model training.
Locke's Political Philosophy
Cosine between entry and corpus:  -2.22044604925e-16
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Locke's Political Philosophy
| 0            | 1       | 1.96078     | 1.812ms      |
| Done         |         | 100         | 6.271ms      |
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+----------------+------+
| query_label |        reference_label        |    distance    | rank |
+-------------+-------------------------------+----------------+------+
|      0      |  Locke's Political Philosophy |      0.0       |  1   |
|      0      |       The Nature of Law       | 0.911217799807 |  2   |
|      0      |            Coercion           | 0.929704460787 |  3   |
|      0      | Mill's Moral and Political... | 0.944900758372 |  4   |
|      0      | Pufendorf's Moral and Poli... | 0.947529839537 |  5   |
+-------------+-------------------------------+----------------+------+
[5 rows x 4 columns]

Blame
Cosine between entry and corpus:  0.990929189935
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.771ms      |
| Done         |         | 100         | 11.949ms     |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Blame
+-------------+--------------------------+-------------------+------+
| query_label |     reference_label      |      distance     | rank |
+-------------+--------------------------+-------------------+------+
|      0      |          Blame           | 2.22044604925e-16 |  1   |
|      0      |     Weakness of Will     |   0.942268631063  |  2   |
|      0      |          Desire          |   0.960685169769  |  3   |
|      0      |         Evidence         |   0.962565846922  |  4   |
|      0      | Philosophy of Psychiatry |   0.965838223433  |  5   |
+-------------+--------------------------+-------------------+------+
[5 rows x 4 columns]

Weakness of Will
Cosine between entry and corpus:  0.986632679069
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.795ms      |
| Done         |         | 100         | 10.123ms     |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Weakness of Will
+-------------+------------------------+--------------------+------+
| query_label |    reference_label     |      distance      | rank |
+-------------+------------------------+--------------------+------+
|      0      |    Weakness of Will    | -2.22044604925e-16 |  1   |
|      0      |   The Nature of Law    |   0.928509086119   |  2   |
|      0      |         Blame          |   0.942268631063   |  3   |
|      0      |        Coercion        |   0.946062849705   |  4   |
|      0      | Incommensurable Values |   0.947458038533   |  5   |
+-------------+------------------------+--------------------+------+
[5 rows x 4 columns]

Collapse Theories
Cosine between entry and corpus:  0.984726946282
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
Nearest Nieghbors for  Collapse Theories
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.183ms      |
| Done         |         | 100         | 7.579ms      |
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+-------------------+------+
| query_label |        reference_label        |      distance     | rank |
+-------------+-------------------------------+-------------------+------+
|      0      |       Collapse Theories       | 1.11022302463e-16 |  1   |
|      0      | Quantum Theory: von Neuman... |   0.751886082204  |  2   |
|      0      | Atomism from the 17th to t... |   0.922135223946  |  3   |
|      0      |     Logic and Probability     |   0.931215901691  |  4   |
|      0      | The Philosophy of Computer... |   0.944097073962  |  5   |
+-------------+-------------------------------+-------------------+------+
[5 rows x 4 columns]

Value Pluralism
Cosine between entry and corpus:  0.984218144022
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.392ms      |
| Done         |         | 100         | 9.75ms       |
Nearest Nieghbors for  Value Pluralism
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+--------------------+------+
| query_label |        reference_label        |      distance      | rank |
+-------------+-------------------------------+--------------------+------+
|      0      |        Value Pluralism        | -2.22044604925e-16 |  1   |
|      0      |     Incommensurable Values    |   0.75899935365    |  2   |
|      0      |             Desire            |   0.887155178965   |  3   |
|      0      | Mill's Moral and Political... |   0.894794530269   |  4   |
|      0      |        Weakness of Will       |   0.950964966595   |  5   |
+-------------+-------------------------------+--------------------+------+
[5 rows x 4 columns]

Justice as a Virtue
Cosine between entry and corpus:  0.975325986468
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.552ms      |
| Done         |         | 100         | 11.784ms     |
Nearest Nieghbors for  Justice as a Virtue
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+----------------+------+
| query_label |        reference_label        |    distance    | rank |
+-------------+-------------------------------+----------------+------+
|      0      |      Justice as a Virtue      |      0.0       |  1   |
|      0      |       John of Salisbury       | 0.901993490813 |  2   |
|      0      | Mill's Moral and Political... | 0.937828279327 |  3   |
|      0      |            Coercion           | 0.959990058072 |  4   |
|      0      |       The Nature of Law       | 0.96933803442  |  5   |
+-------------+-------------------------------+----------------+------+
[5 rows x 4 columns]

Wittgenstein's Logical Atomism
Cosine between entry and corpus:  0.988302250753
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 3.667ms      |
| Done         |         | 100         | 12.488ms     |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Wittgenstein's Logical Atomism
+-------------+--------------------------------+-------------------+------+
| query_label |        reference_label         |      distance     | rank |
+-------------+--------------------------------+-------------------+------+
|      0      | Wittgenstein's Logical Atomism | 1.11022302463e-16 |  1   |
|      0      |   Wittgenstein's Aesthetics    |   0.783355221907  |  2   |
|      0      | The Deflationary Theory of...  |   0.906440951712  |  3   |
|      0      |            Analysis            |   0.923708477521  |  4   |
|      0      |   Friedrich Heinrich Jacobi    |   0.946532486083  |  5   |
+-------------+--------------------------------+-------------------+------+
[5 rows x 4 columns]

Collingwood's Aesthetics
Cosine between entry and corpus:  0.991382206061
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.292ms      |
| Done         |         | 100         | 11.591ms     |
Nearest Nieghbors for  Collingwood's Aesthetics
+--------------+---------+-------------+--------------+
+-------------+---------------------------+-------------------+------+
| query_label |      reference_label      |      distance     | rank |
+-------------+---------------------------+-------------------+------+
|      0      |  Collingwood's Aesthetics | 1.11022302463e-16 |  1   |
|      0      | Wittgenstein's Aesthetics |   0.921009521367  |  2   |
|      0      |          Coercion         |   0.965529254126  |  3   |
|      0      |  Philosophy of Psychiatry |   0.96907039801   |  4   |
|      0      |       Hermann Cohen       |   0.97778181211   |  5   |
+-------------+---------------------------+-------------------+------+
[5 rows x 4 columns]

Analysis
Cosine between entry and corpus:  0.991226947279
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Analysis
| 0            | 1       | 1.96078     | 2.273ms      |
| Done         |         | 100         | 6.485ms      |
+--------------+---------+-------------+--------------+
+-------------+--------------------------------+-------------------+------+
| query_label |        reference_label         |      distance     | rank |
+-------------+--------------------------------+-------------------+------+
|      0      |            Analysis            | 2.22044604925e-16 |  1   |
|      0      | Wittgenstein's Logical Atomism |   0.923708477521  |  2   |
|      0      |   Descartes' Life and Works    |   0.924288427983  |  3   |
|      0      |         Pythagoreanism         |   0.954481060599  |  4   |
|      0      |         Hermann Cohen          |   0.965302152932  |  5   |
+-------------+--------------------------------+-------------------+------+
[5 rows x 4 columns]

Evidence
Cosine between entry and corpus:  0.978049932114
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 3.047ms      |
| Done         |         | 100         | 13.115ms     |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Evidence
+-------------+-------------------------------+-------------------+------+
| query_label |        reference_label        |      distance     | rank |
+-------------+-------------------------------+-------------------+------+
|      0      |            Evidence           | 1.11022302463e-16 |  1   |
|      0      | Theory and Observation in ... |   0.846408031606  |  2   |
|      0      |     Logic and Probability     |   0.925614496901  |  3   |
|      0      |    Philosophy of Psychiatry   |   0.932150483065  |  4   |
|      0      |             Desire            |   0.943010426918  |  5   |
+-------------+-------------------------------+-------------------+------+
[5 rows x 4 columns]

Pythagoreanism
Cosine between entry and corpus:  0.987404933337
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 3.157ms      |
| Done         |         | 100         | 15.37ms      |
Nearest Nieghbors for  Pythagoreanism
+--------------+---------+-------------+--------------+
+-------------+-------------------+----------------+------+
| query_label |  reference_label  |    distance    | rank |
+-------------+-------------------+----------------+------+
|      0      |   Pythagoreanism  |      0.0       |  1   |
|      0      |     Speusippus    | 0.901827494577 |  2   |
|      0      |      Analysis     | 0.954481060599 |  3   |
|      0      | Saint Bonaventure | 0.969023714469 |  4   |
|      0      | John of Salisbury | 0.971472487985 |  5   |
+-------------+-------------------+----------------+------+
[5 rows x 4 columns]

Atomism from the 17th to the 20th Century
Cosine between entry and corpus:  0.984043282715
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.617ms      |
| Done         |         | 100         | 16.404ms     |
Nearest Nieghbors for  Atomism from the 17th to the 20th Century
+--------------+---------+-------------+--------------+
+-------------+--------------------------------+--------------------+------+
| query_label |        reference_label         |      distance      | rank |
+-------------+--------------------------------+--------------------+------+
|      0      | Atomism from the 17th to t...  | -2.22044604925e-16 |  1   |
|      0      | Theory and Observation in ...  |   0.918764749434   |  2   |
|      0      |       Collapse Theories        |   0.922135223946   |  3   |
|      0      | Wittgenstein's Logical Atomism |   0.953114206779   |  4   |
|      0      |    Philosophy of Psychiatry    |   0.961161693043   |  5   |
+-------------+--------------------------------+--------------------+------+
[5 rows x 4 columns]

Simpson's Paradox
Cosine between entry and corpus:  0.991292726061
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 4.505ms      |
| Done         |         | 100         | 14.075ms     |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Simpson's Paradox
+-------------+-------------------------------+--------------------+------+
| query_label |        reference_label        |      distance      | rank |
+-------------+-------------------------------+--------------------+------+
|      0      |       Simpson's Paradox       | -2.22044604925e-16 |  1   |
|      0      |     Logic and Probability     |   0.850669463038   |  2   |
|      0      | Theory and Observation in ... |   0.900038691017   |  3   |
|      0      |    Philosophy of Psychiatry   |   0.900395308372   |  4   |
|      0      | Causal Theories of Mental ... |   0.916873081836   |  5   |
+-------------+-------------------------------+--------------------+------+
[5 rows x 4 columns]

Quantifiers and Quantification
Cosine between entry and corpus:  0.99406793281
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.543ms      |
| Done         |         | 100         | 10.346ms     |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Quantifiers and Quantification
+-------------+--------------------------------+----------------+------+
| query_label |        reference_label         |    distance    | rank |
+-------------+--------------------------------+----------------+------+
|      0      | Quantifiers and Quantification |      0.0       |  1   |
|      0      |       Provability Logic        | 0.845984573647 |  2   |
|      0      |     Logic and Probability      | 0.911292809811 |  3   |
|      0      |       Montague Semantics       | 0.946793395235 |  4   |
|      0      |       Simpson's Paradox        | 0.95723391289  |  5   |
+-------------+--------------------------------+----------------+------+
[5 rows x 4 columns]

Maimonides
Cosine between entry and corpus:  0.95966360317
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Maimonides
| 0            | 1       | 1.96078     | 3.131ms      |
| Done         |         | 100         | 11.881ms     |
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+--------------------+------+
| query_label |        reference_label        |      distance      | rank |
+-------------+-------------------------------+--------------------+------+
|      0      |           Maimonides          | -2.22044604925e-16 |  1   |
|      0      | Causation in Arabic and Is... |   0.903606285627   |  2   |
|      0      |       Saint Bonaventure       |   0.907560519177   |  3   |
|      0      |  Locke's Political Philosophy |   0.95966360317    |  4   |
|      0      |       John of Salisbury       |   0.963561392597   |  5   |
+-------------+-------------------------------+--------------------+------+
[5 rows x 4 columns]

Speusippus
Cosine between entry and corpus:  0.990668011704
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
Nearest Nieghbors for  Speusippus
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.325ms      |
| Done         |         | 100         | 7.615ms      |
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+----------------+------+
| query_label |        reference_label        |    distance    | rank |
+-------------+-------------------------------+----------------+------+
|      0      |           Speusippus          |      0.0       |  1   |
|      0      |         Pythagoreanism        | 0.901827494577 |  2   |
|      0      |        Value Pluralism        | 0.969908400695 |  3   |
|      0      | Mill's Moral and Political... | 0.969945213427 |  4   |
|      0      |            Analysis           | 0.971203927507 |  5   |
+-------------+-------------------------------+----------------+------+
[5 rows x 4 columns]

John of Salisbury
Cosine between entry and corpus:  0.974798106192
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.189ms      |
| Done         |         | 100         | 10.825ms     |
Nearest Nieghbors for  John of Salisbury
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+----------------+------+
| query_label |        reference_label        |    distance    | rank |
+-------------+-------------------------------+----------------+------+
|      0      |       John of Salisbury       |      0.0       |  1   |
|      0      |      Justice as a Virtue      | 0.901993490813 |  2   |
|      0      | Mill's Moral and Political... | 0.944385145738 |  3   |
|      0      |       Saint Bonaventure       | 0.96138584616  |  4   |
|      0      |           Maimonides          | 0.963561392597 |  5   |
+-------------+-------------------------------+----------------+------+
[5 rows x 4 columns]

Homosexuality
Cosine between entry and corpus:  0.965071875024
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.486ms      |
| Done         |         | 100         | 12.232ms     |
Nearest Nieghbors for  Homosexuality
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+-------------------+------+
| query_label |        reference_label        |      distance     | rank |
+-------------+-------------------------------+-------------------+------+
|      0      |         Homosexuality         | 1.11022302463e-16 |  1   |
|      0      |       Identity Politics       |   0.778594855518  |  2   |
|      0      |       The Nature of Law       |   0.897272550897  |  3   |
|      0      | Mill's Moral and Political... |   0.956734993258  |  4   |
|      0      | Pufendorf's Moral and Poli... |   0.957635073281  |  5   |
+-------------+-------------------------------+-------------------+------+
[5 rows x 4 columns]

Desire
Cosine between entry and corpus:  0.986273466532
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
Nearest Nieghbors for  Desire
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 3.093ms      |
| Done         |         | 100         | 10.612ms     |
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+--------------------+------+
| query_label |        reference_label        |      distance      | rank |
+-------------+-------------------------------+--------------------+------+
|      0      |             Desire            | -2.22044604925e-16 |  1   |
|      0      |        Value Pluralism        |   0.887155178965   |  2   |
|      0      |            Evidence           |   0.943010426918   |  3   |
|      0      | Mill's Moral and Political... |   0.946734420193   |  4   |
|      0      |        Weakness of Will       |   0.949755142502   |  5   |
+-------------+-------------------------------+--------------------+------+
[5 rows x 4 columns]

Mill's Moral and Political Philosophy
Cosine between entry and corpus:  0.944900758372
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.579ms      |
| Done         |         | 100         | 11.408ms     |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Mill's Moral and Political Philosophy
+-------------+-------------------------------+----------------+------+
| query_label |        reference_label        |    distance    | rank |
+-------------+-------------------------------+----------------+------+
|      0      | Mill's Moral and Political... |      0.0       |  1   |
|      0      |        Value Pluralism        | 0.894794530269 |  2   |
|      0      |            Coercion           | 0.920254344229 |  3   |
|      0      |      Justice as a Virtue      | 0.937828279327 |  4   |
|      0      |       John of Salisbury       | 0.944385145738 |  5   |
+-------------+-------------------------------+----------------+------+
[5 rows x 4 columns]

Montague Semantics
Cosine between entry and corpus:  0.98895137951
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.293ms      |
| Done         |         | 100         | 8.811ms      |
Nearest Nieghbors for  Montague Semantics
+--------------+---------+-------------+--------------+
+-------------+--------------------------------+-------------------+------+
| query_label |        reference_label         |      distance     | rank |
+-------------+--------------------------------+-------------------+------+
|      0      |       Montague Semantics       | 1.11022302463e-16 |  1   |
|      0      | The Philosophy of Computer...  |   0.934101308541  |  2   |
|      0      | Quantifiers and Quantification |   0.946793395235  |  3   |
|      0      | Wittgenstein's Logical Atomism |   0.949891071317  |  4   |
|      0      |     Logic and Probability      |   0.950647184694  |  5   |
+-------------+--------------------------------+-------------------+------+
[5 rows x 4 columns]

Causal Theories of Mental Content
Cosine between entry and corpus:  0.9736291645
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 1.715ms      |
Nearest Nieghbors for  Causal Theories of Mental Content
| Done         |         | 100         | 10.332ms     |
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+--------------------+------+
| query_label |        reference_label        |      distance      | rank |
+-------------+-------------------------------+--------------------+------+
|      0      | Causal Theories of Mental ... | -2.22044604925e-16 |  1   |
|      0      |    Philosophy of Psychiatry   |   0.868444948639   |  2   |
|      0      |       Simpson's Paradox       |   0.916873081836   |  3   |
|      0      |    The Problem of the Many    |   0.920839065477   |  4   |
|      0      | Causation in Arabic and Is... |   0.927153580407   |  5   |
+-------------+-------------------------------+--------------------+------+
[5 rows x 4 columns]

Incommensurable Values
Cosine between entry and corpus:  0.985560593712
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.603ms      |
| Done         |         | 100         | 11.986ms     |
Nearest Nieghbors for  Incommensurable Values
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+--------------------+------+
| query_label |        reference_label        |      distance      | rank |
+-------------+-------------------------------+--------------------+------+
|      0      |     Incommensurable Values    | -2.22044604925e-16 |  1   |
|      0      |        Value Pluralism        |   0.75899935365    |  2   |
|      0      |       The Nature of Law       |   0.876853475209   |  3   |
|      0      |        Weakness of Will       |   0.947458038533   |  4   |
|      0      | Mill's Moral and Political... |   0.959019964063   |  5   |
+-------------+-------------------------------+--------------------+------+
[5 rows x 4 columns]

The Nature of Law
Cosine between entry and corpus:  0.911217799807
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
Nearest Nieghbors for  The Nature of Law
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.55ms       |
| Done         |         | 100         | 8.097ms      |
+--------------+---------+-------------+--------------+
+-------------+------------------------------+--------------------+------+
| query_label |       reference_label        |      distance      | rank |
+-------------+------------------------------+--------------------+------+
|      0      |      The Nature of Law       | -2.22044604925e-16 |  1   |
|      0      |    Incommensurable Values    |   0.876853475209   |  2   |
|      0      |        Homosexuality         |   0.897272550897   |  3   |
|      0      |           Coercion           |   0.907725621363   |  4   |
|      0      | Locke's Political Philosophy |   0.911217799807   |  5   |
+-------------+------------------------------+--------------------+------+
[5 rows x 4 columns]

The Deflationary Theory of Truth
Cosine between entry and corpus:  0.9827730847
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.553ms      |
| Done         |         | 100         | 15.275ms     |
Nearest Nieghbors for  The Deflationary Theory of Truth
+--------------+---------+-------------+--------------+
+-------------+--------------------------------+--------------------+------+
| query_label |        reference_label         |      distance      | rank |
+-------------+--------------------------------+--------------------+------+
|      0      | The Deflationary Theory of...  | -2.22044604925e-16 |  1   |
|      0      | Wittgenstein's Logical Atomism |   0.906440951712   |  2   |
|      0      |            Evidence            |   0.947813555877   |  3   |
|      0      |       Montague Semantics       |   0.95205257723    |  4   |
|      0      | Quantifiers and Quantification |   0.959292441486   |  5   |
+-------------+--------------------------------+--------------------+------+
[5 rows x 4 columns]

The Problem of the Many
Cosine between entry and corpus:  0.984447139849
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 2       | 1.96078     | 2.862ms      |
Nearest Nieghbors for  The Problem of the Many
| Done         |         | 100         | 9.277ms      |
+--------------+---------+-------------+--------------+
+-------------+--------------------------------+-------------------+------+
| query_label |        reference_label         |      distance     | rank |
+-------------+--------------------------------+-------------------+------+
|      0      |    The Problem of the Many     |        0.0        |  1   |
|      0      |       Montague Semantics       |   0.964353402404  |  2   |
|      0      | The Deflationary Theory of...  |   0.965570301197  |  3   |
|      0      | Wittgenstein's Logical Atomism |   0.966778518477  |  4   |
|      0      | Theory and Observation in ...  |   0.971215303598  |  5   |
|      1      |    The Problem of the Many     | 1.11022302463e-16 |  1   |
|      1      | Causal Theories of Mental ...  |   0.920839065477  |  2   |
|      1      |    Philosophy of Psychiatry    |   0.930892090794  |  3   |
|      1      |       Simpson's Paradox        |   0.938091088452  |  4   |
|      1      |            Coercion            |   0.939325441488  |  5   |
+-------------+--------------------------------+-------------------+------+
[10 rows x 4 columns]

The Problem of the Many
Cosine between entry and corpus:  0.984447139849
Starting pairwise querying.
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  The Problem of the Many
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 2       | 1.96078     | 3.08ms       |
| Done         |         | 100         | 10.961ms     |
+--------------+---------+-------------+--------------+
+-------------+--------------------------------+-------------------+------+
| query_label |        reference_label         |      distance     | rank |
+-------------+--------------------------------+-------------------+------+
|      0      |    The Problem of the Many     |        0.0        |  1   |
|      0      |       Montague Semantics       |   0.964353402404  |  2   |
|      0      | The Deflationary Theory of...  |   0.965570301197  |  3   |
|      0      | Wittgenstein's Logical Atomism |   0.966778518477  |  4   |
|      0      | Theory and Observation in ...  |   0.971215303598  |  5   |
|      1      |    The Problem of the Many     | 1.11022302463e-16 |  1   |
|      1      | Causal Theories of Mental ...  |   0.920839065477  |  2   |
|      1      |    Philosophy of Psychiatry    |   0.930892090794  |  3   |
|      1      |       Simpson's Paradox        |   0.938091088452  |  4   |
|      1      |            Coercion            |   0.939325441488  |  5   |
+-------------+--------------------------------+-------------------+------+
[10 rows x 4 columns]

Philosophy of Psychiatry
Cosine between entry and corpus:  0.97901914794
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Philosophy of Psychiatry
| 0            | 1       | 1.96078     | 2.803ms      |
| Done         |         | 100         | 10.149ms     |
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+-------------------+------+
| query_label |        reference_label        |      distance     | rank |
+-------------+-------------------------------+-------------------+------+
|      0      |    Philosophy of Psychiatry   | 2.22044604925e-16 |  1   |
|      0      | Causal Theories of Mental ... |   0.868444948639  |  2   |
|      0      |       Simpson's Paradox       |   0.900395308372  |  3   |
|      0      | Theory and Observation in ... |   0.923235317434  |  4   |
|      0      |    The Problem of the Many    |   0.930892090794  |  5   |
+-------------+-------------------------------+-------------------+------+
[5 rows x 4 columns]

Hermann Cohen
Cosine between entry and corpus:  0.978279539168
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.939ms      |
| Done         |         | 100         | 17.586ms     |
Nearest Nieghbors for  Hermann Cohen
+--------------+---------+-------------+--------------+
+-------------+----------------------------+--------------------+------+
| query_label |      reference_label       |      distance      | rank |
+-------------+----------------------------+--------------------+------+
|      0      |       Hermann Cohen        | -2.22044604925e-16 |  1   |
|      0      |        Martin Buber        |   0.952427344414   |  2   |
|      0      |        Martin Buber        |   0.952427344414   |  3   |
|      0      | Science and Pseudo-Science |   0.955946324386   |  4   |
|      0      |     Saint Bonaventure      |   0.962302664767   |  5   |
+-------------+----------------------------+--------------------+------+
[5 rows x 4 columns]

Saint Bonaventure
Cosine between entry and corpus:  0.97286712419
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Saint Bonaventure
| 0            | 1       | 1.96078     | 2.56ms       |
| Done         |         | 100         | 8.891ms      |
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+--------------------+------+
| query_label |        reference_label        |      distance      | rank |
+-------------+-------------------------------+--------------------+------+
|      0      |       Saint Bonaventure       | -2.22044604925e-16 |  1   |
|      0      | Causation in Arabic and Is... |   0.893666503524   |  2   |
|      0      |           Maimonides          |   0.907560519177   |  3   |
|      0      |     Philip the Chancellor     |   0.938664934948   |  4   |
|      0      |         Thomas Hobbes         |   0.960930540354   |  5   |
+-------------+-------------------------------+--------------------+------+
[5 rows x 4 columns]

Josiah Royce
Cosine between entry and corpus:  0.983699388595
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 6.758ms      |
| Done         |         | 100         | 20.183ms     |
Nearest Nieghbors for  
+--------------+---------+-------------+--------------+
Josiah Royce
+-------------+-------------------------------+----------------+------+
| query_label |        reference_label        |    distance    | rank |
+-------------+-------------------------------+----------------+------+
|      0      |          Josiah Royce         |      0.0       |  1   |
|      0      |            Coercion           | 0.962796367895 |  2   |
|      0      |         Hermann Cohen         | 0.967418617547 |  3   |
|      0      |       Saint Bonaventure       | 0.967741522352 |  4   |
|      0      | Causation in Arabic and Is... | 0.968872669514 |  5   |
+-------------+-------------------------------+----------------+------+
[5 rows x 4 columns]

Descartes' Life and Works
Cosine between entry and corpus:  0.992779032216
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 7.349ms      |
| Done         |         | 100         | 14.296ms     |
Nearest Nieghbors for  Descartes' Life and Works
+--------------+---------+-------------+--------------+
+-------------+---------------------------+--------------------+------+
| query_label |      reference_label      |      distance      | rank |
+-------------+---------------------------+--------------------+------+
|      0      | Descartes' Life and Works | -2.22044604925e-16 |  1   |
|      0      |          Analysis         |   0.924288427983   |  2   |
|      0      |       Thomas Hobbes       |   0.946964213438   |  3   |
|      0      |       Pythagoreanism      |   0.975427237169   |  4   |
|      0      |     John of Salisbury     |   0.976014445694   |  5   |
+-------------+---------------------------+--------------------+------+
[5 rows x 4 columns]

Thomas Hobbes
Cosine between entry and corpus:  0.961117181273
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 7.841ms      |
| Done         |         | 100         | 15.295ms     |
Nearest Nieghbors for  Thomas Hobbes
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+----------------+------+
| query_label |        reference_label        |    distance    | rank |
+-------------+-------------------------------+----------------+------+
|      0      |         Thomas Hobbes         |      0.0       |  1   |
|      0      |   Descartes' Life and Works   | 0.946964213438 |  2   |
|      0      | Causation in Arabic and Is... | 0.953234658276 |  3   |
|      0      |       Saint Bonaventure       | 0.960930540354 |  4   |
|      0      |  Locke's Political Philosophy | 0.961117181273 |  5   |
+-------------+-------------------------------+----------------+------+
[5 rows x 4 columns]

Identity Politics
Cosine between entry and corpus:  0.971792440023
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.783ms      |
| Done         |         | 100         | 15.111ms     |
Nearest Nieghbors for  Identity Politics
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+-------------------+------+
| query_label |        reference_label        |      distance     | rank |
+-------------+-------------------------------+-------------------+------+
|      0      |       Identity Politics       | 1.11022302463e-16 |  1   |
|      0      |         Homosexuality         |   0.778594855518  |  2   |
|      0      | Mill's Moral and Political... |   0.946866984391  |  3   |
|      0      |    Philosophy of Psychiatry   |   0.94845024138   |  4   |
|      0      |          Martin Buber         |   0.965122320892  |  5   |
+-------------+-------------------------------+-------------------+------+
[5 rows x 4 columns]

Theory and Observation in Science
Cosine between entry and corpus:  0.987027894652
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Theory and Observation in Science
| 0            | 1       | 1.96078     | 2.472ms      |
| Done         |         | 100         | 7.863ms      |
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+--------------------+------+
| query_label |        reference_label        |      distance      | rank |
+-------------+-------------------------------+--------------------+------+
|      0      | Theory and Observation in ... | -2.22044604925e-16 |  1   |
|      0      |            Evidence           |   0.846408031606   |  2   |
|      0      |       Simpson's Paradox       |   0.900038691017   |  3   |
|      0      | Atomism from the 17th to t... |   0.918764749434   |  4   |
|      0      |    Philosophy of Psychiatry   |   0.923235317434   |  5   |
+-------------+-------------------------------+--------------------+------+
[5 rows x 4 columns]

Pufendorf's Moral and Political Philosophy
Cosine between entry and corpus:  0.947529839537
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 6.26ms       |
Nearest Nieghbors for  Pufendorf's Moral and Political Philosophy
| Done         |         | 100         | 15.42ms      |
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+----------------+------+
| query_label |        reference_label        |    distance    | rank |
+-------------+-------------------------------+----------------+------+
|      0      | Pufendorf's Moral and Poli... |      0.0       |  1   |
|      0      |       The Nature of Law       | 0.917855641197 |  2   |
|      0      |  Locke's Political Philosophy | 0.947529839537 |  3   |
|      0      |         Homosexuality         | 0.957635073281 |  4   |
|      0      |            Coercion           | 0.960567457199 |  5   |
+-------------+-------------------------------+----------------+------+
[5 rows x 4 columns]

Science and Pseudo-Science
Cosine between entry and corpus:  0.988703976438
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
Nearest Nieghbors for  Science and Pseudo-Science
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.496ms      |
| Done         |         | 100         | 8.895ms      |
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+----------------+------+
| query_label |        reference_label        |    distance    | rank |
+-------------+-------------------------------+----------------+------+
|      0      |   Science and Pseudo-Science  |      0.0       |  1   |
|      0      | The Philosophy of Computer... | 0.939807196158 |  2   |
|      0      |            Evidence           |  0.9446285612  |  3   |
|      0      |    Philosophy of Psychiatry   | 0.949980705001 |  4   |
|      0      | Theory and Observation in ... | 0.955769279117 |  5   |
+-------------+-------------------------------+----------------+------+
[5 rows x 4 columns]

Provability Logic
Cosine between entry and corpus:  0.996316349145
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 3.619ms      |
| Done         |         | 100         | 17.936ms     |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Provability Logic
+-------------+--------------------------------+----------------+------+
| query_label |        reference_label         |    distance    | rank |
+-------------+--------------------------------+----------------+------+
|      0      |       Provability Logic        |      0.0       |  1   |
|      0      | Quantifiers and Quantification | 0.845984573647 |  2   |
|      0      |     Logic and Probability      | 0.878632018109 |  3   |
|      0      |       Montague Semantics       | 0.961620957927 |  4   |
|      0      |       Simpson's Paradox        | 0.965979406899 |  5   |
+-------------+--------------------------------+----------------+------+
[5 rows x 4 columns]

Causation in Arabic and Islamic Thought
Cosine between entry and corpus:  0.968817448006
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 3.88ms       |
| Done         |         | 100         | 14.483ms     |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Causation in Arabic and Islamic Thought
+-------------+-------------------------------+----------------+------+
| query_label |        reference_label        |    distance    | rank |
+-------------+-------------------------------+----------------+------+
|      0      | Causation in Arabic and Is... |      0.0       |  1   |
|      0      |       Saint Bonaventure       | 0.893666503524 |  2   |
|      0      |           Maimonides          | 0.903606285627 |  3   |
|      0      | Causal Theories of Mental ... | 0.927153580407 |  4   |
|      0      |    The Problem of the Many    | 0.940648047567 |  5   |
+-------------+-------------------------------+----------------+------+
[5 rows x 4 columns]

Philip the Chancellor
Cosine between entry and corpus:  0.983198426991
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
Nearest Nieghbors for  Philip the Chancellor
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.628ms      |
| Done         |         | 100         | 11.393ms     |
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+--------------------+------+
| query_label |        reference_label        |      distance      | rank |
+-------------+-------------------------------+--------------------+------+
|      0      |     Philip the Chancellor     | -2.22044604925e-16 |  1   |
|      0      |       Saint Bonaventure       |   0.938664934948   |  2   |
|      0      | Causation in Arabic and Is... |   0.955725717335   |  3   |
|      0      |        Weakness of Will       |   0.967552390232   |  4   |
|      0      |       John of Salisbury       |   0.972242390103   |  5   |
+-------------+-------------------------------+--------------------+------+
[5 rows x 4 columns]

The Philosophy of Computer Science
Cosine between entry and corpus:  0.981563372492
Starting pairwise querying.
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  The Philosophy of Computer Science
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 1.908ms      |
| Done         |         | 100         | 7.772ms      |
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+--------------------+------+
| query_label |        reference_label        |      distance      | rank |
+-------------+-------------------------------+--------------------+------+
|      0      | The Philosophy of Computer... | -2.22044604925e-16 |  1   |
|      0      |       Montague Semantics      |   0.934101308541   |  2   |
|      0      | Theory and Observation in ... |   0.936328571231   |  3   |
|      0      |   Science and Pseudo-Science  |   0.939807196158   |  4   |
|      0      |    Philosophy of Psychiatry   |   0.941784597883   |  5   |
+-------------+-------------------------------+--------------------+------+
[5 rows x 4 columns]

Japanese Confucian Philosophy
Cosine between entry and corpus:  0.980710216841
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 5.092ms      |
| Done         |         | 100         | 17.969ms     |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Japanese Confucian Philosophy
+-------------+-------------------------------+--------------------+------+
| query_label |        reference_label        |      distance      | rank |
+-------------+-------------------------------+--------------------+------+
|      0      | Japanese Confucian Philosophy | -2.22044604925e-16 |  1   |
|      0      |            Coercion           |   0.92611897612    |  2   |
|      0      |    The Problem of the Many    |   0.94346266482    |  3   |
|      0      |       John of Salisbury       |   0.965786178522   |  4   |
|      0      |       Identity Politics       |   0.967071682932   |  5   |
+-------------+-------------------------------+--------------------+------+
[5 rows x 4 columns]

Wittgenstein's Aesthetics
Cosine between entry and corpus:  0.991785957818
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 3.694ms      |
| Done         |         | 100         | 18.224ms     |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Wittgenstein's Aesthetics
+-------------+--------------------------------+----------------+------+
| query_label |        reference_label         |    distance    | rank |
+-------------+--------------------------------+----------------+------+
|      0      |   Wittgenstein's Aesthetics    |      0.0       |  1   |
|      0      | Wittgenstein's Logical Atomism | 0.783355221907 |  2   |
|      0      |    Collingwood's Aesthetics    | 0.921009521367 |  3   |
|      0      |    Philosophy of Psychiatry    | 0.948939118045 |  4   |
|      0      |    The Problem of the Many     | 0.96803007457  |  5   |
+-------------+--------------------------------+----------------+------+
[5 rows x 4 columns]

Snark
Cosine between entry and corpus:  0.999841219918
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 3.3ms        |
| Done         |         | 100         | 13.055ms     |
Nearest Nieghbors for  Snark
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+----------------+------+
| query_label |        reference_label        |    distance    | rank |
+-------------+-------------------------------+----------------+------+
|      0      |             Snark             |      0.0       |  1   |
|      0      |     Logic and Probability     | 0.988142769067 |  2   |
|      0      | Causal Theories of Mental ... | 0.99542910375  |  3   |
|      0      |         Thomas Hobbes         | 0.99586922452  |  4   |
|      0      |    Philosophy of Psychiatry   | 0.996352918621 |  5   |
+-------------+-------------------------------+----------------+------+
[5 rows x 4 columns]

Martin Buber
Cosine between entry and corpus:  0.984758477098
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 2       | 1.96078     | 6.695ms      |
| Done         |         | 100         | 17.268ms     |
Nearest Nieghbors for  Martin Buber
+--------------+---------+-------------+--------------+
+-------------+-------------------+----------------+------+
| query_label |  reference_label  |    distance    | rank |
+-------------+-------------------+----------------+------+
|      0      |    Martin Buber   |      0.0       |  1   |
|      0      |    Martin Buber   |      0.0       |  2   |
|      0      |   Hermann Cohen   | 0.952427344414 |  3   |
|      0      | Identity Politics | 0.965122320892 |  4   |
|      0      |     Maimonides    | 0.967393243886 |  5   |
|      1      |    Martin Buber   |      0.0       |  1   |
|      1      |    Martin Buber   |      0.0       |  2   |
|      1      |   Hermann Cohen   | 0.952427344414 |  3   |
|      1      | Identity Politics | 0.965122320892 |  4   |
|      1      |     Maimonides    | 0.967393243886 |  5   |
+-------------+-------------------+----------------+------+
[10 rows x 4 columns]

Coercion
Cosine between entry and corpus:  0.929704460787
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 2       | 1.96078     | 4.672ms      |
| Done         |         | 100         | 16.826ms     |
Nearest Nieghbors for  Coercion
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+--------------------+------+
| query_label |        reference_label        |      distance      | rank |
+-------------+-------------------------------+--------------------+------+
|      0      |            Coercion           |        0.0         |  1   |
|      0      |       The Nature of Law       |   0.907725621363   |  2   |
|      0      | Mill's Moral and Political... |   0.920254344229   |  3   |
|      0      |  Locke's Political Philosophy |   0.929704460787   |  4   |
|      0      |        Weakness of Will       |   0.946062849705   |  5   |
|      1      |            Coercion           | -2.22044604925e-16 |  1   |
|      1      | Japanese Confucian Philosophy |   0.92611897612    |  2   |
|      1      |    The Problem of the Many    |   0.939325441488   |  3   |
|      1      |          Josiah Royce         |   0.962796367895   |  4   |
|      1      |    Collingwood's Aesthetics   |   0.965529254126   |  5   |
+-------------+-------------------------------+--------------------+------+
[10 rows x 4 columns]

Coercion
Cosine between entry and corpus:  0.929704460787
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 2       | 1.96078     | 7.71ms       |
| Done         |         | 100         | 23.245ms     |
Nearest Nieghbors for  Coercion
+--------------+---------+-------------+--------------+
+-------------+-------------------------------+--------------------+------+
| query_label |        reference_label        |      distance      | rank |
+-------------+-------------------------------+--------------------+------+
|      0      |            Coercion           |        0.0         |  1   |
|      0      |       The Nature of Law       |   0.907725621363   |  2   |
|      0      | Mill's Moral and Political... |   0.920254344229   |  3   |
|      0      |  Locke's Political Philosophy |   0.929704460787   |  4   |
|      0      |        Weakness of Will       |   0.946062849705   |  5   |
|      1      |            Coercion           | -2.22044604925e-16 |  1   |
|      1      | Japanese Confucian Philosophy |   0.92611897612    |  2   |
|      1      |    The Problem of the Many    |   0.939325441488   |  3   |
|      1      |          Josiah Royce         |   0.962796367895   |  4   |
|      1      |    Collingwood's Aesthetics   |   0.965529254126   |  5   |
+-------------+-------------------------------+--------------------+------+
[10 rows x 4 columns]

Logic and Probability
Cosine between entry and corpus:  0.99396610878
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 3.024ms      |
| Done         |         | 100         | 14.845ms     |
Nearest Nieghbors for  Logic and Probability
+--------------+---------+-------------+--------------+
+-------------+--------------------------------+--------------------+------+
| query_label |        reference_label         |      distance      | rank |
+-------------+--------------------------------+--------------------+------+
|      0      |     Logic and Probability      | -2.22044604925e-16 |  1   |
|      0      |       Simpson's Paradox        |   0.850669463038   |  2   |
|      0      |       Provability Logic        |   0.878632018109   |  3   |
|      0      | Quantifiers and Quantification |   0.911292809811   |  4   |
|      0      |            Evidence            |   0.925614496901   |  5   |
+-------------+--------------------------------+--------------------+------+
[5 rows x 4 columns]

Martin Buber
Cosine between entry and corpus:  0.984758477098
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 2       | 1.96078     | 3.268ms      |
| Done         |         | 100         | 12.145ms     |
Nearest Nieghbors for  Martin Buber
+--------------+---------+-------------+--------------+
+-------------+-------------------+----------------+------+
| query_label |  reference_label  |    distance    | rank |
+-------------+-------------------+----------------+------+
|      0      |    Martin Buber   |      0.0       |  1   |
|      0      |    Martin Buber   |      0.0       |  2   |
|      0      |   Hermann Cohen   | 0.952427344414 |  3   |
|      0      | Identity Politics | 0.965122320892 |  4   |
|      0      |     Maimonides    | 0.967393243886 |  5   |
|      1      |    Martin Buber   |      0.0       |  1   |
|      1      |    Martin Buber   |      0.0       |  2   |
|      1      |   Hermann Cohen   | 0.952427344414 |  3   |
|      1      | Identity Politics | 0.965122320892 |  4   |
|      1      |     Maimonides    | 0.967393243886 |  5   |
+-------------+-------------------+----------------+------+
[10 rows x 4 columns]

Quantum Theory: von Neumann vs. Dirac
Cosine between entry and corpus:  0.994013386099
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 4.11ms       |
| Done         |         | 100         | 16.684ms     |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Quantum Theory: von Neumann vs. Dirac
+-------------+-------------------------------+----------------+------+
| query_label |        reference_label        |    distance    | rank |
+-------------+-------------------------------+----------------+------+
|      0      | Quantum Theory: von Neuman... |      0.0       |  1   |
|      0      |       Collapse Theories       | 0.751886082204 |  2   |
|      0      |     Logic and Probability     | 0.954123470503 |  3   |
|      0      | The Philosophy of Computer... | 0.962011822704 |  4   |
|      0      | Atomism from the 17th to t... | 0.973080237938 |  5   |
+-------------+-------------------------------+----------------+------+
[5 rows x 4 columns]

Friedrich Heinrich Jacobi
Cosine between entry and corpus:  0.986890575399
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 0            | 1       | 1.96078     | 2.688ms      |
| Done         |         | 100         | 16.167ms     |
+--------------+---------+-------------+--------------+
Nearest Nieghbors for  Friedrich Heinrich Jacobi
+-------------+--------------------------------+----------------+------+
| query_label |        reference_label         |    distance    | rank |
+-------------+--------------------------------+----------------+------+
|      0      |   Friedrich Heinrich Jacobi    |      0.0       |  1   |
|      0      | Wittgenstein's Logical Atomism | 0.946532486083 |  2   |
|      0      |         Hermann Cohen          | 0.964766281117 |  3   |
|      0      |      Justice as a Virtue       | 0.969375445836 |  4   |
|      0      |       Saint Bonaventure        | 0.970748316299 |  5   |
+-------------+--------------------------------+----------------+------+
[5 rows x 4 columns]

FINISHING UP
+-------------------------------+--------------------------------+
|            authors            |             entry              |
+-------------------------------+--------------------------------+
|        'tuckness, alex'       |  Locke's Political Philosophy  |
| 'tognazzini, neal', 'coate... |             Blame              |
|        'stroud, sarah'        |        Weakness of Will        |
|     'ghirardi, giancarlo'     |       Collapse Theories        |
|        'mason, elinor'        |        Value Pluralism         |
| 'lebar, mark', 'slote, mic... |      Justice as a Virtue       |
|         'proops, ian'         | Wittgenstein's Logical Atomism |
|          'kemp, gary'         |    Collingwood's Aesthetics    |
|       'beaney, michael'       |            Analysis            |
|        'kelly, thomas'        |            Evidence            |
+-------------------------------+--------------------------------+
+-------------------------------+-------------------------------+-------------+
|              text             |           word_count          |   top_word  |
+-------------------------------+-------------------------------+-------------+
| john locke is among the mo... | {'government,': 5, 'limite... |    locke    |
| to blame someone is to res... | {'all': 11, '&hellip;': 3,... |   locke's   |
| there is nothing puzzling ... | {'considered,': 4, 'all': ... |   consent   |
| quantum mechanics, with it... | {'represent': 3, 'all': 28... |     (two    |
| the generally refers to th... | {'all': 22, 'concept': 5, ... |  government |
| the notion of justice as a... | {'represent': 2, 'all': 9,... |   simmons   |
| it has logical atomism was... | {'thetractatusdoes': 2, 'a... |    rights   |
| collingwood was a general ... | {'represent': 2, 'all': 18... | governments |
| analysis has always been a... | {'all': 15, 'concept': 7, ... | legislative |
| the concept of evidence is... | {'limited': 6, 'all': 8, '... |  executive  |
+-------------------------------+-------------------------------+-------------+
+-------------------------------+
|             tfidf             |
+-------------------------------+
| {'government,': 16.1933922... |
| {'all': 0.2178289002579770... |
| {'considered,': 15.7273025... |
| {'represent': 4.3407569488... |
| {'all': 0.4356578005159540... |
| {'represent': 2.8938379658... |
| {'thetractatusdoes': 7.863... |
| {'represent': 2.8938379658... |
| {'all': 0.2970394094426959... |
| {'limited': 10.40760633232... |
+-------------------------------+
[10 rows x 6 columns]

{'Hermann Cohen': 0.021720460831544774, 'Speusippus': 0.009331988295769311, 'Saint Bonaventure': 0.02713287581019652, "Wittgenstein's Aesthetics": 0.008214042181810766, 'Montague Semantics': 0.01104862048978883, 'Theory and Observation in Science': 0.012972105348313279, 'Provability Logic': 0.0036836508546796987, 'Thomas Hobbes': 0.03888281872660082, "Simpson's Paradox": 0.008707273939412619, 'Value Pluralism': 0.015781855978483472, 'Logic and Probability': 0.006033891219931031, 'Causal Theories of Mental Content': 0.026370835499582856, 'The Nature of Law': 0.08878220019314842, 'Quantifiers and Quantification': 0.005932067189583834, 'Blame': 0.009070810065458512, 'The Deflationary Theory of Truth': 0.017226915300228463, 'Martin Buber': 0.01524152290174452, 'Snark': 0.00015878008175485014, "Pufendorf's Moral and Political Philosophy": 0.05247016046266939, 'Science and Pseudo-Science': 0.01129602356164372, 'The Philosophy of Computer Science': 0.018436627508198522, 'Quantum Theory: von Neumann vs. Dirac': 0.0059866139005603225, 'Philosophy of Psychiatry': 0.020980852059998334, 'Desire': 0.013726533467798174, 'Collapse Theories': 0.015273053717526519, 'Justice as a Virtue': 0.024674013531630123, 'The Problem of the Many': 0.01555286015106494, "Locke's Political Philosophy": 1.0000000000000002, 'Analysis': 0.008773052721164354, 'Josiah Royce': 0.01630061140536876, 'Weakness of Will': 0.01336732093071058, 'John of Salisbury': 0.025201893807649034, "Mill's Moral and Political Philosophy": 0.05509924162759927, 'Maimonides': 0.040336396830288, "Collingwood's Aesthetics": 0.008617793938894835, 'Incommensurable Values': 0.014439406287863554, 'Japanese Confucian Philosophy': 0.019289783159115226, 'Identity Politics': 0.028207559976989427, 'Evidence': 0.02195006788614784, "Wittgenstein's Logical Atomism": 0.011697749247450817, "Descartes' Life and Works": 0.007220967783726051, 'Homosexuality': 0.034928124976212116, 'Friedrich Heinrich Jacobi': 0.01310942460143083, 'Atomism from the 17th to the 20th Century': 0.01595671728485548, 'Causation in Arabic and Islamic Thought': 0.031182551993893193, 'Coercion': 0.07029553921318388, 'Pythagoreanism': 0.012595066663119492, 'Philip the Chancellor': 0.016801573008756177}
In [763]:
graphlab.canvas.set_target('ipynb')
sim_graph = knn_model.similarity_graph(k=3)
sim_graph.show(vlabel='id', arrows=True);
Starting pairwise querying.
+--------------+---------+-------------+--------------+
| Query points | # Pairs | % Complete. | Elapsed Time |
+--------------+---------+-------------+--------------+
| 1            | 51      | 1.96078     | 11.811ms     |
| Done         |         | 100         | 29.001ms     |
+--------------+---------+-------------+--------------+
In [ ]: