Back to News
general

Why is my Qiskit Variational Quantum Regressor (VQR) training taking extremely long with L-BFGS-B and never reaching the evaluation stage?

/u/leeooo_69
Loading...
1 min read
0 likes
⚡ Quantum Brief
I'm training a Variational Quantum Regressor (VQR) using Qiskit , and the training is taking an extremely long time. It doesn't appear to crash or throw any errors it just stays in the training phase for a very long time and never reaches the point where it prints the evaluation metrics (MAE, RMSE, R²). My pipeline looks like: Load a CSV dataset for a regression task. Split into training and testing sets. Scale input features using StandardScaler. Scale the target values to [-1, 1] using MinMaxScaler.
AI Audio Summary
0:00 / 0:00
Click to play
99d6e805-9ff2-439c-ba4f-1232238f23dd.jpeg
Quantum News · Media Library

I'm training a Variational Quantum Regressor (VQR) using Qiskit , and the training is taking an extremely long time. It doesn't appear to crash or throw any errors it just stays in the training phase for a very long time and never reaches the point where it prints the evaluation metrics (MAE, RMSE, R²). My pipeline looks like: Load a CSV dataset for a regression task. Split into training and testing sets. Scale input features using StandardScaler. Scale the target values to [-1, 1] using MinMaxScaler. Create a ZZFeatureMap with: reps = 2 entanglement = "full" Create a RealAmplitudes ansatz with: reps = 2 entanglement = "full" Use L_BFGS_B(maxiter=300) as the optimizer. Construct a VQR and call fit(X_train, y_train_scaled). After training, I predict on the test set and compute MAE, RMSE, and R². Some additional information: Number of features = 8 Number of training samples = 1081 submitted by /u/leeooo_69 [link] [comments]

Read Original

Tags

quantum-machine-learning
quantum-programming
government-funding

Source Information

Source: Reddit r/QuantumComputing (RSS)

Discussion

0 professional contributions

Sign in to join this professional discussion.

Be the first to add a constructive contribution.