Code Monkey home page Code Monkey logo

devops-ml's Introduction

CircleCI

##Summary This repo contains the files to deploy on python venv, docker and kubernetes a machine learning microservice api thas has been trained to predict housing prices in Boston according to several features, such as average rooms in a home and data about highway access, teacher-to-pupil ratios, and so on (more info on www.kaggle.com/c/boston-housing)

##Instructions

Local deployment:

Docker deployment:

  • run $./run_docker.sh and wait to run the container
  • in other console call to the script make_predictions.sh (using url:http://localhost:$PORT/predict)
  • to push the repo in the docker hub call the script $./upload_docker.sh

Kubernetes deployment:

##Files in the repo app.py -> application that uses flask, scikit-learn and pandas to get a prediction (in this case use the model about price housing in boston) model_data/bostou_housing_prediction.joblib -> the trained model with data about price housing in boston model_data/housing.csv -> data about prices Dockerfile -> file to build the docker image Makefile -> file to build local service make_predictions.sh -> script for call the app.py output_txt_files->output of build the service in docker and kubernetes requirements.txt -> libraries needed by app.py run_docker.sh -> script to help the build of the docker image upload_docker.sh -> script to help to upload the image to docker hub run_kubernetes.sh -> script to help the deploy of the service in kubernetes tests/ -> files to test the service README.md -> this file

devops-ml's People

Watchers

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