Skip to content

Commit

Permalink
Update intro slides
Browse files Browse the repository at this point in the history
  • Loading branch information
gpleiss committed Aug 30, 2024
1 parent aba9fc8 commit b85a2af
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 47 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

91 changes: 68 additions & 23 deletions schedule/slides/00-intro-to-class.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,26 @@ metadata-files:
:::
:::

## Wait, there's two of you?

*Geoff & Trevor are co-teaching this course!*

<br>

Think of the two of us as interchangeable people. \
(It's not that hard. We're very similar.)

- We will both be present at (almost) all lectures
- We will roughly alternate who is giving the lecture
- We are both in charge of course material / course policies / grades / etc.

## Philosophy of the class

We and the TAs are here to [help you learn]{.secondary}. Ask questions.

We encourage [engagement]{.secondary}, [curiosity]{.secondary} and [generosity]{.secondary}

We favour [steady work]{.secondary} through the Term (vs. sleeping until finals)
We favour [steady work]{.secondary} through the term (vs. sleeping until finals)

. . .

Expand All @@ -68,40 +81,26 @@ We do not want

We promise

- To grade/mark fairly. Good faith effort will be rewarded
- To grade/mark fairly. Good faith effort will be rewarded.
- To be flexible. This semester (like the last 4) is different for everyone.
- To understand and adapt to issues.

. . .

[We do not promise that you will all get the grade you want.]{.secondary}

# COVID considerations

<!--## On COVID-->
## COVID Policies (TL; DR)

::: flex
::: w-60
<!--- I work on COVID a lot.-->

<!--- Statistics is hugely important.-->


- We encourage you to wear a mask
- We encourage you to wear a mask if you want

- Do [NOT]{.secondary} come to class if you are possibly sick

- Be kind and considerate to others

- The Marking scheme is flexible enough to allow some missed classes
:::

::: w-40
![](gfx/delphi.jpg)
![](gfx/bccovid.png)
:::
:::

# Course map

Expand All @@ -115,11 +114,25 @@ We promise
- Deep understanding of statistics helps with intuition.
:::

