/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 vote64 views1 answer
- 0 vote114 views2 answers
- 1 vote101 views1 answer
- 1 vote109 views1 answer
- 0 vote122 views1 answer
- 0 vote113 views1 answer
- 0 vote114 views1 answer
- 4 votes110 views1 answer
- 0 vote109 views2 answers
- 0 vote106 views1 answer