MNISTCIFAR Dominoes
Here are some dominoes based on [1]. The idea behind this dataset is that there are two "patterns" in the data: the MNIST image and the CIFAR image.
Notice that some of the dominoes have only one "pattern" present. By tracking training/test loss on these onesided dominoes, we can tease apart how quickly the model learns the two different patterns.
We'd like to compare these patternlearning curves to the curves predicted by the toy model of [2]. In particular, we'd like to compare predictions to the empirical curves as we change the relevant macroscopic parameters (e.g., prevalence, reliability, and simplicity^{1}).
Which means running sweeps over these macroscopic parameters.
Prevalence
What happens as we change the relative incidence of MNIST vs CIFAR images in the dataset? We can accomplish this by varying the frequency of onesided MNIST dominoes vs. onesided CIFAR dominoes.
We control three parameters:
 $p_m$, the probability of a domino containing an MNIST image (either onesided or twosided),
 $p_c$, the probability of a domino containing a CIFAR image (either onesided or twosided), and
 $p_1$, the probability of a domino having only oneside.
Two parameters are fixed by our datasets:
 $N_m$, the number of samples in the MNIST dataset.
 $N_c$, the number of samples in the CIFAR dataset.
Given these parameters, we have to determine:
 $r_{m0}$, the fraction of the MNIST dataset that we reject,
 $r_{m1}$, the fraction of the MNIST dataset that ends up in onesided dominoes,
 $r_{m2}$, the fraction of the MNIST dataset that ends up in twosided dominoes,
and, similarly, $r_{c0}$, $r_{c1}$, and $r_{c2}$ for the CIFAR dataset.
Six unknowns means we need six constraints.
We get the first two from the requirement that probabilities are normalized,
and the another from the double dominoes requiring the sample number of samples from both datasets,
Out of convenience, we'll introduce an additional variable, which we immediately constrain,
the number of samples in the resulting dominoes dataset.
We get the last three constraints from our choices of $p_{m}$, $p_c$, and $p_1$:
In matrix format,
which we should just be able to invert, but is apparently singular? What am I doing wrong?
Reliability
We can vary the reliability by inserting "wrong" dominoes. I.e.: with some probability make either of the two sides display the incorrect class for the label.
Simplicity
One of the downsides of this task is that we don't have much control over the simplicity of the feature. MNIST is simpler than CIFAR, sure, but how much? How might we control this?
Footnotes

Axes conceived by Ekdeep Singh Lubana. ↩