Warning! It seems that you are using Dodona within another webpage, so not everything may work properly. Let your teacher know so that he can solve the problem by adjusting a setting in the learning environment. In the meantime, you can click this link to open Dodona in a new window.
Chapter 12 Exercise 10
Sign in to test your solution.
set.seed(2)
x <- matrix(rnorm(20 * 3 * 50, mean = 0, sd = 0.3), ncol = 50)
x[1:20, 2] <- 1
x[21:40, 1] <- 2
x[21:40, 2] <- 2
x[41:60, 1] <- 1
true.labels <- c(rep(1, 20), rep(2, 20), rep(3, 20))
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.