/Python/Def get_label(Dir): for nextdir in os.listdir(Dir): if not nextdir.startswith('.'): if nextdir in ['NORMAL']: label = 0 elif nextdir in ['PNEUMONIA']: label = 1 else: label = 2 return nextdir, label
Def get_label(Dir): for nextdir in os.listdir(Dir): if not nextdir.startswith('.'): if nextdir in ['NORMAL']: label = 0 elif nextdir in ['PNEUMONIA']: label = 1 else: label = 2 return nextdir, label
Def get_label(Dir): for nextdir in os.listdir(Dir): if not nextdir.startswith('.'): if nextdir in ['NORMAL']: label = 0 elif nextdir in ['PNEUMONIA']: label = 1 else: label = 2 return nextdir, label
0
- 0 vote204 views1 answer
- 1 vote232 views1 answer
- 0 vote213 views1 answer
- 0 vote225 views1 answer
- 14 votes220 views4 answers
- 9 votes205 views5 answers
- 0 vote234 views1 answer
- 0 vote233 views1 answer
- 0 vote219 views1 answer
- 0 vote212 views1 answer