LoslegenKostenlos loslegen

Handwritten digits with `flexmix`

The digits_sample_2 is a data frame that has 478 observations, each of them representing a binary image of a handwritten digit formed by 16x16 pixels. The aims of this exercise are (1) to explore these data, (2) to fit a Bernoulli mixture model using flexmix and (3) to analyze the resulting clusters.

Diese Übung ist Teil des Kurses

Mixture Models in R

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# transform into matrix
digits_sample_2 <- ___

# dimension
___

# look to the first observation
show_digit(digits_sample_2[___,])

# look to the last observation
___(digits_sample_2[nrow(___),])
Code bearbeiten und ausführen