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
I saw that your answer about training data'size, and said that 'by setting the length of the first axis to a smaller number'. But how can I change this value?
def load_data_from_npz(filename): """Load and return the training data from a npz file (sparse format).""" with np.load(filename) as f: data = np.zeros(f['shape'], np.bool_) data[[x for x in f['nonzero']]] = True return data
The text was updated successfully, but these errors were encountered:
I saw that your answer about training data'size, and said that 'by setting the length of the first axis to a smaller number'. But how can I change this value?
def load_data_from_npz(filename): """Load and return the training data from a npz file (sparse format).""" with np.load(filename) as f: data = np.zeros(f['shape'], np.bool_) data[[x for x in f['nonzero']]] = True return data
The text was updated successfully, but these errors were encountered: