Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: carpentries-lab/deep-learning-intro
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.1.0
Choose a base ref
...
head repository: carpentries-lab/deep-learning-intro
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Oct 21, 2024

  1. 2
    Copy the full SHA
    fbf4dda View commit details

Commits on Jan 13, 2025

  1. Explain random seeds in episode 2 (#521)

    * Explain random seeds in episode 2
    
    * Apply suggestions from code review
    
    Co-authored-by: Carsten Schnober <c.schnober@esciencecenter.nl>
    
    ---------
    
    Co-authored-by: Carsten Schnober <c.schnober@esciencecenter.nl>
    svenvanderburg and carschno authored Jan 13, 2025
    Copy the full SHA
    32712da View commit details
  2. Explain inputs and outputs.

    carschno committed Jan 13, 2025
    Copy the full SHA
    725fe77 View commit details
  3. Copy the full SHA
    a291e91 View commit details
  4. Copy the full SHA
    f9c380f View commit details
  5. Resolve carpentries lab review likeajumprope (#523)

    * Explicitly mention to activate virtual environment when opening jupyter lab
    
    * Rephrase explanation of machine learning in overview figure
    
    * Use are not instead of aren't
    
    * Fix list rendering episode 2
    
    * Avoid using "surprisingly straightforward"
    
    * Add a note about different training history plots
    
    * Refer to callout on random seeds
    
    * Use .keras extension when saving the model in episode 2, 3 & 4
    
    * Add troubleshooting when weather data results in SSL certificate issues
    
    * Use new root_mean_squared_error function
    
    * Show right output for y shape of dollarstreet data
    
    * Provide solution to SSL certificate verifation error when loading densenet weights
    svenvanderburg authored Jan 13, 2025
    Copy the full SHA
    a09aa02 View commit details
  6. Refine Early Stopping part.

    carschno committed Jan 13, 2025
    Copy the full SHA
    f1e2577 View commit details
  7. [actions] update sandpaper workflow to version 0.16.10 (#527)

    Co-authored-by: svenvanderburg <svenvanderburg@users.noreply.github.com>
    svenvanderburg and svenvanderburg authored Jan 13, 2025
    Copy the full SHA
    67ea268 View commit details
  8. Copy the full SHA
    d53fb6c View commit details
  9. Copy the full SHA
    caa2cc6 View commit details
  10. Copy the full SHA
    8cb8932 View commit details

Commits on Jan 14, 2025

  1. Copy the full SHA
    1f97ecd View commit details
  2. Fix redundant word typo.

    Co-authored-by: Sven van der Burg <s.vanderburg@esciencecenter.nl>
    carschno and svenvanderburg authored Jan 14, 2025
    Copy the full SHA
    0c37dd3 View commit details
  3. Copy the full SHA
    dfaa5a5 View commit details
  4. Copy the full SHA
    6da0985 View commit details
  5. Copy the full SHA
    53e7961 View commit details
  6. Copy the full SHA
    a7c7acc View commit details
  7. Copy the full SHA
    2f29f13 View commit details
  8. explanations for that there are no predictions for chinstrap

    some explanations for that why there are no predictions for chinstrap, and some context about the confusion matrix
    code4yonglei committed Jan 14, 2025
    Copy the full SHA
    c1db18b View commit details
  9. Merge pull request #531 from carpentries-incubator/issue_515/episode_4

    Issue 515/episode 4
    
    Replicating PR #528.
    carschno authored Jan 14, 2025
    Copy the full SHA
    e874772 View commit details
  10. Link to ML and other deep learning lesson in introduction (#532)

    * Link to ML and other deep learning lesson in introduction
    
    * Fix typo
    
    * Apply suggestions from code review
    
    Co-authored-by: Carsten Schnober <c.schnober@esciencecenter.nl>
    
    ---------
    
    Co-authored-by: Carsten Schnober <c.schnober@esciencecenter.nl>
    svenvanderburg and carschno authored Jan 14, 2025
    Copy the full SHA
    d1c967e View commit details
  11. Cite other carpentries DL lesson in paper (#533)

    * Cite other carpentries DL lesson in paper
    
    * Use bibtex suggested by pollard repo
    
    Co-authored-by: Carsten Schnober <c.schnober@esciencecenter.nl>
    
    * Apply suggestions from code review
    
    Co-authored-by: Carsten Schnober <c.schnober@esciencecenter.nl>
    
    ---------
    
    Co-authored-by: Carsten Schnober <c.schnober@esciencecenter.nl>
    svenvanderburg and carschno authored Jan 14, 2025
    Copy the full SHA
    987a592 View commit details
  12. update workshop info

    code4yonglei committed Jan 14, 2025
    2
    Copy the full SHA
    f5e2013 View commit details
  13. Copy the full SHA
    bb72319 View commit details
  14. Copy the full SHA
    cf5996c View commit details
  15. Copy the full SHA
    63d0c58 View commit details
  16. Copy the full SHA
    c5eb361 View commit details
  17. Copy the full SHA
    aea49c2 View commit details
  18. Copy the full SHA
    ce7d8cc View commit details
  19. Copy the full SHA
    69d0940 View commit details
  20. Copy the full SHA
    3015aab View commit details

Commits on Jan 15, 2025

  1. Visualize model plot and update model summary for ep. 2 (#536)

    * Updated output from model.summary() call
    
    Looks cleaner and it should match with what the learner would get.
    Got this by using the following versions of the package with Python
    3.12.
    
    Name: tensorflow
    Version: 2.18.0
    
    Name: keras
    Version: 3.8.0
    
    * Model output names it functional now
    
    * Describe the memory footprint showing the model summary output
    
    * Tweak the model summary so that it can be viewed without scrolling
    
    * Add plot_model function and show its output
    
    * Add pydot dependency to setup
    
    * Move the instructor note before the challenge
    
    * Reword: data type
    
    * Fix alt text for 02_plot_model.png
    
    * Typo: a graph -> in graph form
    
    * Fix grammar.
    
    Co-authored-by: Ashwin V. Mohanan <9155111+ashwinvis@users.noreply.github.com>
    
    * Add installation instructions for Graphviz to setup
    
    * A minor typo: follow -> follows
    
    * Rewrite instructions for checking if Graphviz works
    
    Co-authored-by: Sven van der Burg <s.vanderburg@esciencecenter.nl>
    
    * Change instructor note for optional question 3 visualizing the model
    
    ---------
    
    Co-authored-by: Carsten Schnober <c.schnober@esciencecenter.nl>
    Co-authored-by: Sven van der Burg <s.vanderburg@esciencecenter.nl>
    3 people authored Jan 15, 2025
    Copy the full SHA
    7abf8b4 View commit details

Commits on Jan 17, 2025

  1. Add instructor box for fixing MathJax issues on Chrome/MacOS. (#539)

    * Add instructor box for fixing MathJax issues on Chrome/MacOS.
    
    * Apply suggestions from code review
    
    Co-authored-by: Toby Hodges <tobyhodges@carpentries.org>
    
    * Add missing period.
    
    ---------
    
    Co-authored-by: Toby Hodges <tobyhodges@carpentries.org>
    carschno and tobyhodges authored Jan 17, 2025
    Copy the full SHA
    b04fd55 View commit details
  2. Fix typo.

    Co-authored-by: Ashwin V. Mohanan <9155111+ashwinvis@users.noreply.github.com>
    carschno and ashwinvis authored Jan 17, 2025
    Copy the full SHA
    b7ed85a View commit details
  3. Copy the full SHA
    9ae8db1 View commit details
  4. Copy the full SHA
    680c3fa View commit details
  5. Copy the full SHA
    fc1c706 View commit details
  6. Fix typos.

    carschno authored Jan 17, 2025
    Copy the full SHA
    3e4d6a8 View commit details
  7. Merge pull request #530 from code4yonglei/main

    explanations for that there are no predictions for chinstrap
    carschno authored Jan 17, 2025
    Copy the full SHA
    2cea384 View commit details
  8. Copy the full SHA
    3dfdd39 View commit details

Commits on Jan 20, 2025

  1. Copy the full SHA
    8262c19 View commit details

Commits on Jan 21, 2025

  1. Copy the full SHA
    9c83909 View commit details

Commits on Jan 23, 2025

  1. Copy the full SHA
    4d99728 View commit details
  2. Revert "Fix bullet list, add comment about numbers."

    This reverts commit 4d99728.
    carschno committed Jan 23, 2025
    Copy the full SHA
    cd35a6b View commit details
  3. Fix missing empty line.

    carschno committed Jan 23, 2025
    Copy the full SHA
    a1fa555 View commit details
  4. Copy the full SHA
    8a9067a View commit details
  5. Merge pull request #540 from carpentries-incubator/add-authors-enccs

    Add contributing authors from ENCCS
    code4yonglei authored Jan 23, 2025
    Copy the full SHA
    38162dc View commit details

Commits on Jan 30, 2025

  1. Replace tensorflow-metal installation instructions with comment on cu…

    …rrent status (broken). (#543)
    carschno authored Jan 30, 2025
    Copy the full SHA
    63bb1b0 View commit details
  2. Copy the full SHA
    a5dd2e3 View commit details

Commits on Feb 10, 2025

  1. Copy the full SHA
    f0109e2 View commit details
10 changes: 5 additions & 5 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

This directory contains workflows to be used for Lessons using the {sandpaper}
lesson infrastructure. Two of these workflows require R (`sandpaper-main.yaml`
and `pr-recieve.yaml`) and the rest are bots to handle pull request management.
and `pr-receive.yaml`) and the rest are bots to handle pull request management.

These workflows will likely change as {sandpaper} evolves, so it is important to
keep them up-to-date. To do this in your lesson you can do the following in your
@@ -94,9 +94,9 @@ branch called `update/workflows` and a pull request is created. Maintainers are
encouraged to review the changes and accept the pull request if the outputs
are okay.

This update is run ~~weekly or~~ on demand.
This update is run weekly or on demand.

### 03 Maintain: Update Pacakge Cache (update-cache.yaml)
### 03 Maintain: Update Package Cache (update-cache.yaml)

For lessons that have generated content, we use {renv} to ensure that the output
is stable. This is controlled by a single lockfile which documents the packages
@@ -140,7 +140,7 @@ Once the checks are finished, a comment is issued to the pull request, which
will allow maintainers to determine if it is safe to run the
"Receive Pull Request" workflow from new contributors.

### Recieve Pull Request (pr-recieve.yaml)
### Receive Pull Request (pr-receive.yaml)

**Note of caution:** This workflow runs arbitrary code by anyone who creates a
pull request. GitHub has safeguarded the token used in this workflow to have no
@@ -171,7 +171,7 @@ The artifacts produced are used by the next workflow.

### Comment on Pull Request (pr-comment.yaml)

This workflow is triggered if the `pr-recieve.yaml` workflow is successful.
This workflow is triggered if the `pr-receive.yaml` workflow is successful.
The steps in this workflow are:

1. Test if the workflow is valid and comment the validity of the workflow to the
28 changes: 28 additions & 0 deletions .github/workflows/draft-pdf-paper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Draft PDF paper
on:
push:
paths:
- paper/**
- .github/workflows/draft-pdf-paper.yml
jobs:
paper:
runs-on: ubuntu-latest
name: Paper Draft

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build draft PDF
uses: openjournals/openjournals-draft-action@master
with:
journal: joss
# This should be the path to the paper within your repo.
paper-path: paper/paper.md
- name: Upload
uses: actions/upload-artifact@v4
with:
name: paper
# This is the output path where Pandoc will write the compiled
# PDF. Note, this should be the same directory as the input
# paper.md
path: paper/paper.pdf
5 changes: 2 additions & 3 deletions .github/workflows/pr-close-signal.yaml
Original file line number Diff line number Diff line change
@@ -8,16 +8,15 @@ on:
jobs:
send-close-signal:
name: "Send closing signal"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: ${{ github.event.action == 'closed' }}
steps:
- name: "Create PRtifact"
run: |
mkdir -p ./pr
printf ${{ github.event.number }} > ./pr/NUM
- name: Upload Diff
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pr
path: ./pr

11 changes: 5 additions & 6 deletions .github/workflows/pr-comment.yaml
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ jobs:
# - no .github files were committed
test-pr:
name: "Test if pull request is valid"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
@@ -74,15 +74,15 @@ jobs:
create-branch:
name: "Create Git Branch"
needs: test-pr
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: ${{ needs.test-pr.outputs.is_valid == 'true' }}
env:
NR: ${{ needs.test-pr.outputs.number }}
permissions:
contents: write
steps:
- name: 'Checkout md outputs'
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: md-outputs
path: built
@@ -120,7 +120,7 @@ jobs:
comment-pr:
name: "Comment on Pull Request"
needs: [test-pr, create-branch]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: ${{ needs.test-pr.outputs.is_valid == 'true' }}
env:
NR: ${{ needs.test-pr.outputs.number }}
@@ -150,7 +150,7 @@ jobs:
comment-changed-workflow:
name: "Comment if workflow files have changed"
needs: test-pr
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: ${{ always() && needs.test-pr.outputs.is_valid == 'false' }}
env:
NR: ${{ github.event.workflow_run.pull_requests[0].number }}
@@ -182,4 +182,3 @@ jobs:
with:
pr: ${{ env.NR }}
body: ${{ env.body }}

2 changes: 1 addition & 1 deletion .github/workflows/pr-post-remove-branch.yaml
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ on:
jobs:
delete:
name: "Delete branch from Pull Request"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: >
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
2 changes: 1 addition & 1 deletion .github/workflows/pr-preflight.yaml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ jobs:
test-pr:
name: "Test if pull request is valid"
if: ${{ github.event.action != 'closed' }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
is_valid: ${{ steps.check-pr.outputs.VALID }}
permissions:
17 changes: 9 additions & 8 deletions .github/workflows/pr-receive.yaml
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ jobs:
test-pr:
name: "Record PR number"
if: ${{ github.event.action != 'closed' }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
is_valid: ${{ steps.check-pr.outputs.VALID }}
steps:
@@ -25,7 +25,7 @@ jobs:
- name: "Upload PR number"
id: upload
if: ${{ always() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pr
path: ${{ github.workspace }}/NR
@@ -48,7 +48,7 @@ jobs:
build-md-source:
name: "Build markdown source files if valid"
needs: test-pr
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: ${{ needs.test-pr.outputs.is_valid == 'true' }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
@@ -58,10 +58,10 @@ jobs:
MD: ${{ github.workspace }}/site/built
steps:
- name: "Check Out Main Branch"
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: "Check Out Staging Branch"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: md-outputs
path: ${{ env.MD }}
@@ -107,20 +107,21 @@ jobs:
shell: Rscript {0}

- name: "Upload PR"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: pr
path: ${{ env.PR }}
overwrite: true

- name: "Upload Diff"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: diff
path: ${{ env.CHIVE }}
retention-days: 1

- name: "Upload Build"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: built
path: ${{ env.MD }}
7 changes: 5 additions & 2 deletions .github/workflows/sandpaper-main.yaml
Original file line number Diff line number Diff line change
@@ -21,7 +21,10 @@ on:
jobs:
full-build:
name: "Build Full Site"
runs-on: ubuntu-latest

# 2024-10-01: ubuntu-latest is now 24.04 and R is not installed by default in the runner image
# pin to 22.04 for now
runs-on: ubuntu-22.04
permissions:
checks: write
contents: write
@@ -32,7 +35,7 @@ jobs:
steps:

- name: "Checkout Lesson"
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: "Set up R"
uses: r-lib/actions/setup-r@v2
2 changes: 1 addition & 1 deletion .github/workflows/sandpaper-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.12.0
0.16.10
12 changes: 6 additions & 6 deletions .github/workflows/update-cache.yaml
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ on:
jobs:
preflight:
name: "Preflight Check"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
ok: ${{ steps.check.outputs.ok }}
steps:
@@ -36,14 +36,14 @@ jobs:
check_renv:
name: "Check if We Need {renv}"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: preflight
if: ${{ needs.preflight.outputs.ok == 'true'}}
outputs:
needed: ${{ steps.renv.outputs.exists }}
steps:
- name: "Checkout Lesson"
uses: actions/checkout@v3
uses: actions/checkout@v4
- id: renv
run: |
if [[ -d renv ]]; then
@@ -52,7 +52,7 @@ jobs:
check_token:
name: "Check SANDPAPER_WORKFLOW token"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: check_renv
if: ${{ needs.check_renv.outputs.needed == 'true' }}
outputs:
@@ -69,14 +69,14 @@ jobs:
name: "Update Package Cache"
needs: check_token
if: ${{ needs.check_token.outputs.repo== 'true' }}
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
RENV_PATHS_ROOT: ~/.local/share/renv/
steps:

- name: "Checkout Lesson"
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: "Set up R"
uses: r-lib/actions/setup-r@v2
6 changes: 3 additions & 3 deletions .github/workflows/update-workflows.yaml
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ on:
jobs:
check_token:
name: "Check SANDPAPER_WORKFLOW token"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
outputs:
workflow: ${{ steps.validate.outputs.wf }}
repo: ${{ steps.validate.outputs.repo }}
@@ -31,12 +31,12 @@ jobs:

update_workflow:
name: "Update Workflow"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: check_token
if: ${{ needs.check_token.outputs.workflow == 'true' }}
steps:
- name: "Checkout Repository"
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Update Workflows
id: update
2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -10,3 +10,5 @@
* Cunliang Geng <c.geng@esciencecenter.nl>
* Pranav Chandramouli <p.chandramouli@esciencecenter.nl>
* Carsten Schnober <c.schnober@esciencecenter.nl>
* Ashwin Vishnu Mohanan <ashwin.mohanan@ri.se>
* Yonglei Wang <yonglei@nsc.liu.se>
13 changes: 11 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -55,10 +55,19 @@ authors:
email: c.schnober@esciencecenter.nl
- given-names: Toby
family-names: Hodges
- given-names: Ashwin Vishnu
family-names: Mohanan
orcid: https://orcid.org/0000-0002-2979-6327
email: ashwin.mohanan@ri.se
- given-names: Yonglei
family-names: Wang
orcid: https://orcid.org/0000-0003-3393-7257
email: yonglei@nsc.liu.se

repository-code: >-
https://github.com/carpentries-incubator/deep-learning-intro
https://github.com/carpentries-lab/deep-learning-intro
url: >-
https://carpentries-incubator.github.io/deep-learning-intro/
https://carpentries-lab.github.io/deep-learning-intro/
abstract: >-
This course describes a hands-on introduction to the first
steps in deep learning,
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/carpentries-incubator/deep-learning-intro/scaffolds)
[![DOI](https://zenodo.org/badge/163412836.svg)](https://zenodo.org/badge/latestdoi/163412836)

[![The Carpentries Lab Review Status](http://badges.carpentries-lab.org/25_status.svg)](https://github.com/carpentries-lab/reviews/issues/25)

# Introduction to deep learning
This lesson gives an introduction to deep learning.
@@ -21,7 +21,7 @@ deep learning. In addition, we expect them to know basics of statistics and mach

## Lesson development sprints
We regularly host lesson development sprints, in which we work together at the lesson.
The next one is scheduled for the 22nd and 23rd of July 2024. We kickoff with an online meeting at 10:00 CEST.
The next one is scheduled for the 13th and 14th of January 2025. We kickoff with an online meeting at 10:00 CEST.
If you want to join (you are very welcome to join even if you have never contributed so far) send an email to deep-learning-lesson-dev@esciencecenter.nl .

## Contributing
@@ -70,12 +70,8 @@ See the [Carpentries Workbench usage instructions](https://carpentries.github.io
## Maintainer(s)

Current maintainers of this lesson are
* Peter Steinbach
* Colin Sauze
* Djura Smits
* Sven van der Burg
* Pranav Chandramouli
* Carsten Schnober
* Sven van der Burg (s.vanderburg@esciencecenter.nl)
* Carsten Schnober (c.schnober@esciencecenter.nl)

## Citation and authors

Loading