## {background-image="https://images-na.ssl-images-amazon.com/images/I/41xca5fHw3L.jpg" background-size="contain"}
## What this course is not
![](https://images-na.ssl-images-amazon.com/images/I/41xca5fHw3L.jpg){fig-align="center" fig-alt="Quick & Easy Food"}

## What this course is not
![](https://images-na.ssl-images-amazon.com/images/I/81jfPTGbRkL.jpg){fig-align="center" fig-alt="Modernist Cusine"}

## What this course is not
![](gfx/2024_food_trends.png){fig-align="center" fig-alt="2024 Food Trends"}

## What this course is
![](https://images-na.ssl-images-amazon.com/images/I/916Fx6LagOL.jpg){fig-align="center" fig-alt="The Flavor Bible" height="600px"}

## {background-image="https://images-na.ssl-images-amazon.com/images/I/81jfPTGbRkL.jpg" background-size="contain"}

## {background-image="https://images-na.ssl-images-amazon.com/images/I/916Fx6LagOL.jpg" background-size="contain"}
## What this course is

- ~~How to use scikit-learn / PyTorch~~
- ~~Everything there is to know about machine learning~~
- ~~The hypeist new machine leraning models (generative AI)~~
- The fundamentals for developing deep intuitions/understanding about machine learning

## Predictive models

Expand All @@ -139,6 +152,10 @@ Repeat all the preprocessing on new data. But be careful.

### 4. Postprocessing, interpretation, and evaluation

::: {.fragment}
[We will focus mostly on 1 and 4.]{.secondary}
:::

##

![](https://i.vas3k.blog/7vx.jpg){fig-align="center"}
Expand Down Expand Up @@ -178,6 +195,9 @@ Total across three components: 65 points, any way you want
2. [Assignments]{.secondary}, up to 50 points (10 each)
3. [Clickers]{.secondary}, up to 10 points

`effort_grade = max(65, labs + assignments + clickers)`

<br>

. . .

Expand Down Expand Up @@ -251,6 +271,31 @@ The goal is to "Do the work"

:::

## Late policy

If you have not submitted your lab/assignment by the time grading starts,
you will get a 0.

. . .

<br>

| **When you submit** | **Likelihood that your submission gets a 0** |
|-------------------------|------------------------------------------------------------|
| Before 11pm on due date\ (i.e. on time) | 0% |
| 11:01pm on due date | 0.01% |
| 9am after due date | 50% |
| 2 weeks after due date | 99.99999999% |


## Late policy

We will only make exceptions when you have grounds for academic consession.
(See the [UBC policy](https://science.ubc.ca/students/concession).)

:::callout-tip
**Remember**: you can still get a "perfect" effort grade even if you get a 0 on one assignment.
:::

## Clickers

Expand Down Expand Up @@ -360,14 +405,14 @@ This course is [not]{.fourth-colour} an intro to R / python / MongoDB / SQL.

## Other resources

Canvas
: Grades, links to videos from class
Canvas (minimal)
: Quiz 0, course time/location info, links to videos from class

Course website
: All the material (slides, extra worksheets) <https://ubc-stat.github.io/stat-406>

Slack
: Discussion board, questions.
: Discussion board, questions

Github
: Homework / Lab submission
Expand Down
53 changes: 39 additions & 14 deletions schedule/slides/00-version-control.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ metadata-files:

* Be sure you get Canvas email.

* If I am sick, I will cancel class or arrange a substitute.

## Course communication

Expand All @@ -57,7 +56,7 @@ metadata-files:

* Much more DS friendly

* Note that MDS uses both of these, the Stat and CS departments use both, many faculty use them, Google / Amazon / Facebook use things like these, etc.
* Note that MDS uses both of these, the Stat and CS departments use both, many faculty use them, Google / Amazon / Meta use things like these, etc.

. . .

Expand All @@ -83,11 +82,9 @@ Slack help from MDS [features](https://ubc-mds.github.io/resources_pages/slack/)
* Learning curve is steep, but when you need it you [REALLY]{.secondary} need it

::: {.callout-tip icon=false}
## Words of wisdom
## When you get really good

Your closest collaborator is you six months ago, but you don’t reply to emails.

-- _Paul Wilson_
Version control can act as a living lab notebook
:::


Expand All @@ -96,7 +93,6 @@ Your closest collaborator is you six months ago, but you don’t reply to emails
::: flex
::: w-60
* You could use something like Box or Dropbox
* These are poor-man's version control
* Git is much more appropriate
* It works with large groups
* It's very fast
Expand Down Expand Up @@ -177,6 +173,10 @@ git push -u origin <branchname>

![](gfx/git-clone.png){fig-align="center"}

## Commit messages should be meaningful
![](gfx/late_night_commits.png){fig-align="center" fig-alt="Bad commit messages" height="500px"}

Instead, try "Update linear model in Question 1.2"

## What should be tracked?

Expand All @@ -188,7 +188,7 @@ Definitely
<br>

Possibly
: logs, jupyter notebooks, images (that won’t change), ...
: jupyter notebooks, images (that won’t change), ...

<br>

Expand All @@ -198,15 +198,24 @@ Questionable
<br>

Definitely not
: full data, continually updated pdfs, other things compiled from source code, ...
: full data, continually updated pdfs, other things compiled from source code, logs...


## What should be tracked?

<br>

## What things to track
:::center
**TLDR**

Any file that [YOU]{.secondary} edit should be tracked \
Any file that's [computer generated]{.secondary} should PROBABLY NOT be tracked
:::

. . .

* You decide what is "versioned".

* A file called `.gitignore` tells `git` files or types to never track
A file called `.gitignore` tells `git` files or types to never track

```{{bash}}
# History files
Expand All @@ -225,7 +234,11 @@ Definitely not
*.DS_Store
```

* Shortcut to track everything (use carefully):
## What should be tracked?

<br>

Shortcut to track everything (use carefully):

```{{bash}}
git add .
Expand Down Expand Up @@ -280,6 +293,16 @@ to the same branch. Then "re-request review".
1. See Chapter 9 for credential caching (avoid typing a password all the time)
1. See Chapter 13 if RStudio can't find `git`

## If you know all this already...

<br>

:::center
Check out my ["How To Be a Git Wizard"](https://geoffpleiss.com/git_wizard.pdf) slides to take your git game to the next level. \
I guarantee (with 99% confidence) that you will learn an amazing new command.
:::

<!--
## The `main/develop/branch` workflow
* When working on your own
Expand All @@ -297,6 +320,7 @@ to the same branch. Then "re-request review".
. . .
I and many DS/CS/Stat faculty use this workflow with my lab.
-->

## Protection

Expand All @@ -313,7 +337,7 @@ I and many DS/CS/Stat faculty use this workflow with my lab.
1. PR templates: Little admonitions when you open a PR
1. Branch protection: prevent you from doing stuff

* In this course, I protect `main` so that you can't push there
* In this course, we protect `main` so that you can't push there

::: {.callout-warning}
If you try to push to `main`, it will give an error like
Expand Down Expand Up @@ -590,3 +614,4 @@ git branch -d badbranch

* Where to put answers.
:::

Binary file added schedule/slides/gfx/2024_food_trends.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added schedule/slides/gfx/late_night_commits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b85a2af

Please sign in to comment.