powered by
Generate labels from the stick-breaking prior.
sampleViewPriorLabels(alpha, K, N)
A vector of labels.
The concentration parameter for the stick-breaking prior.
The number of components to include (the upper bound on the number of unique labels generated).
The number of labels to generate.
initial_labels <- sampleViewPriorLabels(1, 50, 100)
Run the code above in your browser using DataLab