/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 vote195 views1 answer
- -1 vote181 views1 answer
- 0 vote188 views1 answer
- 0 vote189 views4 answers
- 2 votes214 views1 answer
- 1 vote191 views2 answers
- 12 votes165 views3 answers
- 0 vote192 views1 answer
- 0 vote195 views1 answer
- 0 vote231 views2 answers