Co-training codes