Skip to content
Snippets Groups Projects
Verified Commit 7cb7d644 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

Practical b: fix typo

parent ec3b6bd4
Branches
No related tags found
No related merge requests found
...@@ -493,13 +493,13 @@ Think about the starting state of your algorithm and the stopping condition ...@@ -493,13 +493,13 @@ Think about the starting state of your algorithm and the stopping condition
<details><summary>Solution</summary> <details><summary>Solution</summary>
<p> <p>
We have no prior information about the centroid, we can randomly draw them We have no prior information about the centroid, we can randomly draw them.
We are going to iterate over the two step of the algorithm until the centroids stay the same We are going to iterate over the two-step of the algorithm until the centroids stay the same.
</p> </p>
</details> </details>
<div class="pencadre"> <div class="pencadre">
Start by implementing an `kmeans_initiation(x, k)` function for your algorithm, returning $k$ centroids Start by implementing a `kmeans_initiation(x, k)` function for your algorithm, returning $k$ centroids
</div> </div>
<details><summary>Solution</summary> <details><summary>Solution</summary>
...@@ -517,7 +517,7 @@ kmeans_initiation <- function(x, k) { ...@@ -517,7 +517,7 @@ kmeans_initiation <- function(x, k) {
</details> </details>
<div class="pencadre"> <div class="pencadre">
Implement an `compute_distance(x, centroid)` function for your algorithm, the distance of each point (row of x) to each centroid, based on the squared Euclidian distance Implement a `compute_distance(x, centroid)` function for your algorithm, the distance of each point (row of x) to each centroid, based on the squared Euclidian distance.
</div> </div>
<details><summary>Solution</summary> <details><summary>Solution</summary>
...@@ -535,7 +535,7 @@ compute_distance <- function(x, centroid) { ...@@ -535,7 +535,7 @@ compute_distance <- function(x, centroid) {
</details> </details>
<div class="pencadre"> <div class="pencadre">
Implement an `cluster_assignment(distance)` function for your algorithm, returning the assignment of each point (row of x), based on the squared Euclidian distance Implement a `cluster_assignment(distance)` function for your algorithm, returning the assignment of each point (row of x), based on the squared Euclidian distance.
</div> </div>
<details><summary>Solution</summary> <details><summary>Solution</summary>
...@@ -554,7 +554,7 @@ cluster_assignment <- function(distance) { ...@@ -554,7 +554,7 @@ cluster_assignment <- function(distance) {
<div class="pencadre"> <div class="pencadre">
Implement an `centroid_update(x, cluster, k)` function for your algorithm, returning the updated centroid for your clusters Implement a `centroid_update(x, cluster, k)` function for your algorithm, returning the updated centroid for your clusters.
</div> </div>
<details><summary>Solution</summary> <details><summary>Solution</summary>
...@@ -572,7 +572,7 @@ centroid_update <- function(x, cluster, k) { ...@@ -572,7 +572,7 @@ centroid_update <- function(x, cluster, k) {
</details> </details>
<div class="pencadre"> <div class="pencadre">
Implement an `kmeans_example(x, k)` function for your algorithm, wrapping everything and test it Implement a `kmeans_example(x, k)` function for your algorithm, wrapping everything and test it.
</div> </div>
<details><summary>Solution</summary> <details><summary>Solution</summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment