Vinay Rajpoot
2018-03-22 20:32:34 UTC
i am working on project and occuring this traceback can anybody suggest me
what changes should i make in below section of code
for index in indices:
key = dataset_keys[index]
data_x = dataset[key]['features'][...].astype(_DTYPE)
L_distance_mat = cdist(data_x, data_x, 'euclidean')
L_dissim_mat = 1 - np.dot(data_x, data_x.T)
Traceback (most recent call last):
File "vsum_train.py", line 155, in <module>
train_dataset_path=args.dataset)
File "vsum_train.py", line 83, in train
key = dataset_keys[index]
TypeError: 'KeysView' object does not support indexing
what changes should i make in below section of code
for index in indices:
key = dataset_keys[index]
data_x = dataset[key]['features'][...].astype(_DTYPE)
L_distance_mat = cdist(data_x, data_x, 'euclidean')
L_dissim_mat = 1 - np.dot(data_x, data_x.T)
Traceback (most recent call last):
File "vsum_train.py", line 155, in <module>
train_dataset_path=args.dataset)
File "vsum_train.py", line 83, in train
key = dataset_keys[index]
TypeError: 'KeysView' object does not support indexing
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.