MCPcopy Create free account
hub / github.com/apache/singa / get_data

Function get_data

examples/hfl/src/client.py:186–191  ·  view source on GitHub ↗
(data, data_dist="iid", device_id=None)

Source from the content-addressed store, hash-verified

184
185
186def get_data(data, data_dist="iid", device_id=None):
187 if data == "bank":
188 train_x, train_y, val_x, val_y, num_classes = bank.load(device_id)
189 else:
190 raise NotImplementedError
191 return train_x, train_y, val_x, val_y, num_classes
192
193
194def get_model(model, num_channels=None, num_classes=None, data_size=None):

Callers 1

runFunction · 0.85

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected