This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
%matplotlib inline | |
import matplotlib | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
sns.set() | |
ordered_groups = merch_group_metrics_pdf_retail.index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
judgements = ['strong', 'attribute mismatch', 'weak/related', 'unrelated', 'unjudged'] | |
for key, report in reports.items(): | |
report['judgement'] = pd.Categorical(report['judgement'], categories=judgements, ordered=True) | |
%matplotlib inline | |
import matplotlib | |
import matplotlib.pyplot as plt | |
import seaborn as sns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Evaluation function | |
import pandas as pd | |
from sklearn.metrics import accuracy_score | |
from sklearn.metrics import confusion_matrix | |
from sklearn.metrics import precision_recall_fscore_support as pr | |
from sklearn.metrics import roc_curve, auc | |
from IPython.display import display | |
import matplotlib.pyplot as plt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Refer to http://caffe.berkeleyvision.org/installation.html | |
# Contributions simplifying and improving our build system are welcome! | |
# cuDNN acceleration switch (uncomment to build with cuDNN). | |
# USE_CUDNN := 1 | |
# CPU-only switch (uncomment to build without GPU support). | |
CPU_ONLY := 1 | |
# uncomment to disable IO dependencies and corresponding data layers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"response":{"numFound":3,"start":0,"docs":[] | |
}, | |
"facets":{ | |
"count":3, | |
"filter_by_child_type":{ | |
"count":9, | |
"top_entity_text":{ | |
"buckets":[{ | |
"val":"Solr", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"date": "2015-04-10T9:00:00Z", | |
"path": "1.blog-posts", | |
"_childDocuments_": [ | |
{ | |
"path": "2.blog-posts.body", | |
"2.blog-posts.body-id": "50224", | |
"id": "17252-18262", | |
"_childDocuments_": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"response":{"numFound":3,"start":0,"docs":[] | |
}, | |
"facet_counts":{ | |
"facet_queries":{}, | |
"facet_fields":{ | |
"text":[ | |
"Elasticsearch",2, | |
"Solr",3, | |
"Solr 5.5",1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"response":{"numFound":2,"start":0,"docs":[] | |
}, | |
"facet_counts":{ | |
"facet_queries":{}, | |
"facet_fields":{ | |
"text":[ | |
"Elasticsearch",2, | |
"Solr",2, | |
"Solr 5.5",1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"response":{"numFound":2,"start":0,"docs":[] | |
}, | |
"facets":{ | |
"count":2, | |
"filter_by_child_type":{ | |
"count":9, | |
"top_keywords":{ | |
"buckets":[{ | |
"val":"Elasticsearch", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"response":{"numFound":2,"start":0,"docs":[] | |
}, | |
"facets":{ | |
"count":2, | |
"filter_by_child_type":{ | |
"count":3, | |
"comment_sentiments":{ | |
"buckets":[{ | |
"val":"negative", |
NewerOlder