MCPcopy Create free account
hub / github.com/dblalock/bolt / load_file

Function load_file

experiments/python/datasets.py:105–108  ·  view source on GitHub ↗
(fname, *args, **kwargs)

Source from the content-addressed store, hash-verified

103
104
105def load_file(fname, *args, **kwargs):
106 if fname.split('.')[-1] == 'txt':
107 return np.loadtxt(fname, *args, **kwargs)
108 return np.load(fname, *args, **kwargs)
109
110
111def extract_random_rows(X, how_many, remove_from_X=True):

Callers 1

load_datasetFunction · 0.85

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected