Atelier des rouesLab FR
Objects/Documentation

partitions21.py

I provide the code for this study. Choosing which bins to keep

Download ↓
"""All 35 deterministic three- and four-class encoders on five observations."""
from fractions import Fraction as F
import json
from ordre20 import MAIN,laws,success
from deficience21 import certificate,anchor


def groupings(labels,k):
    if len(labels)==5:
        if max(labels)+1==k:yield labels
        return
    for j in range(min(k,max(labels)+2)):
        yield from groupings(labels+[j],k)


def compress(p,labels):

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.