Python API¶
-
server.api.similarity(user_id, host='0.0.0.0', port=5000)[source]¶ API call to flask app running on localhost and fetch top similar customers to the input customer(s)
- Parameters
user_id (str) – unique user id to fetch similar user profiles
host (str (default = localhost)) – hostname for serving the Flask sever
port (int) – port for Flask sever to listen on