I have a list named word_vector
whose every element is of type 'numpy.ndarray'.
print(word_vector)
output:
[array([0., 0., 0., ..., 0., 0., 0.]), array([0., 0., 0., ..., 0., 0., 0.]), array([0., 0., 0., ..., 0., 0., 0.]), array([0., 0., 0., ..., 0., 0., 0.])]
I want to convert the type of each element of the list to list. So I wrote this code:
word_vector_list = []
for arr in word_vector:
list_ = arr.tolist()
word_vector_list.append(list_)
print(word_vector_list)
The programming is getting hung repeatedly. I'm getting this exception:
IOPub data rate exceeded.
The notebook server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--NotebookApp.iopub_data_rate_limit`.
Current values:
NotebookApp.iopub_data_rate_limit=1000000.0 (bytes/sec)
NotebookApp.rate_limit_window=3.0 (secs)
length of each element(of type array) of the list is:
print(len(arr))
output:
4395