Exemplo n.º 1
0
def setup_example_ada(T):
    """Sets the global variable up to work with the example data from Import.py"""
    global attributes, labels, example_weights, train_data, test_data
    attributes = Import.example_attributes
    labels = Import.bank_labels
    m = 14
    example_weights = np.tile(np.repeat(1.0 / m, m), (T, 1))
    train_data = Import.get_example_data()
    test_data = Import.get_example_data()