Skip to content

Commit 6424fd7

Browse files
caobillshankari
authored andcommitted
PR For Updated Dataset (#684)
* first small data set * oops forgot yelp server dataset * dataset with ~10 points of data * other changes * Dataset for find destination * updated find destination dataset * Restore timeseries so that we can test with Bill's tests too * And remove sys So that all changes are reverted * Remove Manhattan Beach Kettle (not sure why this was added) Leaving the other descriptions in place since they don't really hurt anything
1 parent 3973abe commit 6424fd7

File tree

3 files changed

+218
-0
lines changed

3 files changed

+218
-0
lines changed

emission/core/wrapper/suggestion_sys.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import json
77
import logging
88
import re
9+
910
import emission.storage.timeseries.abstract_timeseries as esta
1011
import argparse
1112
import pprint

emission/integrationTests/suggestionsys/category_of_business_nominatim.dataset.json

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,4 +577,112 @@
577577
},
578578
"output": ["parks"]
579579
}
580+
,
581+
{
582+
"test_name": "Italian Homemade",
583+
"test_type": "Main Street type commercial district italian restaurant",
584+
"input": {
585+
"loc": {
586+
"coordinates": [-122.252844, 37.858179],
587+
"type": "Point"
588+
}
589+
},
590+
"output": ["gelato", "delis", "italian"]
591+
}
592+
,
593+
{
594+
"test_name": "Jong Ga House",
595+
"test_type": "Midtown type commercial district korean barbecue",
596+
"input": {
597+
"loc": {
598+
"coordinates": [-122.254948, 37.809082],
599+
"type": "Point"
600+
}
601+
},
602+
"output": ["korean"]
603+
}
604+
,
605+
{
606+
"test_name": "T Pumps",
607+
"test_type": "Midtown type main street boba tea shop",
608+
"input": {
609+
"loc": {
610+
"coordinates": [-122.478607, 37.763630],
611+
"type": "Point"
612+
}
613+
},
614+
"output": ["bubbletea", "juicebars", "coffee"]
615+
}
616+
,
617+
{
618+
"test_name": "Martinez Commons",
619+
"test_type": "Urban apartment building",
620+
"input": {
621+
"loc": {
622+
"coordinates": [-122.258042, 37.866615],
623+
"type": "Point"
624+
}
625+
},
626+
"output": []
627+
}
628+
,
629+
{
630+
"test_name": "Richmond District House",
631+
"test_type": "Flats in medium/low density SF richmond district",
632+
"input": {
633+
"loc": {
634+
"coordinates": [-122.469817, 37.779966],
635+
"type": "Point"
636+
}
637+
},
638+
"output": []
639+
}
640+
,
641+
{
642+
"test_name": "Novato Unified School District",
643+
"test_type": "Suburban office for school district",
644+
"input": {
645+
"loc": {
646+
"coordinates": [-122.578671, 38.109495],
647+
"type": "Point"
648+
}
649+
},
650+
"output": ["elementaryschools", "highschools"]
651+
}
652+
,
653+
{
654+
"test_name": "Tamalpais Pediatrics",
655+
"test_type": "Pediatrician's office in suburban medical complex",
656+
"input": {
657+
"loc": {
658+
"coordinates": [-122.540262, 37.944070],
659+
"type": "Point"
660+
}
661+
},
662+
"output": ["pediatricians"]
663+
}
664+
,
665+
{
666+
"test_name": "Novato Library",
667+
"test_type": "Library in suburban setting",
668+
"input": {
669+
"loc": {
670+
"coordinates": [-122.580147, 38.107132],
671+
"type": "Point"
672+
}
673+
},
674+
"output": ["libraries"]
675+
}
676+
,
677+
{
678+
"test_name": "O'hair Park",
679+
"test_type": "Large park adjacent to open lands",
680+
"input": {
681+
"loc": {
682+
"coordinates": [-122.619220, 38.116237],
683+
"type": "Point"
684+
}
685+
},
686+
"output": ["parks"]
687+
}
580688
]

emission/integrationTests/suggestionsys/find_destination_business.dataset.json

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,4 +468,113 @@
468468
},
469469
"output": ["Department of Motor Vehicles", "Department of Motor Vehicles Fremont 4"]
470470
}
471+
,
472+
473+
{
474+
"test_name": "Italian Homemade",
475+
"test_type": "Main Street type commercial district italian restaurant",
476+
"input": {
477+
"loc": {
478+
"coordinates": [-122.252844, 37.858179],
479+
"type": "Point"
480+
}
481+
},
482+
"output": ["Italian Homemade", "the-italian-homemade-company-berkeley-3"]
483+
}
484+
,
485+
{
486+
"test_name": "Jong Ga House",
487+
"test_type": "Midtown type commercial district korean barbecue",
488+
"input": {
489+
"loc": {
490+
"coordinates": [-122.254948, 37.809082],
491+
"type": "Point"
492+
}
493+
},
494+
"output": ["Jong Ga House", "jong-ga-house-oakland"]
495+
}
496+
,
497+
{
498+
"test_name": "T Pumps",
499+
"test_type": "Midtown type main street boba tea shop",
500+
"input": {
501+
"loc": {
502+
"coordinates": [-122.478639, 37.763643],
503+
"type": "Point"
504+
}
505+
},
506+
"output": ["Tpumps", "tpumps-san-francisco"]
507+
}
508+
,
509+
{
510+
"test_name": "Martinez Commons",
511+
"test_type": "Urban apartment building",
512+
"input": {
513+
"loc": {
514+
"coordinates": [-122.258042, 37.866615],
515+
"type": "Point"
516+
}
517+
},
518+
"output": ["Maximo Martinez Commons"]
519+
}
520+
,
521+
{
522+
"test_name": "Richmond District House",
523+
"test_type": "Flats in medium/low density SF richmond district",
524+
"input": {
525+
"loc": {
526+
"coordinates": [-122.469817, 37.779966],
527+
"type": "Point"
528+
}
529+
},
530+
"output": []
531+
}
532+
,
533+
{
534+
"test_name": "Novato Unified School District",
535+
"test_type": "Suburban office for school district",
536+
"input": {
537+
"loc": {
538+
"coordinates": [-122.578671, 38.109495],
539+
"type": "Point"
540+
}
541+
},
542+
"output": ["Novato Unified School District"]
543+
}
544+
,
545+
{
546+
"test_name": "Tamalpais Pediatrics",
547+
"test_type": "Pediatrician's office in suburban medical complex",
548+
"input": {
549+
"loc": {
550+
"coordinates": [-122.540262, 37.944070],
551+
"type": "Point"
552+
}
553+
},
554+
"output": ["Tamalpais Pediatrics", "tamalpais-pediatrics-larkspur"]
555+
}
556+
,
557+
{
558+
"test_name": "Novato Library",
559+
"test_type": "Library in suburban setting",
560+
"input": {
561+
"loc": {
562+
"coordinates": [-122.580147, 38.107132],
563+
"type": "Point"
564+
}
565+
},
566+
"output": ["Novato Library", "novato-library-novato"]
567+
}
568+
,
569+
{
570+
"test_name": "O'hair Park",
571+
"test_type": "Large park adjacent to open lands",
572+
"input": {
573+
"loc": {
574+
"coordinates": [-122.619220, 38.116237],
575+
"type": "Point"
576+
}
577+
},
578+
"output": ["O'Hair Park", "o-hair-park-novato"]
579+
}
471580
]

0 commit comments

Comments
 (0)