def get_example():
    features = random.sample(string.ascii_letters, NUM_SAMPLES)
    num_capitalized = len([ letter for letter in features if letter in string.ascii_uppercase ])
    num_lowercase = len([ letter for letter in features if letter in string.ascii_lowercase ])
    if num_capitalized > num_lowercase:
        label = 1
    else:
        label = -1
    return (label, features)
Make an example for training and testing.  Outputs a tuple
dataset/ETHPy150Open mokelly/wabbit_wappa/examples/active_learning_demo.py/get_example