Skip to content

Commit

Permalink
0603 rerender
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanrongen committed Mar 6, 2024
1 parent d519534 commit eb32b33
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions _freeze/materials/mva-intro/execute-results/html.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"hash": "9ee4b95d29be3864921e9dfe498be977",
"hash": "2d09376c60acb6be29f9775a9870bf50",
"result": {
"engine": "knitr",
"markdown": "---\ntitle: \"Background\"\n---\n\n::: {.cell}\n\n:::\n\n::: {.cell}\n\n:::\n\n\n## Principal component analysis\n\nThis is a statistical technique for reducing the dimensionality of a data set. The technique aims to find a new set of variables for describing the data. These new variables are made from a weighted sum of the old variables. The weighting is chosen so that the new variables can be ranked in terms of importance in that the first new variable is chosen to account for as much variation in the data as possible. Then the second new variable is chosen to account for as much of the remaining variation in the data as possible, and so on until there are as many new variables as old variables.\n\n## K-means clustering\n\nThis is a method for grouping observations into clusters. It groups data based on similarity and is an often-used method unsupervised machine learning algorithm.\n\nIt groups the data into a fixed number of clusters ($k$) and the ultimate aim is to discover patterns in the data.\n\n## Hierarchical clustering\n\nA clustering method that tries to create a hierarchy across data, often displayed as a *dendogram*. This visualises the way the clusters are arranged.\n",
"markdown": "---\ntitle: \"Background\"\n---\n\n::: {.cell}\n\n:::\n\n::: {.cell}\n\n:::\n\n\n## Principal component analysis\n\nThis is a statistical technique for reducing the dimensionality of a data set. The technique aims to find a new set of variables for describing the data. These new variables are made from a weighted sum of the old variables. The weighting is chosen so that the new variables can be ranked in terms of importance in that the first new variable is chosen to account for as much variation in the data as possible. Then the second new variable is chosen to account for as much of the remaining variation in the data as possible, and so on until there are as many new variables as old variables.\n\n## K-means clustering\n\nThis is a method for grouping observations into clusters. It groups data based on similarity and is an often-used unsupervised machine learning algorithm.\n\nIt groups the data into a fixed number of clusters ($k$) and the ultimate aim is to discover patterns in the data.\n\n## Hierarchical clustering\n\nA clustering method that tries to create a hierarchy across data, often displayed as a *dendogram*. This visualises the way the clusters are arranged.\n",
"supporting": [
"mva-intro_files"
],
Expand Down
4 changes: 2 additions & 2 deletions _freeze/materials/mva-kmeans/execute-results/html.json

Large diffs are not rendered by default.

Binary file modified _freeze/materials/mva-kmeans/figure-html/unnamed-chunk-10-1.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 modified _freeze/materials/mva-kmeans/figure-html/unnamed-chunk-13-1.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 modified _freeze/materials/mva-kmeans/figure-html/unnamed-chunk-14-1.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 modified _freeze/materials/mva-kmeans/figure-html/unnamed-chunk-20-1.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 modified _freeze/materials/mva-kmeans/figure-html/unnamed-chunk-23-1.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 modified _freeze/materials/mva-kmeans/figure-html/unnamed-chunk-24-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions materials/mva-kmeans.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ ggplot(penguins, aes(x = bill_depth_mm,
```{python}
#| results: hide
(ggplot(penguins_py,
aes(x = 'bill_depth_mm',
y = 'bill_length_mm',
colour = 'species')) +
aes(x = "bill_depth_mm",
y = "bill_length_mm",
colour = "species")) +
geom_point())
```

Expand Down Expand Up @@ -155,6 +155,8 @@ The output is a list of vectors, with differing lengths. That's because they con

## Python

To do the clustering, we'll be using the `KMeans()` function.

:::

### Visualise clusters
Expand Down

0 comments on commit eb32b33

Please sign in to comment.