Skip to content

Enobs/titanic-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛳 Titanic Prediction


Usage

Run python run.py locally to start the Flask web service, or use the Heroku API:

import requests

sample = [{"pclass": 1, "sex": "male", "embarked": "C"},
          {"pclass": 2, "sex": "female", "embarked": "S"},
          {"pclass": 3, "sex": "male", "embarked": "Q"},
          {"pclass": 3, "sex": "female", "embarked": "S"}]
          
requests.post(url="https://titanic-demo.herokuapp.com", json=sample).content
{"predict":["no","yes","no","no"]}

About

🛳 Titanic Prediction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%