Spaces:
Paused
Paused
Update app.py
Browse files90 unmodified lines9192939495969790 unmodified lineslabel_list, label_fractions = get_label_fractions(read_label_frequencies())# How many new random labels are we creating?num_new_labels = int(round(NUM_EXAMPLES/float(percentage)))# Create a set of indices that are randomly chosen, to change their labels.# Specifically, randomly choose num_new_labels indices.90 unmodified lines9192939495969790 unmodified lineslabel_list, label_fractions = get_label_fractions(read_label_frequencies())# How many new random labels are we creating?num_new_labels = int(round(NUM_EXAMPLES * float(percentage) * .01))# Create a set of indices that are randomly chosen, to change their labels.# Specifically, randomly choose num_new_labels indices.
app.py+1-1