MCPcopy Create free account
hub / github.com/Newmu/dcgan_code / shuffle

Function shuffle

lib/data_utils.py:30–34  ·  view source on GitHub ↗
(*arrays, **options)

Source from the content-addressed store, hash-verified

28 return [[d[idx] for idx in idxs] for d in data]
29
30def shuffle(*arrays, **options):
31 if isinstance(arrays[0][0], basestring):
32 return list_shuffle(*arrays)
33 else:
34 return skutils.shuffle(*arrays, random_state=np_rng)
35
36def OneHot(X, n=None, negative_class=0.):
37 X = np.asarray(X).flatten()

Callers 3

mnist_with_valid_setFunction · 0.90
svhn_with_valid_setFunction · 0.90

Calls 1

list_shuffleFunction · 0.85

Tested by

no test coverage detected