Skip to content

Commit 82e0c86

Browse files
Merge pull request #39 from Cambridge-ICCS/binder
Binder gh pages and readme.
2 parents 52dc8e0 + 1f819ad commit 82e0c86

File tree

2 files changed

+38
-16
lines changed

2 files changed

+38
-16
lines changed

README.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
![GitHub](https://img.shields.io/github/license/Cambridge-ICCS/ml-training-material)
88
[![CC BY-NC-SA 4.0][cc-by-nc-sa-shield]][cc-by-nc-sa]
9+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/Cambridge-ICCS/ml-training-material/main)
910

1011
This repository contains documentation, resources, and code for the Introduction to
1112
Machine Learning with PyTorch session designed and delivered by [Jack Atkinson](https://jackatkinson.net/) ([**@jatkinson1000**](https://github.com/jatkinson1000))
@@ -70,13 +71,6 @@ These are for recapping after the course in case you missed anything, and contai
7071
[linted](https://docs.pylint.org/intro.html), and conforming to the
7172
[black](https://black.readthedocs.io/en/stable/) code style.
7273

73-
If you were working on Colab you can open the worked solutions using the following links:
74-
75-
* [Exercise 01](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/worked-solutions/01_penguin_classification_solutions.ipynb)
76-
* [Exercise 02](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/worked-solutions/02_penguin_regression_solutions.ipynb)
77-
* [Exercise 03](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/worked-solutions/03_mnist_classification_solutions.ipynb)
78-
* [Exercise 04](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/worked-solutions/04_ellipse_regression_solutions.ipynb)
79-
8074

8175
## Preparation and prerequisites
8276

@@ -136,17 +130,18 @@ us before a training session.
136130

137131
## Installation and setup
138132

139-
There are two options for participating in this workshop for which instructions are provided below:
133+
There are three options for participating in this workshop for which instructions are provided below:
140134

141135
* via a [local install](#local-install)
142136
* on [Google Colab](#google-colab)
137+
* on [binder](#binder)
143138

144139
We recommend the [local install](#local-install) approach, especially if you forked
145140
the repository, as it is the easiest way to keep a copy of your work and push back to GitHub.
146141

147142
However, if you experience issues with the installation process or are unfamiliar with
148143
the terminal/installation process there is the option to run the notebooks in
149-
[Google Colab](#google-colab).
144+
[Google Colab](#google-colab) or on [binder](#binder).
150145

151146
### Local Install
152147

@@ -219,18 +214,31 @@ python -m ipykernel install --user --name=MLvenv
219214

220215
### Google Colab
221216

222-
To run the notebooks in Google Colab click the following links for each of the exercises:
217+
Running on Colab is useful as it allows you to access GPU resources.
218+
To launch the notebooks in Google Colab click the following links for each of the exercises:
223219

224-
* [Exercise 01](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/exercises/01_penguin_classification.ipynb)
225-
* [Exercise 02](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/exercises/02_penguin_regression.ipynb)
226-
* [Exercise 03](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/exercises/03_mnist_classification.ipynb)
227-
* [Exercise 04](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/exercises/04_ellipse_regression.ipynb)
220+
* [Exercise 01](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/exercises/01_penguin_classification.ipynb) - [Worked Solution 01](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/worked-solutions/01_penguin_classification_solutions.ipynb)
221+
* [Exercise 02](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/exercises/02_penguin_regression.ipynb) - [Worked Solution 02](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/worked-solutions/02_penguin_regression_solutions.ipynb)
222+
* [Exercise 03](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/exercises/03_mnist_classification.ipynb) - [Worked Solution 03](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/worked-solutions/03_mnist_classification_solutions.ipynb)
223+
* [Exercise 04](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/exercises/04_ellipse_regression.ipynb) - [Worked Solution 04](https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/worked-solutions/04_ellipse_regression_solutions.ipynb)
228224

229225
_Notes:_
230226
* _Running in Google Colab requires you to have a Google account._
231227
* _If you leave a Colab session your work will be lost, so be careful to save any work
232228
you want to keep._
233229

230+
### binder
231+
232+
If you cannot operate using a local install, and do not wish to sign up for a Google account,
233+
the repository can be launched
234+
[on binder](https://mybinder.org/v2/gh/Cambridge-ICCS/ml-training-material/main).
235+
236+
_Notes:_
237+
* _If you leave a binder session your work will be lost, so be careful to save any work
238+
you want to keep_
239+
* _Due to the limited resources provided by binder you will struggle to run training in
240+
exercises 3 and 4._
241+
234242

235243
## License
236244

slides/index.html

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ <h2 id="contents">Contents</h2>
8686
<ul>
8787
<li><a href="#github">GitHub</a></li>
8888
<li><a href="#colab">Colab</a></li>
89+
<li><a href="#binder">binder</a></li>
8990
<li><a href="#solutions">Solutions</a></li>
9091
</ul>
9192
<li><a href="#prerequisites">Prerequisites</a></li>
@@ -135,6 +136,7 @@ <h2 id="setup">Setup Instructions</h2>
135136
<ul>
136137
<li><a href="#github">a local install via Github</a></li>
137138
<li><a href="#colab">online via Google Colab</a></li>
139+
<li><a href="#binder">online via binder</a></li>
138140
</ul>
139141

140142
<p>We recommend the local install approach, especially if you forked the repository, as it is the easiest way to keep a copy of your work and push back to github.</p>
@@ -183,7 +185,8 @@ <h6>Optional) Keep virtual environment persistent in Jupyter Notebooks</h6>
183185
<code>python -m ipykernel install --user --name=MLvenv</code></p>
184186

185187
<h4 id="colab">Google Colab</h4>
186-
<p>To run the notebooks in Google Colab click the following links for each of the exercises:</p>
188+
<p>Running on Colab is useful as it allows you to access GPU resources.<br>
189+
To launch the notebooks in Google Colab click the following links for each of the exercises:</p>
187190
<ul>
188191
<li><a href="https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/exercises/01_penguin_classification.ipynb">Exercise 01</a></li>
189192
<li><a href="https://colab.research.google.com/github/Cambridge-ICCS/ml-training-material/blob/colab/exercises/02_penguin_regression.ipynb">Exercise 02</a></li>
@@ -196,6 +199,17 @@ <h4 id="colab">Google Colab</h4>
196199
<indent>If you leave a Colab session your work will be lost, so be careful to save any work you want to keep.</indent>
197200
</i></p>
198201

202+
<h4 id="binder">binder</h4>
203+
<p>To run the notebooks in binder click the following link:</p>
204+
<ul>
205+
<li><a href="https://mybinder.org/v2/gh/Cambridge-ICCS/ml-training-material/main">Launch repository in binder</a></li>
206+
</ul>
207+
208+
<p><i>Notes:<br>
209+
<indent>If you leave a binder session your work will be lost, so be careful to save any work you want to keep.</indent>
210+
<indent>Due to the limited resources provided by binder you will struggle to run training in exercises 3 and 4.</indent>
211+
</i></p>
212+
199213
<h4 id="solutions">Solutions</h4>
200214

201215
<p>Worked solutions for all of the exercises can be found in the <inlinecode>worked-solutions/</inlinecode> directory.
@@ -246,7 +260,7 @@ <h4>Python</h4>
246260
</ul>
247261

248262
<h4>git and GitHub</h4>
249-
<p>Unless participating via <a href="#colab">Colab</a> you will be expected to know how to:</p>
263+
<p>Unless participating via <a href="#colab">Colab</a> or <a href="#binder">binder</a> you will be expected to know how to:</p>
250264
<ul>
251265
<li>clone and/or fork a repository,</li>
252266
<li>commit, and</li>

0 commit comments

Comments
 (0)