This repository is a machine learning prediction ap samples for iris data by implementing python, R and Julia(todo).
- clone.
git clone https://github.com/RottenFruits/ml_api_samples.git
- docker build and start.
cd ml_api_samples
docker-compose build
docker-compose up -d
-
access server
-
select api type
- input data
- submit, return result
- python api exection command
curl http://0.0.0.0:5000/predict -X POST -H 'Content-Type:application/json' -d '{"feature":[1, 1, 1, 1]}'
- r api exection command
curl http://0.0.0.0:6100/predict -X POST -H 'Content-Type:application/json' -d '{"feature":[1, 1, 1, 1]}'