Code Monkey home page Code Monkey logo

ashishpatel26 / mlops-engineering-in-action Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 7.0 31.05 MB

Reference code base for ML Engineering in Action, Manning Publications Author: Ben Wilson

Home Page: https://www.manning.com/books/machine-learning-engineering-in-action

Shell 0.01% Jupyter Notebook 73.73% HTML 26.17% Python 0.02% Scala 0.08%
deep-learning kubeflow machine-learning ml mlflow mlops mlops-environment production pytorch tensorflow

mlops-engineering-in-action's Introduction

ML-Engineering

Reference code base for ML Engineering in Action, Manning Publications Author: Ben Wilson

About this repo

This is a companion to the Manning book Machine Learning Engineering in Action. Within this repo are two separate types of notebooks, linked to the examples shown in chapters within the book. The formats of these notebooks come in several different flavors, depending on the type of examples that they are covering:

  • Jupyter notebooks for 'standalone Python'
  • PySpark Databricks archive notebooks (these can be imported into Databricks or Databricks Community Edition (free of charge))
  • PySpark html notebook representations (these can be loaded into any web browser for visualization)
  • Scala Spark Databricks notebooks (in .dbc, .html, and pure .scala formats)

For the Jupyter notebooks, a pre-configured bash script is provided at the root level of this directory that will generate a docker image and automatically start the created container for you to rapidly get started with these notebooks.

Getting Started with Docker

To utilize the pre-built environment and follow along with the examples in the book with additional notes and code that wasn't included in the book, we first need Docker.

There are a number of different ways to acquire Docker. Please visit their website for instructions on installing the desktop GUI and the engine.

Creating the image

The file here will, when executed through a bash command in your linux terminal, create the container to execute the Jupyter notebooks in this repo. The script will link this repo to the docker environment through piped synchronization to your local machine, download the required data to execute the code in the notebooks, and install the necessary dependencies to get Jupyter working (as well as some required libraries that are not part of the Anacondas runtime).

NOTE: Within the bash script is a variable named 'port' that will allow you to customize 
the access port that Jupyter and Docker will use to allow you to utilize a Jupyter notebook 
from your local web browser. If you currently have Jupyter running on your machine with the 
general 'default port' of 8888, this configuration utilizes 8887. Feel free to change it 
if there is a conflict.

Once the shell script is executed, as shown below, the container will be constructed for your use.

Running the bash script

Getting Jupyter to start up

At the end of the container creation process, your terminal will have a url that you can paste into your web browser of choice, as shown below.

JupyterLab URL

After copying one of these URL's (I typically stick to the local host 127.0.0.1/ one), paste it into a browser. You'll have all of the notebooks available that are part of the chapters of ML Engineering in Action.

JupyterLab Interface

Navigating within each of the chapters (the ones that have supported standalone Python Jupterlab examples; the Spark ones will not load here!) will give you the notebook links that you can click on and open the notebook in a new tab for reading, running, modification, and anything else you'd like to do.

Example Notebook

mlops-engineering-in-action's People

Contributors

ashishpatel26 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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