MCPcopy Create free account
hub / github.com/Hironsan/BossSensor / extract_data

Function extract_data

boss_input.py:61–66  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

59
60
61def extract_data(path):
62 images, labels = traverse_dir(path)
63 images = np.array(images)
64 labels = np.array([0 if label.endswith('boss') else 1 for label in labels])
65
66 return images, labels

Callers 1

readMethod · 0.90

Calls 1

traverse_dirFunction · 0.85

Tested by

no test coverage detected