I obtained error shown below. Does anybody know what does it mean and how to solve it?

Traceback (most recent call last):
File "qsvm_new1.py", line 119, in <module>
qsvm = QSVM(feature_map, x,y)

File "/home/vishal/anaconda3/lib/python3.6/site- 
     packages/qiskit/aqua/algorithms/many_sample/qsvm/qsvm.py", line 91, in 
     __init__is_multiclass = get_num_classes(training_dataset) > 2
File "/home/vishal/anaconda3/lib/python3.6/site- 
     packages/qiskit/aqua/utils/dataset_helper.py", line 32, in get_num_classes
 return len(list(dataset.keys())) 
 AttributeError: 'numpy.ndarray' object has no attribute 'keys'
  • $\begingroup$ How to solve this? $\endgroup$ – vis555 Mar 4 at 11:16
  • 2
    $\begingroup$ I'm voting to close this question as off-topic because it should be posted on QC Stack Exchange with more details. $\endgroup$ – Martin Vesely Mar 4 at 15:20
  • $\begingroup$ I suggest to re-ask it on the Stack Overflow, and write also sentences in it. $\endgroup$ – peterh - Reinstate Monica Mar 4 at 16:14

Browse other questions tagged or ask your own question.