Randomized co-training: from cortical neurons to machine learning and back again