Skip to content

Fortune-Adekogbe/titanic-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Titanic survivors prediction API

To use, run the following:

curl -s -XPOST 'https://life-boat.herokuapp.com/predict' -d '{"Age":3,"Sex":"male","Embarked":"S"}' -H 'accept-content: application/json'

Alternatively a simple python script:

import requests
import json
url = 'https://life-boat.herokuapp.com/predict'
data = {"Age":3,"Sex":"male","Embarked":"S"}
response = requests.post(url, json.dumps(data))
print(response.json())

Acknowlegements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages