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
# falcon_gateway.py | |
import falcon | |
import json | |
from data_handler import invoke_predict | |
# Falcon follows the REST architectural style, meaning (among | |
# other things) that you think in terms of resources and state | |
# transitions, which map to HTTP verbs. |
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
# predict.py | |
# Script that should consist of a single method (predict) - passing data in a presumed parsimonious syntax to your model for prediction | |
# | |
# In this exaple, predict would require data of the following datatype: | |
# Pandas DataFrame with features | |
# X_test= [[ 6.9, 3.2, 5.7, 2.3]] | |
import os | |
import pickle | |
import pandas as pd | |
import random |
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
<!doctype html> | |
<html lang="en" prefix="op: http://media.facebook.com/op#"> | |
<head> | |
<meta charset="utf-8"> | |
<!-- URL of the web version of this article --> | |
<!-- TODO: Change the domain to match the domain of your website --> | |
<link rel="canonical" href="http://example.com/article.html"> | |
<meta property="op:markup_version" content="v1.0"> | |
</head> | |
<body> |
NewerOlder