Skip to content

MemoryError: Unable to allocate array with shape (26577,) and data type <U1847338 #99

@kurniarahmattt

Description

@kurniarahmattt

base_extractor = Extractor(
File "/home/dragnet/dragnet/model_training.py", line 103, in train_model
train_html, train_labels, train_weights = extractor.get_html_labels_weights(training_data)
File "/home/dragnet/dragnet/extractor.py", line 124, in get_html_labels_weights
return np.array(all_html), np.array(all_labels), np.array(all_weights)
MemoryError: Unable to allocate array with shape (26577,) and data type <U1847338

i try with length data more than 20K and show memory error in numpy.array, is that problem in features engineering before fitting proccess?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions