Coder Social home page Coder Social logo

vdt / fullstack.ai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xadrianzetx/fullstack.ai

0.0 1.0 0.0 6.76 MB

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

Python 66.44% HTML 9.73% CSS 2.69% JavaScript 20.68% Dockerfile 0.46%

fullstack.ai's Introduction

Build Status

fullstack.ai

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 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.

Notebooks

UI

API

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

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"

fullstack.ai's People

Contributors

xadrianzetx avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.