spmviz.datasets.make_planted_patterns#
- spmviz.datasets.make_planted_patterns(n_sequences=500, patterns=None, prob=0.3, n_items=20, length=12, random_state=0)[source]#
Random sequences with planted patterns (ground truth in the attributes).
Every sequence has
lengthrandom items; each pattern ofpatterns(default: three patterns of length 3–5) is embedded at random increasing positions with probabilityprob(scalar or one per pattern).