/ml_api_samples

This repository is a machine learning prediction ap samples for iris data by implementing python, R and Julia(todo).

Primary LanguageHTMLMIT LicenseMIT

ml api samples

This repository is a machine learning prediction ap samples for iris data by implementing python, R and Julia(todo).

Installation

  • 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

Usage

Browser

p1

  • input data

p2

  • submit, return result

p3

Command line

  • 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]}'

References