More descriptions

This commit is contained in:
Alexander Munch-Hansen 2019-04-07 01:23:43 +02:00
parent 1c9cdf497b
commit 58221e304a
2 changed files with 6 additions and 0 deletions

View file

@ -44,4 +44,7 @@ def is_restaurant_open(name, open, close) -> Prediction:
def do_just_eat_strat(context: Context) -> Prediction: def do_just_eat_strat(context: Context) -> Prediction:
"""
Is this random Kiosk in Vester Alle open?
"""
return is_restaurant_open('stop2shop', 12, 23) return is_restaurant_open('stop2shop', 12, 23)

View file

@ -44,6 +44,9 @@ def predict(X):
def perform_svm_pred(context: Context) -> Prediction: def perform_svm_pred(context: Context) -> Prediction:
"""
An SVM trained on two data points, which is capable of guessing 0.5 no matter what.
"""
p = Prediction() p = Prediction()
data = requests.get('https://portal.opendata.dk/api/3/action/datastore_search?resource_id=2a82a145-0195-4081-a13c-b0e587e9b89c') data = requests.get('https://portal.opendata.dk/api/3/action/datastore_search?resource_id=2a82a145-0195-4081-a13c-b0e587e9b89c')