Giter VIP home page Giter VIP logo

ml-tutorial's Introduction

Machine Learning Tutorial

Python 3.6+

Installation

Option 1: Anaconda (new Python users)

Download the Python 3 Anaconda installer for your OS and open the Anaconda prompt.

Clone this repo using git or download it manually. Then, using the Anaconda prompt, cd into the ml-tutorial directory and move on to [Starting the tutorial](#Starting the tutorial).

Option 2: pip & virtual environment (advanced users)

Clone the repo and create a virtual environment in the root folder. After activating the environment, install the required packages:

    pip install -r requirements.txt

Starting the tutorial

Open the release/1/index.ipynb Jupyter notebook with the following command:

    jupyter notebook release/1/index.ipynb

Updating the tutorial

Activate the nbgrader notebook extension as documented here. Change the notebooks in the source/ folder, any new cells where students have to write code should be set to Autograded answer as documented here.

After saving your changes, run:

    sh generate_assignment.sh

This will overwrite the existing release/ directory.

While creating the notebooks in the release/ directory, the nbgrader package will alter code segments that look like:

    ### BEGIN SOLUTION
    foo = bar
    ### END SOLUTION

into:

    ##### Implement this part of the code #####
    raise NotImplementedError("Code not implemented, follow the instructions.")

As specified in the nbgrader_config.py file.

JupyterHub (BETA)

If you want to host this workshop you can use the included Dockerfile to build a JupyterHub which you can build and launch with the following commands:

docker build . -t ml-tutorial

docker run -p 8000:80 ml-tutorial

Surf to http://localhost:8000 to start the tutorial and log in with user001 and password password.

The docker image is also available on docker hub so running it on a server should work with: docker run -d -p 80:80 pbutenee/ml-tutorial without the need for downloading the code or building the container. Set the port to 8000 instead of 80 to test it out on local host. NOTE: ONLY AN OLD VERSION OF THIS CONTAINER IS AVAILABLE ON DOCKER HUB SINCE IT IS NO LONGER FREE

ml-tutorial's People

Contributors

bartdevylder avatar dependabot[bot] avatar jeroenboeye avatar jorisboeye avatar lursel avatar pbutenee avatar samuelbosch 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.