Generate positive and negative examples from features.