Skip to content

Random value of threshold for labeling in IMG2SYM #2

Description

@Erientes

Hi,
In the following part, I was wondering why it has a random threshold for assigning the label? It seems to result in an inconsistent threshold for different items in the list?

scan/data_manager.py

Lines 220 to 225 in cc86131

def choose_labels(self, y):
""" retrieve label element from img2sym output. """
label_indices = []
for i,v in enumerate(y):
if random.random() <= v:
label_indices.append(i)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions