Sep 3, 2019
21 Views

Duthel.info xadrianzetx/fullstack.ai

Written by

End-to-end machine learning project showing key aspects of developing and deploying real life machine learning driven application. Hosting Running example is currently hosted here. POC EDA, data manipulation an preparation Scraping additional features from external sources Iterative process of building ML model Wrapping it as Python module as transition from dev colab notebooks to prod…

Duthel.info

Duthel.info Build Status

End-to-end machine learning project showing key aspects of developing and deploying real life machine learning driven application.

Duthel.info Hosting

Running example is currently hosted here.

Duthel.info POC

  • EDA, data manipulation an preparation
  • Scraping additional features from external sources
  • Iterative process of building ML model
  • Wrapping it as Python module as transition from dev colab notebooks to prod code
  • Using this module in Flask based microservice
  • Contenerizing it with Docker and deploying using Nginx reverse proxy server orchestrated with Docker Compose

This basically covers most of ML tech stack up to CI/CD pipeline.

I’ll be using SF Bay Area Bike Share dataset to model duration of bike travel across San Francisco. This dataset is bit dated and task itself is probably bit banal, but hey, this project is all about tech stack and leveraging different tools and ml techniques to achive my goal – a web based ml driven bike trip advisor with trip time prediction.

Duthel.info Notebooks

  • Introduction and database
  • EDA and feature engineering
  • Final preprocessing and models
  • Bayesian optimization
  • Model Evaluation

Duthel.info UI

Duthel.info API

Duthel.info Run

In order to deploy, you’ll need to get mapbox API key here. Then run

cd static/js && touch config.js

config.js should look like this

const config = {
    'mapboxApiKey': your.api.key.here
}

Having done this, app is now ready to deploy, so go to top of directory and build Nginx and app containers using

docker pull nginx:latest && docker-compose up --build -d

Nginx configuration maps reverse proxy server to port 80

Duthel.info API guide

API for hosted example is available at

https://fullstackai.pythonanywhere.com/api

GET valid station id

curl -i "https://fullstackai.pythonanywhere.com/api/stations"

GET predicted trip time between two stations

"https://fullstackai.pythonanywhere.com/api?start=start_id&end=end_id

Parameters

  • start_id (required) Valid start station id
  • end_id (required) Valid end station id

Example

curl -i "https://fullstackai.pythonanywhere.com/api?start=73&end=39"

Weiter

Article Tags:
· · ·
Article Categories:
News

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

3184 Besucher online
3184 Gäste, 0 Mitglied(er)
Jederzeit: 3184 um/am 09-18-2019 03:15 am
Meiste Besucher heute: 3184 um/am 03:15 am
Diesen Monat: 3184 um/am 09-18-2019 03:15 am
Dieses Jahr: 3184 um/am 09-18-2019 03:15 am