meg HF Staff commited on
Commit
0d9d547
·
verified ·
1 Parent(s): ba26a99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -91,7 +91,7 @@ def main(percentage=10):
91
  label_list, label_fractions = get_label_fractions(read_label_frequencies())
92
 
93
  # How many new random labels are we creating?
94
- num_new_labels = int(round(NUM_EXAMPLES/float(percentage)))
95
 
96
  # Create a set of indices that are randomly chosen, to change their labels.
97
  # Specifically, randomly choose num_new_labels indices.
 
91
  label_list, label_fractions = get_label_fractions(read_label_frequencies())
92
 
93
  # How many new random labels are we creating?
94
+ num_new_labels = int(round(NUM_EXAMPLES * float(percentage) * .01))
95
 
96
  # Create a set of indices that are randomly chosen, to change their labels.
97
  # Specifically, randomly choose num_new_labels indices.