Skip to content

ddegirmenci/ml-tutorial

 
 

Repository files navigation

Machine Learning Tutorial

Python 3.6+

Installation

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

Taking 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 might also work with: docker run -p 8000:80 pbutenee/ml-tutorial without the need for downloading the code or building the container.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 97.9%
  • Shell 1.5%
  • Other 0.6%