Skip to content

Simple example of how to deploy machine learning model (RandomForestClassifier) with FastAPI and docker-compose.

License

Notifications You must be signed in to change notification settings

q00Dree/fastapi-iris-classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serving RandomForestClassifier model with FastAPI.

1) Clone repo and deploy app.

git clone https://github.com/q00Dree/fastapi-iris-classifier.git \
&& cd fastapi-iris-classifier \
&& cd deploy \
&& bash deploy.sh

2) Try model to classify iris by params.

curl --request POST \
  --url http://localhost:8001/api/v1/rfc/predict \
  --header 'accept: application/json' \
  --header 'content-type: application/json' \
  --data '{"sepal_length":3.4,"sepal_width":7.2,"petal_length":2.1,"petal_width":3.5}'

3) Enjoy =)

About

Simple example of how to deploy machine learning model (RandomForestClassifier) with FastAPI and docker-compose.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •