You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Speed up the getting data part by being smart and not wasting time on parsing the test.csv file an cache it as a pickle so that it can be imported very quickly. saves 6s
try:
with open(packed_file_path, "rb") as f:
data = pickle.load(f)
return data["x"]
except:
data = np.genfromtxt(data_file_path, delimiter=',', skip_header=1, dtype=np.float64)