def boolean_matrix_labels(labels):
    """Transform the scalar labels into a boolean list

    The list will have a 1 for the index that repesents the label, and zero
    elsewhere
    """
    results = list()
    for label in labels:
        l = [0 for i in range(10)]
        l[label] = 1
        results.append(l)
    return results