Create models for API

  • create_model.R - train and save model in R (for Plumber and RestRserve)
  • create_model.py - train and save model in Python (for API in Flask)

APIs

API in R

Plumber version

  • plumber.R - methods
  • start_api.R - run this script to launch API

RestRserve version

  • start_api_2.R - run this script to launch API (methods inside)

API in Python

  • start_api.py - run this to start API (in Flask, methods inside)

Test API and gather performance data

  • test_api.py - run this script and wait, wait, wait... to get results