Skip to content

MemoryError with 3MB file #2

@BorisBrock

Description

@BorisBrock

Running the code gives me the following error:

Data length: 3204677 characters
Vocabulary size: 94 characters
Traceback (most recent call last):
File "recurrent_keras.py", line 36, in
X, y, VOCAB_SIZE, ix_to_char = load_data(DATA_DIR, SEQ_LENGTH)
File "/home/boris/text-generator/RNN_utils.py", line 30, in load_data
X = np.zeros((len(data)/seq_length, seq_length, VOCAB_SIZE))
MemoryError

If I make the training data file smaller (e.g. 200kb) it works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions