This is a work in progress, at this moment the prediction accuracy is 80%.
- Open the project with RStudio.
- Go to your console and run the following commands:
> library(plumber)
> p <- plumb("plumber.R")
> p$run(port = 5762)
- Then you can access to this portal locally
http://127.0.0.1:5762/__swagger__/
A list of the first things that come to my mind at the moment, probably there are gonna be more:
- Refactor the
plumber.R
file, at this moment that file is handling everything. The data normalization and the KNN should be on a different place. - The list of suburbs that we have at the moment are the suburbs that have been used by TNT shipments. Any suburb that has not been used by TNT it won't appear on this list. However, this list is limited from 1/January/2018 and also we removed shipments coming from big companies.
- Create a well balanced dataset with a normal distribution of shipments. This means to get a uniform list of all the states using the majority of the suburbs and postcodes.
- Improve the endpoint, we just have the
echo
endpoint. - Add authentication to the web service.
- Handle request errors properly.
- Show better errors as a web service.
- And more to go 😊.