I am using qiskit's VQC to build a classifier. Dimensionality of the data is 2 and number of classes are 4. The feature map I used is ZZFeatureMap and ansatz is the RealAplitudes. Then entanglement and reps are "full" and 2 respectively for both feature map and ansatz. Optimizer used is 'COBYLA'. Please find below the respective code.
When I try to fit the classifier, it is not optimising the weights and the loss is always "nan". It is stopping after 7 iterations.
What am I doing wrong and how can I train a classifier using qiskit's VQC ? Thank you!