State = 0 if (i+3j) mod 29=0; else 1 if (i+j) mod 11=0; else 2

Synthetic teaching experiment. Colour is magnitude, not a treatment class. Discrete cases: no interpolation between ratings or categories.